mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: backport in operator fix from main (#11127)
fix: use in operator when resolving modal component (#11115)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user