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
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -108,3 +108,6 @@ commands/
|
|||
events/
|
||||
bot.js
|
||||
config.json
|
||||
|
||||
# Linux Environment Files
|
||||
*.swp
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue