actually assign the client in the component

This commit is contained in:
Erik 2021-08-24 21:48:07 +03:00
parent 5adae6ac2e
commit 721c1fa6c8
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16
2 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,6 @@ class CommandHandler extends Observer {
guarded: true
});
this.client = client;
this.hooks = [
['messageCreate', this.messageCreate.bind(this)],
['interactionCreate', this.interactionCreate.bind(this)]

View File

@ -3,6 +3,8 @@ class Component {
constructor(client, options = {}) {
if(!options) return null;
this.client = client;
this.id = options.id; //Name of the component
this._type = options._type; //Type of component (command, observer, etc.)