Skip to content

Commit fcce0d9

Browse files
authored
fix: backport in operator fix from main (#11127)
fix: use in operator when resolving modal component (#11115)
1 parent 93e0f4c commit fcce0d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/discord.js/src/structures/ModalSubmitInteraction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ class ModalSubmitInteraction extends BaseInteraction {
146146
};
147147

148148
// Text display components do not have custom ids.
149-
if (rawComponent.custom_id) data.customId = rawComponent.custom_id;
149+
if ('custom_id' in rawComponent) data.customId = rawComponent.custom_id;
150150

151-
if (rawComponent.value) data.value = rawComponent.value;
151+
if ('value' in rawComponent) data.value = rawComponent.value;
152152

153153
if (rawComponent.values) {
154154
data.values = rawComponent.values;

0 commit comments

Comments
 (0)