1 |
import { CommandInteraction, GuildMember, Interaction, Message } from 'discord.js'; |
2 |
import BaseCommand from '../../utils/structures/BaseCommand'; |
3 |
import DiscordClient from '../../client/Client'; |
4 |
import CommandOptions from '../../types/CommandOptions'; |
5 |
import InteractionOptions from '../../types/InteractionOptions'; |
6 |
import MessageEmbed from '../../client/MessageEmbed'; |
7 |
import Help from '../../utils/help'; |
8 |
|
9 |
export default class AboutCommand extends BaseCommand { |
10 |
supportsInteractions: boolean = true; |
11 |
|
12 |
constructor() { |
13 |
super('about', 'settings', []); |
14 |
} |
15 |
|
16 |
async run(client: DiscordClient, message: Message | CommandInteraction, options: CommandOptions | InteractionOptions) { |
17 |
await message.reply({ |
18 |
embeds: [ |
19 |
new MessageEmbed() |
20 |
.setTitle('SudoBot') |
21 |
.setDescription('A free and open source discord moderation bot, specially created for **The Everything Server**.') |
22 |
.addField('Version', Help.version) |
23 |
.addField('Support', '[email protected]') |
24 |
.setFooter({ |
25 |
text: 'Copyright © Ar Rakin 2022, all rights reserved' |
26 |
}) |
27 |
] |
28 |
}); |
29 |
} |
30 |
} |