get a unknown webhook error.

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?
10 Replies
d.js toolkit
d.js toolkit•3y ago
• 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.
KAVI
KAVI•3y ago
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
Basgamer999
Basgamer999OP•3y ago
discord.js@14.11.0 node:v18.16.0.
KAVI
KAVI•3y ago
You can edit a message anytime
d.js docs
d.js docs•3y ago
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.
Basgamer999
Basgamer999OP•3y ago
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?
KAVI
KAVI•3y ago
Please use source bin to share large code blocks <:T_high:800810451302088718>
Basgamer999
Basgamer999OP•3y ago
Alright should do
Basgamer999
Basgamer999OP•3y ago
Pastebin
// 2048 gameconst { SlashCommandBuilder, ActionRowBuilder, Butto...
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.
Basgamer999
Basgamer999OP•3y ago
LIke this?
const message = await interaction.reply({
components: [buttons],
embeds: [embed],
files: [gameboardImage],
fetchReply: true
});
const message = await interaction.reply({
components: [buttons],
embeds: [embed],
files: [gameboardImage],
fetchReply: true
});

Did you find this page helpful?