From fcce0d95bb6cd415f40f9f7a052e01ddcf625ed0 Mon Sep 17 00:00:00 2001 From: Naiyar <137700126+imnaiyar@users.noreply.github.com> Date: Wed, 1 Oct 2025 20:24:03 +0530 Subject: [PATCH] fix: backport in operator fix from main (#11127) fix: use in operator when resolving modal component (#11115) --- packages/discord.js/src/structures/ModalSubmitInteraction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/ModalSubmitInteraction.js b/packages/discord.js/src/structures/ModalSubmitInteraction.js index f7239cf8d..0e474035e 100644 --- a/packages/discord.js/src/structures/ModalSubmitInteraction.js +++ b/packages/discord.js/src/structures/ModalSubmitInteraction.js @@ -146,9 +146,9 @@ class ModalSubmitInteraction extends BaseInteraction { }; // Text display components do not have custom ids. - if (rawComponent.custom_id) data.customId = rawComponent.custom_id; + if ('custom_id' in rawComponent) data.customId = rawComponent.custom_id; - if (rawComponent.value) data.value = rawComponent.value; + if ('value' in rawComponent) data.value = rawComponent.value; if (rawComponent.values) { data.values = rawComponent.values;