DiscordAPIError[50027]: Invalid Webhook Token
Hey, I made a discord bot, but something isn't working. Occasionally when lots of people use the bot I get this error:
DiscordAPIError[50027]: Invalid Webhook Token
05.05 15:54:26 [Bot] at handleErrors (/node_modules/@discordjs/rest/dist/index.js:730:13)
05.05 15:54:26 [Bot] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
05.05 15:54:26 [Bot] at async SequentialHandler.runRequest (/node_modules/@discordjs/rest/dist/index.js:1133:23)
05.05 15:54:26 [Bot] at async SequentialHandler.queueRequest (/node_modules/@discordjs/rest/dist/index.js:963:14)
05.05 15:54:26 [Bot] at async _REST.request (/node_modules/@discordjs/rest/dist/index.js:1278:22)
05.05 15:54:26 [Bot] at async InteractionWebhook.editMessage (/node_modules/discord.js/src/structures/Webhook.js:341:15)
05.05 15:54:26 [Bot] at async ChatInputCommandInteraction.editReply (/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:161:17)
05.05 15:54:26 [Bot] at async InteractionCollector.<anonymous> (/Bot2/commands/club1/invitetoclub.js:814:49) {
Can someone help? I will be very happy if someone can help me with the solution.
3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!I will give the line of code in a sec.