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
d.js toolkit
d.js toolkit2d ago
- 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!
Panda
PandaOP2d ago
Heres a snipet of my subcommand for /embed create its essentially the same as the other.
d.js docs
d.js docs2d ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
Panda
PandaOP2d ago
Oh yeah forgot about paste bin One moment
Panda
PandaOP2d ago
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.
treble/luna
treble/luna2d ago
dont nest listeners like that thats the cause of your issue You should only have a single listener per event
d.js docs
d.js docs2d ago
:method: ChatInputCommandInteraction#awaitModalSubmit() [email protected] Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
// Collect a modal submit interaction
const filter = (interaction) => interaction.customId === 'modal';
interaction.awaitModalSubmit({ filter, time: 15_000 })
.then(interaction => console.log(`${interaction.customId} was submitted!`))
.catch(console.error);
// Collect a modal submit interaction
const filter = (interaction) => interaction.customId === 'modal';
interaction.awaitModalSubmit({ filter, time: 15_000 })
.then(interaction => console.log(`${interaction.customId} was submitted!`))
.catch(console.error);
Panda
PandaOP2d ago
:HGnoted:
treble/luna
treble/luna2d ago
Use that
Panda
PandaOP2d ago
Tysm ill look into it :Hap: Sorry to bother im a bit confused do you have any examples I could look at :mm_note:
d.js docs
d.js docs2d ago
:guide: Popular Topics: Collectors - Await modal submit read more
NyR
NyR2d ago
This section is particularly for modal but it will do you good if you read the whole page for better understanding
Panda
PandaOP2d ago
:Prayge: Will very much be reading everything

Did you find this page helpful?