Add bot invite command

This commit is contained in:
SileNce5k 2022-01-18 09:30:26 +01:00
parent 826d13eadd
commit 12af74901f

10
commands/info/invite.js Normal file
View file

@ -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}>`)
}
}