Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js presence update

// In Index.js file
client.on("presenceUpdate", function (oldPresence, newPresence) {
	console.log(`Old Presnce: ${oldPresence.status} | New Presnce: ${newPresence.status}`);  
}

// Command Handler
module.exports = (client, oldPresence, newPresence) => {
	console.log(`Old Presnce: ${oldPresence.status} | New Presnce: ${newPresence.status}`);  
}
 
PREVIOUS NEXT
Tagged: #presence #update
ADD COMMENT
Topic
Name
2+1 =