Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
 
PREVIOUS NEXT
Tagged: #bot #activity
ADD COMMENT
Topic
Name
5+2 =