#get a unknown webhook error.

15 messages · Page 1 of 1 (latest)

mental badge
#

Hello, I got a collector running on a message in my code 2048 so my buttons work. But sometimes there is a very small chance it goes erroring with unknown webhook error. I was unable to trace this error and was unable to intentionally recreate it. Is this a error on my side or discords side?

pallid bridgeBOT
#

• 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.

small bluff
#

Moreso after 15 mins in some cases

#

Which is the max interval

mental badge
small bluff
#

You can edit a message anytime

sick basaltBOT
#

Common causes of DiscordAPIError[10015]: Unknown webhook:

  • Application command followup/edit more than 15 minutes after the first acknowledgement.
  • Using a saved webhook token to initialize a new InteractionWebhook.
mental badge
#

So i should change everything that uses interaction. something to store in a other variable and that should fix it?

#

so change this interaction.member.id to a variable userID?

small bluff
mental badge
#

Alright should do

solar otter
#

Your message variable there is a InteractionResponse not a Message, so calling edit on it actually is a <Interaction>.editReply() effectively. Pass fetchReply: true in the .reply(…) to get the actual Message and be able to edit it beyond the expiration of the interaction webhook