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 toolkit2y 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
KAVI2y 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
Basgamer999OP2y ago
KAVI
KAVI2y ago
You can edit a message anytime
d.js docs
d.js docs2y 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
Basgamer999OP2y 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
KAVI2y ago
Please use source bin to share large code blocks <:T_high:800810451302088718>
Basgamer999
Basgamer999OP2y ago
Alright should do
Basgamer999
Basgamer999OP2y 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
Basgamer999OP2y 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
});
Want results from more Discord servers?
Add your server