forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
339b1bf610
commit
09683bb30a
@ -170,7 +170,7 @@ class CommandOption {
|
||||
}
|
||||
|
||||
async parse() {
|
||||
if(!this._rawValue && !this.valueOptional) throw new Error(`Null _rawValue`);
|
||||
if((this._rawValue === null || this._rawValue === undefined) && !this.valueOptional) throw new Error(`Null _rawValue passed to ${this.name}`);
|
||||
// console.log('-------PARSE BEGIN---------');
|
||||
// console.log('1', this.name, this._rawValue, this.valueOptional);
|
||||
const { removed, value, error } = await this.types[this.type]();
|
||||
|
Loading…
Reference in New Issue
Block a user