Add bot invite command
This commit is contained in:
parent
826d13eadd
commit
12af74901f
1 changed files with 10 additions and 0 deletions
10
commands/info/invite.js
Normal file
10
commands/info/invite.js
Normal 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}>`)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue