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}
1client.on("presenceUpdate", function (oldMember, newMember) {
2 console.log(`a guild member's presence changes`);
3});