This property is typed as Collection<string, TextInputComponent>, however, the value is actually just an object that doesn't have the properties of the TextInputComponent class. I don't know what the idea was but I believe either the types should be changed to represent this object or the code should be changed to actually create a class of this type
#Incorrect type of ModalSubmitFields.fields
4 messages · Page 1 of 1 (latest)
The type seens to be wrong, it's used here https://github.com/discordjs/discord.js/blob/main/packages/discord.js/src/structures/ModalSubmitInteraction.js#L52
yes that is what I said
I know, I'm just pointing to where it's used in code