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

5
.gitignore vendored
View file

@ -107,4 +107,7 @@ dist
commands/
events/
bot.js
config.json
config.json
# Linux Environment Files
*.swp

View file

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