summaryrefslogtreecommitdiff
path: root/src/commands/user/nitro.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/user/nitro.ts')
-rw-r--r--src/commands/user/nitro.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/commands/user/nitro.ts b/src/commands/user/nitro.ts
new file mode 100644
index 0000000..1302a0a
--- /dev/null
+++ b/src/commands/user/nitro.ts
@@ -0,0 +1,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)
+ }
+}; \ No newline at end of file