Visual Studio Code
Explore posts from serversDIAdiscord.js - Imagine a bot
•Created by Visual Studio Code on 11/12/2023 in #djs-questions
Fetching a slash command reply's ID before it's sent
Title basically explains what I'm trying to do.
I'm creating a post system, but instead of constantly doing a chain of replies, I want to just edit the topmost message by passing it's ID throughout all components.
postCommand.js
I tried getting the reply ID from the deferredReply, but that returns a completely different ID to the one that get's sent. The only method that works is by setting the customId after the message was sent, and then editing the reply to add the selectMenu.
I want to do this all before the event is sent.6 replies
DIAdiscord.js - Imagine a bot
•Created by Visual Studio Code on 7/25/2023 in #djs-questions
Error when trying to show modal after clicking button.
I'm trying to show a modal when the user clicks a button included in the reply, but I keep getting the
'InteractionAlreadyReplied'
error.
I was told using deferReply
was previously stopping it from working, so I switched it to a normal reply. Still getting the same error.
P.S. There's other variables in there due to there being database management things, I removed them to clear up what's causing the issue.17 replies