Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
 
PREVIOUS NEXT
Tagged: #set #discord #js #bot #activity
ADD COMMENT
Topic
Name
6+1 =