summaryrefslogtreecommitdiff
path: root/src/bot/commands/util/invite.ts
blob: ab6ba228a6cf1be51b018b60b63fc1a5d17479a3 (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
/* import { Command } from 'discord-akairo';
import { Message } from 'discord.js';
import { stripIndents } from 'common-tags';

export default class InviteCommand extends Command {
	public constructor() {
		super('invite', {
			aliases: ['invite', 'support', 'inv'],
			clientPermissions: ['EMBED_LINKS'],
			description: {
				content: 'Provides an invite link for the bot and our support server.',
			},
			category: 'Utilities',
		});
	}

	public async exec(msg: Message): Promise<Message | Message[] | void> {
		const embed = this.client.util.embed().setColor(this.client.config.color).setDescription(stripIndents`
				You can invite **${this.client.user!.username}** to your server with [\`this\`](${await this.client.generateInvite(
			268782656,
		)}) link!
				You can join our **Support Server** by clicking [\`this link\`](https://discord.sycer.dev/)!
			`);
		return msg.util?.send({ embed });
	}
} */