Answers for "discord.js bot activity"

1

discord.js bot activity

bot.user.setActivity('some activity', { type: 'WATCHING' }) // STREAMING, WATCHING, CUSTOM_STATUS, PLAYING, COMPETING
.then(presence => console.log(`Activity set to ${presence.activities[0].name}`))
  .catch(console.error);
Posted by: Guest on March-14-2021
2

set a discord js v12 bot activity

// Set the client user's activity
client.user.setActivity('some activity ', { type: 'WATCHING' })
  .then(presence => console.log(`Activity set to ${presence.activities[0].name}`))
  .catch(console.error);
Posted by: Guest on March-13-2021
1

discord bot playing game

client.user.setActivity("what the bot is playing");
Posted by: Guest on October-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language