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;