Skip to content

Commit 91507f6

Browse files
committed
Fix FIRE-DPB
1 parent acf1d27 commit 91507f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/listeners/modal.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,8 @@ export default class Modal extends Listener {
13491349
}
13501350
case ComponentType.FileUpload: {
13511351
const sizeLimit = 8 * 1024 * 1024;
1352-
for (const attachment of data.attachments.values()) {
1352+
const attachments = modal.getUploadedFiles(data.customId);
1353+
for (const attachment of attachments.values()) {
13531354
if (attachment.size > sizeLimit)
13541355
return await modal.error("APPEALS_SUBMIT_FILE_TOO_LARGE", {
13551356
filename: attachment.name,

0 commit comments

Comments
 (0)