Feature/74 merge vylbot core (#80)
* Merge VylBot-Core * Update commands to new system * Fix issue where events would not load
This commit is contained in:
parent
45d871fbf7
commit
2cc12d91be
42 changed files with 3368 additions and 147 deletions
19
src/helpers/embeds/ErrorEmbed.ts
Normal file
19
src/helpers/embeds/ErrorEmbed.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { MessageEmbed } from "discord.js";
|
||||
import { ICommandContext } from "../../contracts/ICommandContext";
|
||||
|
||||
export default class ErrorEmbed extends MessageEmbed {
|
||||
private _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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue