discord js presence update

Solutions on MaxInterview for discord js presence update by the best coders in the world

showing results for - "discord js presence update"
Emma
17 Sep 2020
1// In Index.js file
2client.on("presenceUpdate", function (oldPresence, newPresence) {
3	console.log(`Old Presnce: ${oldPresence.status} | New Presnce: ${newPresence.status}`);  
4}
5
6// Command Handler
7module.exports = (client, oldPresence, newPresence) => {
8	console.log(`Old Presnce: ${oldPresence.status} | New Presnce: ${newPresence.status}`);  
9}
Luca
29 Oct 2017
1client.on("presenceUpdate", function (oldMember, newMember) {
2    console.log(`a guild member's presence changes`);
3});