This commit is contained in:
19
commands/utils/help.ts
Normal file
19
commands/utils/help.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import {CommandInteraction} 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>{
|
||||
await interaction.reply({content:
|
||||
"# [Help](https://hello.konchin.com)\n"+
|
||||
`Read the documentation at [this link](${config.helpUrl})\n`
|
||||
});
|
||||
logger.log(`Command: help`);
|
||||
}
|
||||
};
|
||||
|
||||
export const command = new Help();
|
||||
Reference in New Issue
Block a user