Interactions Confusing themselves w/ modals
I use a interactive modal embed system, for setting a greet message or creating/editing embeds however it confuses the interactions and replaces the embed info with the previous embed modal submissions. and gives me unknown interaction error.
13 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!Heres a snipet of my subcommand for /embed create its essentially the same as the other.
Oh yeah forgot about paste bin
One moment
Pastebin
Embed create subcommand - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
dont nest listeners like that
thats the cause of your issue
You should only have a single listener per event
:method: ChatInputCommandInteraction#awaitModalSubmit()
[email protected]
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
:HGnoted:
Use that
Tysm ill look into it :Hap:
Sorry to bother im a bit confused do you have any examples I could look at :mm_note:
This section is particularly for modal but it will do you good if you read the whole page for better understanding
:Prayge: Will very much be reading everything