Add max attachment size argument option

This commit is contained in:
Dragon Fire
2024-05-08 23:51:54 -04:00
parent 21c1d717c4
commit 29bdfbd83b
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -11,6 +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.default = typeof options.default === 'undefined' ? null : options.default;
this.infinite = options.infinite || false;
this.avatarSize = options.avatarSize || 2048;