#if (!field) throw new DiscordjsTypeError(ErrorCodes.ModalSubmitInteractionFieldNotFound, customI

20 messages · Page 1 of 1 (latest)

opaque wolf
#

I have this error and this my code in the pictures

leaden arrowBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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
opaque wolf
#

node: v18.17.1

wintry zealot
opaque wolf
#

Ohh, let me check

#

Oh, Now my code printed what submitted in Modal, but the I have "Something went wrong when submit"

#

@wintry zealot

wintry zealot
#

You need to reply to the ModalSubmitInteraction

opaque wolf
#

How, wdym?

opaque wolf
#

This error gone and solved, but I get something went wrong in discord

wintry zealot
#

Yes, if interaction is the interaction you received from the modal, not the interaction from the command being ran

opaque wolf
#

Ahh, Okay, I want to push data to a discussion form instead of reply, Can I?

#

I think I can or? @wintry zealot

wintry zealot
#

You need to reply to the modal interaction either way, but you can send a message to a different channel after that

opaque wolf
#

it can be, yes?

wintry zealot
#

Yes, include ephemeral: true in your reply options object

opaque wolf
#

Ahh, Thank you so much my friend ❤️

#

I will try if done I will mark it as solved