initial commit
This commit is contained in:
29
commands/utils/help.ts
Normal file
29
commands/utils/help.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import {CommandInteraction, EmbedBuilder} from 'discord.js';
|
||||
|
||||
import {Command} from '../../classes/command';
|
||||
import {logger} from '../../logger';
|
||||
import {config} from '../../config';
|
||||
|
||||
class Help extends Command{
|
||||
get name(){return "help";}
|
||||
get description(){return "Help messages.";}
|
||||
async execute(interaction: CommandInteraction): Promise<void>{
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle("Help message")
|
||||
.setDescription(`Report issues on [this page](${config.urls.issue})`)
|
||||
.setColor(0x1f1e33)
|
||||
.setAuthor({
|
||||
name: 'Ian Shih (konchin)',
|
||||
url: config.urls.author,
|
||||
iconURL: config.urls.icon
|
||||
})
|
||||
.setFields(
|
||||
{name: 'Read the documentation', value: config.urls.help},
|
||||
{name: 'Read the source code', value: config.urls.git}
|
||||
);
|
||||
await interaction.reply({embeds: [embed], ephemeral: true});
|
||||
logger.log(`Command: help`);
|
||||
}
|
||||
};
|
||||
|
||||
export const command = new Help();
|
||||
Reference in New Issue
Block a user