Removed folder check
This commit is contained in:
parent
cef2976058
commit
d668aee138
1 changed files with 0 additions and 3 deletions
|
@ -34,10 +34,7 @@ class client extends Client {
|
|||
if (typeof config.prefix != "string") throw "Prefix is not a string";
|
||||
|
||||
if (typeof config.commands != "object") throw "Commands is not a string";
|
||||
if (!existsSync(`${process.cwd()}/${config.commands}`)) throw "Commands folder doesn't exist";
|
||||
|
||||
if (typeof config.events != "object") throw "Events is not a string";
|
||||
if (!existsSync(`${process.cwd()}/${config.events}`)) throw "Events folder doesn't exist";
|
||||
|
||||
this._config = config;
|
||||
}
|
||||
|
|
Reference in a new issue