actually assign the client in the component
This commit is contained in:
parent
5adae6ac2e
commit
721c1fa6c8
@ -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)]
|
||||
|
@ -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.)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user