We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf1d27 commit 91507f6Copy full SHA for 91507f6
src/listeners/modal.ts
@@ -1349,7 +1349,8 @@ export default class Modal extends Listener {
1349
}
1350
case ComponentType.FileUpload: {
1351
const sizeLimit = 8 * 1024 * 1024;
1352
- for (const attachment of data.attachments.values()) {
+ const attachments = modal.getUploadedFiles(data.customId);
1353
+ for (const attachment of attachments.values()) {
1354
if (attachment.size > sizeLimit)
1355
return await modal.error("APPEALS_SUBMIT_FILE_TOO_LARGE", {
1356
filename: attachment.name,
0 commit comments