Update bot to discord.js v13 #125

Merged
Vylpes merged 2 commits from feature/89-update-discordjs-to-v13 into develop 2022-04-14 18:01:16 +01:00
2 changed files with 1 additions and 4 deletions
Showing only changes of commit 7e96e81cbf - Show all commits

View file

@ -50,8 +50,7 @@ export class CoreClient extends Client {
}); });
super.on("message", (message) => { super.on("message", (message) => {
console.log("hello"); this._events.onMessage(message, this._commandItems)
this._events.onMessage(message, this._commandItems);
}); });
super.on("ready", this._events.onReady); super.on("ready", this._events.onReady);

View file

@ -13,8 +13,6 @@ export class Events {
// Emit when a message is sent // Emit when a message is sent
// Used to check for commands // Used to check for commands
public async onMessage(message: Message, commands: ICommandItem[]) { public async onMessage(message: Message, commands: ICommandItem[]) {
console.log("h");
if (!message.guild) return; if (!message.guild) return;
if (message.author.bot) return; if (message.author.bot) return;