discord.js
1
Вклад в тег
const { ActivityType } = require('discord.js');
client.user.setActivity('activity', { type: ActivityType.Watching });
client.user.setActivity('activity', { type: ActivityType.Listening });
client.user.setActivity('activity', { type: ActivityType.Competing });
const { Events, ActivityType } = require('discord.js');
module.exports = {
name: Events.ClientReady,
once: true,
execute(client) {
client.user.setPresence({ activities: [{ name: 'activity' }], status: 'idle' });
client.user.setActivity('Hello, I wait for you', { type: ActivityType.Watching });
console.log(`Готово! Бот зашел в сеть! ${client.user.tag}`);
},
};