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