From 0cb28e73174dc4fea3ce4d5cd4381fdf645b6fb4 Mon Sep 17 00:00:00 2001 From: monty Date: Sun, 24 Nov 2019 14:40:18 +0100 Subject: [PATCH] added invite link command --- DiscordModules/General/invite.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 DiscordModules/General/invite.js diff --git a/DiscordModules/General/invite.js b/DiscordModules/General/invite.js new file mode 100644 index 0000000..3ea6eaa --- /dev/null +++ b/DiscordModules/General/invite.js @@ -0,0 +1,22 @@ +const Command = require('../../src/structures/Command'); +const D = require('discord.js'); +module.exports = class Invite extends Command { + constructor() { + super({ + name: 'invite', + description: 'Get the Bot Invite.', + module: 'General', + cooldown: 0, + guildOnly: false, + developerOnly: false + }); + } + + async command(ctx) { + const Embed = new D.MessageEmbed() + .setDescription(`**[Invite Me!](https://thaldr.in/invite)**`) + .setColor(ctx.config.color) + .setFooter(`${ctx.client.user.username}`, ctx.client.user.avatarURL()); + return ctx.send(Embed); + } +};