Add default

This commit is contained in:
Dragon Fire
2024-05-08 23:52:23 -04:00
parent 29bdfbd83b
commit 1065a7f31f
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = class Argument {
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.maxAttachmentSize = typeof options.maxAttachmentSize === 'undefined' ? null : options.maxAttachmentSize;
this.maxAttachmentSize = options.maxAttachmentSize || 8e+6;
this.default = typeof options.default === 'undefined' ? null : options.default;
this.infinite = options.infinite || false;
this.avatarSize = options.avatarSize || 2048;