Fixed bug where starting the client would sometimes crash due to invalid variable setup

This commit is contained in:
Vylpes 2020-10-23 18:02:11 +01:00
parent 00492aeaa4
commit 1d075e5a2c
2 changed files with 8 additions and 6 deletions

3
.gitignore vendored
View file

@ -108,3 +108,6 @@ commands/
events/ events/
bot.js bot.js
config.json config.json
# Linux Environment Files
*.swp

View file

@ -1,6 +1,9 @@
class command { class command {
constructor(run) { constructor(run) {
this.run = run; this.run = run;
this._roles = [];
this._requiredConfigs = [];
} }
// Description // Description
@ -31,8 +34,6 @@ class command {
} }
// Roles // Roles
_roles = [];
get roles() { get roles() {
return this._roles; return this._roles;
} }
@ -42,8 +43,6 @@ class command {
} }
// Config // Config
_requiredConfigs = [];
get requiredConfigs() { get requiredConfigs() {
return this._requiredConfigs; return this._requiredConfigs;
} }