20 lines
575 B
TypeScript
20 lines
575 B
TypeScript
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();
|