blob: 1751a11bc927bc7f60645289c4538c4c5d8dba08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import { Command } from 'discord-akairo';
import { Message } from 'discord.js';
import { colour } from '../../Config';
export default class InviteBot extends Command {
public constructor() {
super('invite', {
aliases: ['invite'],
category: 'bot',
description: {
content: 'Gives you the bot\'s invite link.',
usage: '',
examples: [
''
]
},
ratelimit: 3
});
}
public exec(msg: Message): Promise<Message> {
const embed = this.client.util.embed()
.setColor(colour)
.setDescription('To invite the bot, please use [this link](https://discordapp.com/api/oauth2/authorize?client_id=699473263998271489&permissions=8&scope=bot).');
return msg.channel.send(embed);
}
}
|