button interaction doesnt work (d.js 14.11.0)
Im making a bot and button interactions dont work, when you hit a button it responds with "the application did not respond".
Heres my code: https://hastebin.skyra.pw/junucexuze.js
There are some variables that i left out for simplicity's sake but theyre unimportant to the part that doesnt work xd.
anyways so i'd appreciate if anyone could help me :)
13 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.Its customId, not customID
@luna🌈 Now it just says "this interaction failed"
Because you did not reply to the collected interaction
but i run interaction.editReply?
oh wait
you're editing your original interaction
well if i console.log something in the if check it doesnt even get logged
Idk whether filter can be null
fair enough but then how would i not have a filter
I would try passing in true, not entirely sure whether that'd worl though
also your time can be 15 mins max, the webhook token expires after 15 mins
here is my way of doing it no idea if it works but you can try
.update will throw an error since the reply hasnt been sent yet i think
then use
interaction.deferReply()