Modal Field Not Found (for field that was never on there to begin with)
Hey,
This error keeps popping up where apparently it's looking for a field with the custom ID "name," but that's just not what I put on the modal, or anywhere in the file.
Yes, I triple (and quadruple) checked that the modal custom ID in the filter is the same. Also, the file stands alone and is not affected by any other code besides the class. I did Discord.js's prescribed way of having dynamic commands, events, et cetera; but put it in classes for more ease (hence the
ReadableCommand
class).
Please let me know what's going on here. Thanks.
https://srcb.in/NUT0j24scxSourceBin
Modal Field Not Found (But It Doesn't Exist)
Modal seems to look for a modal field that doesn't exist.
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.
- Issue solved? Press the button!This error means your code is trying to get a field called "name" which as you correctly pointed out, you never put on the modal. Whats line 63 of your index?
just this, part of what discord.js told me to do
Alright, line 20 of interactionCreate?
Oh my god I'm dumb..
Will get to fixing that, thanks
Yeah looks like it will try to do that on EVERY modal