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