import { Command } from 'discord-akairo'; import { Message } from 'discord.js'; export default class ServerCountOwner extends Command { public constructor() { super('servercount', { aliases: ['servercount', 'server-count'], category: 'owner', description: { content: 'Check the amount of servers the bot is in.', usage: '', examples: [ '' ] }, ratelimit: 3, ownerOnly: true }); } public exec(msg: Message): Promise { return msg.channel.send(`${this.client.user.username} is currently in **${this.client.guilds.cache.size}** server(s).`); } }