Обновление присутствия Discord.js
// 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}`);
}
HeyItsDeveloperRhys