From 1065a7f31fa6c998dc138f1fe4b7ad6f1136e4b1 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 8 May 2024 23:52:23 -0400 Subject: [PATCH] Add default --- framework/Argument.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Argument.js b/framework/Argument.js index 76f380e3..c2223c54 100644 --- a/framework/Argument.js +++ b/framework/Argument.js @@ -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;