Problem with Interactions
I am experiencing a bug with interactions when using a custom handler. I'll send the handler code below.
14 Replies
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
HANDLER CODE (Separate file)
HANDLER CODE (Index.js part)
and what problem do you encounter?
Interaction already acknowledged
you haven't shown any code that responds to interactions
is this error reproduceable?
does it only occur on specific commands/buttons?
or if it's for any and all interactions, could you show the rest of this file?
This.... seems to duplicate the bindings?
Wdym
Handler for
/post
Handler for buttons sent by /post
Just within this file you reply twice
You never answered my questions so idk if this is the only issue you have
β’
DiscordAPIError: Interaction has already been acknowledged
β’ [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
You have already replied to the interaction.
β’ Use <Interaction>.followUp()
to send a new message
β’ If you deferred reply it's better to use <Interaction>.editReply()
β’ Responding to slash commands / buttons / select menusu wanted code that responds to the interactions
I also asked a few more questions
Btw where does discord.js think I'm double replying
In this file you reply after connecting then reply after saving
Changing the second reply to an edit reply errors
I think i can fix it though