#if (!field) throw new DiscordjsTypeError(ErrorCodes.ModalSubmitInteractionFieldNotFound, customI
20 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
✅Marked as resolved by OP
node: v18.17.1
your field custom id is YourName, but you're trying to get it via getField('Name')
Ohh, let me check
Oh, Now my code printed what submitted in Modal, but the I have "Something went wrong when submit"
@wintry zealot
You need to reply to the ModalSubmitInteraction
How, wdym?
You mean interaction.reply?
This error gone and solved, but I get something went wrong in discord
Yes, if interaction is the interaction you received from the modal, not the interaction from the command being ran
Ahh, Okay, I want to push data to a discussion form instead of reply, Can I?
I think I can or? @wintry zealot
You need to reply to the modal interaction either way, but you can send a message to a different channel after that
Ok, some bots send messages no one can see it expect the clicker/sender of the Modal
it can be, yes?
Yes, include ephemeral: true in your reply options object