From 12af74901fe2169b365e2c85e0c1d54614c75a0e Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 18 Jan 2022 09:30:26 +0100 Subject: [PATCH] Add bot invite command --- commands/info/invite.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 commands/info/invite.js diff --git a/commands/info/invite.js b/commands/info/invite.js new file mode 100644 index 0000000..9993431 --- /dev/null +++ b/commands/info/invite.js @@ -0,0 +1,10 @@ +module.exports = { + name: 'invite', + description: 'Returns invite link for the bot', + execute({message, client}){ + const inviteLink = client.generateInvite({ + scopes: ['applications.commands'], + }); + message.channel.send(`<${inviteLink}>`) + } +} \ No newline at end of file