summaryrefslogtreecommitdiff
path: root/src/commands/user/nitro.ts
blob: a54eb38eef63d6f356025eb15956a697d778085b (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
import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
import { MessageEmbed } from 'discord.js';
//@ts-ignore no types
import { stripIndents } from 'common-tags'

module.exports = class NitroUser extends Command {
    constructor(client: CommandoClient) {
        super(client, {
            name: 'nitro',
            group: 'user',
            memberName: 'nitro',
            description: 'This message can only be viewed by users with Discord Nitro.',
            examples: ['uwu!nitro'],
            throttling: {
                usages: 5,
                duration: 30
            }
        });
    }
    run(msg: CommandoMessage) {
        let emb = new MessageEmbed()
            .setColor(0xFFCC4D)
            .setAuthor('Discord Nitro', 'https://cdn.discordapp.com/emojis/314068430611415041.png', 'https://discordapp.com/nitro')
            .setThumbnail('https://cdn.discordapp.com/emojis/314068430611415041.png')
            .setTimestamp(new Date())
            .setDescription(stripIndents`
            This message can only be viewed by users with Discord Nitro.
            [Lift off with Discord Nitro today](https://discordapp.com/nitro)`)
        return msg.say(emb)
    }
};