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/NUT0j24scx
SourceBin
Modal Field Not Found (But It Doesn't Exist)
Modal seems to look for a modal field that doesn't exist.
7 Replies
d.js toolkit
d.js toolkit17mo ago
- 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!
monbrey
monbrey17mo ago
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?
scarletarmada
scarletarmadaOP17mo ago
just this, part of what discord.js told me to do
monbrey
monbrey17mo ago
Alright, line 20 of interactionCreate?
scarletarmada
scarletarmadaOP17mo ago
Oh my god I'm dumb..
scarletarmada
scarletarmadaOP17mo ago
Will get to fixing that, thanks
monbrey
monbrey17mo ago
Yeah looks like it will try to do that on EVERY modal
Want results from more Discord servers?
Add your server