Fixed bug where starting the client would sometimes crash due to invalid variable setup
This commit is contained in:
parent
00492aeaa4
commit
1d075e5a2c
2 changed files with 8 additions and 6 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -107,4 +107,7 @@ dist
|
||||||
commands/
|
commands/
|
||||||
events/
|
events/
|
||||||
bot.js
|
bot.js
|
||||||
config.json
|
config.json
|
||||||
|
|
||||||
|
# Linux Environment Files
|
||||||
|
*.swp
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -53,4 +52,4 @@ class command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = command;
|
module.exports = command;
|
||||||
|
|
Reference in a new issue