How to set bot's status

Modular picture Modular · Mar 14, 2018 · Viewed 94.1k times · Source

So I'm trying to make my bot's streaming to be with depression but I've tried multiple things and they don't work.
I've tried these methods:

client.user.setPresence({ game: { name: 'with depression' }, status: 'online' });
bot.user.setGame('with depression', 'https://www.twitch.tv/monstercat');

None of these seem to be working the way they should. Any help is appreciated.

Answer

Monacraft picture Monacraft · Mar 14, 2018

.setGame is discontinued. Use:

client.user.setActivity("Game"); 

To set a playing game status.

As an addition, if you were using an earlier version of discord.js, try this:

client.user.setGame("Game");

In newer versions of discord.js, this is deprecated.