summaryrefslogtreecommitdiff
path: root/src/commands/user/nickname.ts
blob: 09cf71766b897f1faec65b2dddbac66f329f2536 (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
30
31
32
33
34
35
36
/* import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
//@ts-ignore no types
import emoji from 'emoji-random';

module.exports = class NickNameUser extends Command {
    constructor(client: CommandoClient) {
        super(client, {
            name: 'nickname',
            aliases: ['nick', 'name'],
            group: 'user',
            memberName: 'nickname',
            description: 'Allows you to change your nickname in the current server.',
            args: [
                {
                    key: 'userNick',
                    prompt: 'What would you like to change your nickname to?',
                    type: 'string'
                }
            ],
            examples: [
                'uwu!nickname sinny',
                'uwu!nick s1nical',
                'uwu!name s1n'
            ],
            throttling: {
                usages: 5,
                duration: 30
            },
            guildOnly: true
        });
    }
    run(msg: CommandoMessage, { userNick }: any) {
        msg.member.setNickname(userNick)
        return msg.reply(`Your nickname has been changed to ${userNick}. ` + emoji.random())
    }
}; */