Feature/23 migrate to typescript #73
1 changed files with 3 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
This should use the This should use the `PublicEmbed` class you made
|
||||
import { Command, ICommandContext } from "vylbot-core";
|
||||
import { MessageEmbed } from "discord.js";
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
import PublicEmbed from "../helpers/PublicEmbed";
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
|
||||
export default class About extends Command {
|
||||
constructor() {
|
||||
|
@ -8,15 +8,12 @@ export default class About extends Command {
|
|||
This should use the This should use the `PublicEmbed` class you made
This should use the This should use the `PublicEmbed` class you made
|
||||
}
|
||||
|
||||
public override execute(context: ICommandContext) {
|
||||
const embed = new MessageEmbed()
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
.setTitle("About")
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
.setColor(process.env.EMBED_COLOUR!)
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
.setDescription("About the bot")
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
const embed = new PublicEmbed(context, "About", "")
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
.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);
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
embed.SendToCurrentChannel();
|
||||
This should use the This should use the `PublicEmbed` class you made
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue
This should use the
PublicEmbed
class you made