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:
Vylpes 2021-12-24 14:55:28 +00:00 committed by GitHub
parent 45d871fbf7
commit 2cc12d91be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 3368 additions and 147 deletions

View 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);
}
}