From ba51cbb28cb355acc27ec1021eda4a5d9d42d87a Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 4 Dec 2021 15:42:58 +0000 Subject: [PATCH] Update about command to use the PublicEmbed class --- src/commands/about.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/commands/about.ts b/src/commands/about.ts index f6b30e3..f30e490 100644 --- a/src/commands/about.ts +++ b/src/commands/about.ts @@ -1,5 +1,5 @@ import { Command, ICommandContext } from "vylbot-core"; -import { MessageEmbed } from "discord.js"; +import PublicEmbed from "../helpers/PublicEmbed"; export default class About extends Command { constructor() { @@ -8,15 +8,12 @@ export default class About extends Command { } public override execute(context: ICommandContext) { - const embed = new MessageEmbed() - .setTitle("About") - .setColor(process.env.EMBED_COLOUR!) - .setDescription("About the bot") + const embed = new PublicEmbed(context, "About", "") .addField("Version", process.env.BOT_VER) .addField("VylBot Core", process.env.CORE_VER) .addField("Author", process.env.BOT_AUTHOR) .addField("Date", process.env.BOT_DATE); - context.message.channel.send(embed); + embed.SendToCurrentChannel(); } } \ No newline at end of file