Add embed tests

Signed-off-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
Ethan Lane 2022-01-29 17:28:10 +00:00
parent 3943085d6d
commit 0315f80976
Signed by: Vylpes
GPG key ID: EED233CC06D12504
8 changed files with 698 additions and 21 deletions

View file

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