Get interaction of an interaction
Hi ! I wanted to know, with discord.js
14.11.0
, there is a way to get an interaction sourced of another.
To explain, I want to modify an embed with context menu and a modal (the modal appear after i click on the context menu action) and with that, I don't know how I can get the message of context menu when I submit all fields of the modal.
https://github.com/Les-Moddeurs-Francais/Moddeur-Ultime/tree/suggestions
Thanks in advance ^^
Mysterious_DevGitHub
GitHub - Les-Moddeurs-Francais/Moddeur-Ultime at suggestions
Discord bot of Les Moddeurs Français server. Contribute to Les-Moddeurs-Francais/Moddeur-Ultime development by creating an account on GitHub.
3 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. ContextMenuCommandInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
This can let me get the original message where I used the context menu action ?
Nice 👍. Thanks for your help ^^