client.on("presenceUpdate", function (oldMember, newMember) { console.log(`a guild member's presence changes`); });