blob: 1302a0a00ab7ca7ad212354ddc703542d682a220 (
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
|
import { Command, CommandoMessage } from 'discord.js-commando';
import { MessageEmbed } from 'discord.js';
import { stripIndents } from 'common-tags'
module.exports = class NitroUser extends Command {
constructor(client) {
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)`)
msg.say(emb)
}
};
|