discord.js ignores select menu input
Updated from
[email protected] -> [email protected]
last night and it appears to completely ignore the collector here, no output at all when selecting an option.22 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!could you share more of your code?
what type of interaction is the one you're replying to with this select menu?
is it a modal submit?
does it behave the same if you add
fetchReply: true
to the reply
options?
does the InteractionCreate
event still emit as normal for this string select menu interaction?https://sourceb.in/jveslYpMX5
It is a menu selection from a message
not a modal submit
fetchReply: true
behaves the same, still no luck
I use InteractionCreate
elsewhere and it does work, doesn't work specifically in this caseI use InteractionCreate
elsewhere and it does work, doesn't work specifically in this case
just to clarify, do you mean that it doesn't emit at all?No it does, that's the thing. it works for a different interaction in another file
https://sourceb.in/PAEHcTli1v
I'm not asking about a different interaction in another file
I'm asking if it emits for the interaction you're trying to collect
not at all
this video doesn't really answer my question
if you just log something at the top of your
interactionCreate
event listener, does it log when you use the select menu?Yes it does, the first half of my code works.. meaning it sends the reply:
however the issue I'm having is the collector not firing when I choose an option
this also doesn't answer my question
my fault
zooted
I'm asking whether it logs when you use the select menu that you're trying to collect the interaction for
oh
no it doesn't log
doesn't log anything, even a string
you mean this?
no, log at the top of your
interactionCreate
listener
not the collectorah
yes it does log
I just don't understand what changed in v14.13 that causes the collector to not respond
and the fact I have nearly identical code in another
interactionCreate
event file that worksfor your original code, I believe the issue comes from a pr that was merged for 14.12, specifically the change in how the collector's
messageId
is determined
however I can't seem to find anything relating to if you were to add fetchReply: true
in your reply
optionsoh wow, well that's embarrassing
fetchReply: true
works nowno worries, just glad to have isolated the issue
i really appreciate it !