#get a unknown webhook error.
15 messages · Page 1 of 1 (latest)
• 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.
That errors happens when you try to respond to an interaction very late in the code
Moreso after 15 mins in some cases
Which is the max interval
[email protected]
node:v18.16.0.
You can edit a message anytime
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.
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?
Please use source bin to share large code blocks

Alright should do
https://pastebin.com/uGWfqjcp here you go
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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