mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-07-07 11:20:59 +02:00
feat(arabot): change help message to an embed
This commit is contained in:
parent
634752a472
commit
26fe5a79eb
@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
import { Command } from '@sapphire/framework';
|
||||
import { EmbedBuilder } from 'discord.js';
|
||||
import type { Message } from 'discord.js';
|
||||
|
||||
export class HelpCommand extends Command {
|
||||
@ -33,14 +34,16 @@ export class HelpCommand extends Command {
|
||||
.setDescription(this.description));
|
||||
}
|
||||
|
||||
message = 'For a list of all the commands, visit: https://github.com/veganhacktivists/arabot/blob/main/docs/COMMANDS.md';
|
||||
embed = new EmbedBuilder()
|
||||
.setColor(0x0099FF)
|
||||
.setDescription('For a list of all the commands, click [here](https://github.com/veganhacktivists/arabot/blob/main/docs/COMMANDS.md)');
|
||||
|
||||
// Command run
|
||||
public async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
|
||||
return interaction.reply(this.message);
|
||||
return interaction.reply({ embeds: [this.embed] });
|
||||
}
|
||||
|
||||
public async messageRun(message: Message) {
|
||||
return message.channel.send(this.message);
|
||||
return message.reply({ embeds: [this.embed] });
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user