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 93e0f4c commit fcce0d9Copy full SHA for fcce0d9
packages/discord.js/src/structures/ModalSubmitInteraction.js
@@ -146,9 +146,9 @@ class ModalSubmitInteraction extends BaseInteraction {
146
};
147
148
// Text display components do not have custom ids.
149
- if (rawComponent.custom_id) data.customId = rawComponent.custom_id;
+ if ('custom_id' in rawComponent) data.customId = rawComponent.custom_id;
150
151
- if (rawComponent.value) data.value = rawComponent.value;
+ if ('value' in rawComponent) data.value = rawComponent.value;
152
153
if (rawComponent.values) {
154
data.values = rawComponent.values;
0 commit comments