summaryrefslogtreecommitdiff
path: root/src/commands/utility/membercount.js
blob: 11782366d40427f1498b034a2f5a06f30c413a9e (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
const { Command } = require('discord.js-commando');
const emoji = require('emoji-random');

module.exports = class MemberCountUtility extends Command {
    constructor(client) {
        super(client, {
            name: 'membercount',
            aliases: ['memberc', 'mcount', 'mc'],
            group: 'utility',
            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) {
        msg.reply(`There are **${msg.guild.memberCount}** members in **${msg.guild.name}**. ` + emoji.random());
    }
};