Interaction Handler (Buttons)
Hello there.
I am trying to make a giveaway bot without using SQL / any database. I am quite new in coding hopefully can get more profession helps.
Actually i have the giveaway bot done, but i didnt put the Interaction on button into my InteractionCreate.
the issue is, whenever i create a new giveaway after bot start, it works. after that, i create 2nd giveaway, the interaction still work. but there is an error shows as there are some interaction Error.
Which files do i need to upload here?
14 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.Common causes of
DiscordAPIError[10062]: Unknown interaction
:
• Initial response took more than 3 seconds ➞ defer the response *.
• Wrong interaction object inside a collector.
* Note: you cannot defer modal or autocomplete value responsesUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
I didnt add any database, but i use a simple store:
const enteredUsers = new Set(); // Set to store entered user IDs
how can i defer the response...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
pl
ok
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Hold on ya, let me show u my code in the button part
my interaction button is put inside my giveaway.js
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
then should be
to
?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View