【裏技】discord.jsでステータスのモバイル表示
最終更新: 2022年4月5日
動作確認済み
Node.js | v17.3.1 |
---|---|
Discord.js | v13.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アプリに見せかけて動かしています。 そのため、グレーな部分があるので使用には十分注意してください。