/[sudobot]/trunk/src/commands/settings/AboutCommand.ts
ViewVC logotype

Annotation of /trunk/src/commands/settings/AboutCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations)
Mon Jul 29 17:28:23 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 1221 byte(s)
Release version 2.0
1 rakin 51 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     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26