Update about command to use the PublicEmbed class
This commit is contained in:
parent
44571d735a
commit
ba51cbb28c
1 changed files with 3 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { Command, ICommandContext } from "vylbot-core";
|
import { Command, ICommandContext } from "vylbot-core";
|
||||||
import { MessageEmbed } from "discord.js";
|
import PublicEmbed from "../helpers/PublicEmbed";
|
||||||
|
|
||||||
export default class About extends Command {
|
export default class About extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -8,15 +8,12 @@ export default class About extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
public override execute(context: ICommandContext) {
|
public override execute(context: ICommandContext) {
|
||||||
const embed = new MessageEmbed()
|
const embed = new PublicEmbed(context, "About", "")
|
||||||
.setTitle("About")
|
|
||||||
.setColor(process.env.EMBED_COLOUR!)
|
|
||||||
.setDescription("About the bot")
|
|
||||||
.addField("Version", process.env.BOT_VER)
|
.addField("Version", process.env.BOT_VER)
|
||||||
.addField("VylBot Core", process.env.CORE_VER)
|
.addField("VylBot Core", process.env.CORE_VER)
|
||||||
.addField("Author", process.env.BOT_AUTHOR)
|
.addField("Author", process.env.BOT_AUTHOR)
|
||||||
.addField("Date", process.env.BOT_DATE);
|
.addField("Date", process.env.BOT_DATE);
|
||||||
|
|
||||||
context.message.channel.send(embed);
|
embed.SendToCurrentChannel();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue