How to set bot activity
10,976
In discord.js, the presence can be set like this:
bot.on('ready', () => {
bot.user.setActivity('a game', { type: 'PLAYING' })
})
Related videos on Youtube
Author by
Tobyhn
Updated on June 04, 2022Comments
-
Tobyhn almost 2 years
I am having trouble figuring out what I must do to set a custom game activity. I have tried a few different combinations of code, but I can't seem to get it to work.
My code:
bot.user.setPresence({ game: { name: 'a game' }})
-
Cristian over 3 yearsI add the official documentation DiscordJs - setActivity