fix: backport in operator fix from main (#11127)

fix: use in operator when resolving modal component (#11115)
This commit is contained in:
Naiyar
2025-10-01 20:24:03 +05:30
committed by GitHub
parent 93e0f4cd10
commit fcce0d95bb

View File

@@ -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;