Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

Commit

Permalink
fix event inits
Browse files Browse the repository at this point in the history
  • Loading branch information
bdistin committed Sep 11, 2017
1 parent 5c2ac8f commit b8fae03
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/events/debug.js
Expand Up @@ -7,7 +7,7 @@ module.exports = class extends Event {
}

init() {
this.enabled = 'debug' in this.client.config.consoleEvents.debug ? !!this.client.config.consoleEvents.debug : false;
this.enabled = 'debug' in this.client.config.consoleEvents ? !!this.client.config.consoleEvents.debug : false;
}

};
2 changes: 1 addition & 1 deletion src/events/error.js
Expand Up @@ -7,7 +7,7 @@ module.exports = class extends Event {
}

init() {
this.enabled = 'debug' in this.client.config.consoleEvents.debug ? !!this.client.config.consoleEvents.debug : true;
this.enabled = 'error' in this.client.config.consoleEvents ? !!this.client.config.consoleEvents.error : true;
}

};
2 changes: 1 addition & 1 deletion src/events/log.js
Expand Up @@ -7,7 +7,7 @@ module.exports = class extends Event {
}

init() {
this.enabled = 'debug' in this.client.config.consoleEvents.debug ? !!this.client.config.consoleEvents.debug : true;
this.enabled = 'log' in this.client.config.consoleEvents ? !!this.client.config.consoleEvents.log : true;
}

};
2 changes: 1 addition & 1 deletion src/events/verbose.js
Expand Up @@ -7,7 +7,7 @@ module.exports = class extends Event {
}

init() {
this.enabled = 'debug' in this.client.config.consoleEvents.debug ? !!this.client.config.consoleEvents.debug : true;
this.enabled = 'verbose' in this.client.config.consoleEvents ? !!this.client.config.consoleEvents.verbose : true;
}

};
2 changes: 1 addition & 1 deletion src/events/warn.js
Expand Up @@ -7,7 +7,7 @@ module.exports = class extends Event {
}

init() {
this.enabled = 'debug' in this.client.config.consoleEvents.debug ? !!this.client.config.consoleEvents.debug : true;
this.enabled = 'warn' in this.client.config.consoleEvents ? !!this.client.config.consoleEvents.warn : true;
}

};
2 changes: 1 addition & 1 deletion src/events/wtf.js
Expand Up @@ -7,7 +7,7 @@ module.exports = class extends Event {
}

init() {
this.enabled = 'debug' in this.client.config.consoleEvents.debug ? !!this.client.config.consoleEvents.debug : true;
this.enabled = 'wtf' in this.client.config.consoleEvents ? !!this.client.config.consoleEvents.wtf : true;
}

};

0 comments on commit b8fae03

Please sign in to comment.