Update bot to discord.js v13 #125
2 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue