1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【裏技】discord.jsでステータスのモバイル表示

Posted at

お知らせ

本記事はれのらりブログの一部を修正して再投稿したものです。
最新の情報や作成当時の情報は、れのらりブログからご確認いただけます。

動作環境

名前 バージョン
Node.js 17.3.1
Discord.js 13.6.0

ソースコード

Clientを定義しているところ

const client = new Client({ intents: [Intents.FLAGS.GUILDS] });

これを

const client = new Client({ intents: [Intents.FLAGS.GUILDS], ws: { properties: { $browser: 'Discord Android' } } });

このようにすると、表示がモバイル端末になります!

なぜこれで動くの?

この方法では、discord.jsで動いているボットを、
Discord公式のAndroidアプリに見せかけて動かしています。
グレーゾーンなところを突いているようなものですので、これを使うことはお勧めしません。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?