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 { Command, ICommandContext } from "vylbot-core";
|
||||||
import { MessageEmbed } from "discord.js";
|
import PublicEmbed from "../helpers/PublicEmbed";
|
||||||
This should use the This should use the `PublicEmbed` class you made
This should use the This should use the `PublicEmbed` class you made
|
|||||||
|
|
||||||
export default class About extends Command {
|
export default class About extends Command {
|
||||||
constructor() {
|
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) {
|
public override execute(context: ICommandContext) {
|
||||||
const embed = new MessageEmbed()
|
const embed = new PublicEmbed(context, "About", "")
|
||||||
This should use the This should use the `PublicEmbed` class you made
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
|
|||||||
.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();
|
||||||
This should use the This should use the `PublicEmbed` class you made
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