mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -5,17 +5,17 @@ module.exports = class Argument {
|
||||
Object.defineProperty(this, 'client', { value: client });
|
||||
|
||||
this.key = options.key.toLowerCase();
|
||||
this.label = options.label || null;
|
||||
this.label = typeof options.label === 'undefined' ? null : options.label;
|
||||
this.typeID = options.type.toLowerCase();
|
||||
this.min = options.min || null;
|
||||
this.max = options.max || null;
|
||||
this.oneOf = options.oneOf || null;
|
||||
this.default = options.default || null;
|
||||
this.min = typeof options.min === 'undefined' ? null : options.min;
|
||||
this.max = typeof options.max === 'undefined' ? null : options.max;
|
||||
this.oneOf = typeof options.oneOf === 'undefined' ? null : options.oneOf;
|
||||
this.default = typeof options.default === 'undefined' ? null : options.default;
|
||||
this.infinite = options.infinite || false;
|
||||
this.avatarSize = options.avatarSize || 2048;
|
||||
this.validator = options.validate || null;
|
||||
this.parser = options.parse || null;
|
||||
this.emptyChecker = options.isEmpty || null;
|
||||
this.validator = typeof options.validate === 'undefined' ? null : options.validate;
|
||||
this.parser = typeof options.parse === 'undefined' ? null : options.parse;
|
||||
this.emptyChecker = typeof options.isEmpty === 'undefined' ? null : options.isEmpty;
|
||||
}
|
||||
|
||||
get type() {
|
||||
|
||||
Reference in New Issue
Block a user