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' }})
In discord.js, the presence can be set like this:
bot.on('ready', () => {
bot.user.setActivity('a game', { type: 'PLAYING' })
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With