summaryrefslogtreecommitdiff
path: root/src/commands/server/membercount.ts
blob: f3fd2ee5a731d6ab647f381a8105fe582123de66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Command, CommandoMessage } from 'discord.js-commando';
import emoji from 'emoji-random';

module.exports = class MemberCountServer extends Command {
    constructor(client) {
        super(client, {
            name: 'membercount',
            aliases: ['memberc', 'mcount', 'mc'],
            group: 'server',
            memberName: 'membercount',
            description: 'Tells you how many members are in the current server.',
            throttling: {
                usages: 5,
                duration: 30
            },
            examples: [
                'uwu!membercount',
                'uwu!memberc',
                'uwu!mcount',
                'uwu!mc'
            ],
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
			clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
        });
    }
    run(msg: CommandoMessage) {
        msg.reply(`There are **${msg.guild.memberCount}** members in **${msg.guild.name}**. ` + emoji.random());
    }
};