mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
The Power of const
This commit is contained in:
@@ -22,8 +22,8 @@ module.exports = class ServersCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let guildCount = this.client.guilds.size;
|
||||
let guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(", ");
|
||||
const guildCount = this.client.guilds.size;
|
||||
const guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(", ");
|
||||
console.log(`${guildCount} Servers: ${guildNames}`);
|
||||
return message.say("Sent the information to the console!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user