vylbot-app/src/helpers/embeds/ErrorEmbed.ts
Ethan Lane 0315f80976
Add embed tests
Signed-off-by: Ethan Lane <ethan@vylpes.com>
2022-01-29 17:28:10 +00:00

19 lines
No EOL
519 B
TypeScript

import { MessageEmbed } from "discord.js";
import { ICommandContext } from "../../contracts/ICommandContext";
export default class ErrorEmbed extends MessageEmbed {
public context: ICommandContext;
constructor(context: ICommandContext, message: String) {
super();
super.setColor(process.env.EMBED_COLOUR_ERROR!);
super.setDescription(message);
this.context = context;
}
public SendToCurrentChannel() {
this.context.message.channel.send(this);
}
}