Bot cant interaction.editReply()

My bot randomly cant send a interaction reply. Everything in the command works except interaction.editReply() and getting DiscordAPIError: Invalid Webhook Token error after like long time. When I use the command it just says "Bot is thinking..." but never replies. I havent changed any code for like a week and it started happening today when I was asleep.
2 Replies
d.js toolkit
d.js toolkit9mo ago
- 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!
Kristab
KristabOP9mo ago
Error
DiscordAPIError: Invalid Webhook Token
at RequestHandler.execute (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async InteractionWebhook.editMessage (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/structures/Webhook.js:328:15)
at async CommandInteraction.editReply (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:150:21) {
method: 'patch',
path: '/webhooks/889147155443515393/aW50ZXJhY3Rpb246MTIyNTg0MDM4NTUyODQzMDY0Mzppdmc3UFZiRGdMOUxrTm0zRDlWMUc0OE4zMWpvV0NEZEt0M1VabmwwUWVUY3RudUtaRHdXWG51WWxBM1BnOWVRbkkwdFhFd1p4eWdLVXRXTnpzdldyUE52d0JkY2Y4V1U1ekRoM1lMeFVTV05pTEw1Q29qUUJnM2tkZmJodklLdA/messages/@original',
code: 50027,
httpStatus: 401,
requestData: {
json: {
content: 'You gave **1,000,000 Berries** to **d4rkblood**.',
DiscordAPIError: Invalid Webhook Token
at RequestHandler.execute (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async InteractionWebhook.editMessage (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/structures/Webhook.js:328:15)
at async CommandInteraction.editReply (/rbd/pnpm-volume/0611714e-6680-4fc8-83cd-a98e76121eb1/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:150:21) {
method: 'patch',
path: '/webhooks/889147155443515393/aW50ZXJhY3Rpb246MTIyNTg0MDM4NTUyODQzMDY0Mzppdmc3UFZiRGdMOUxrTm0zRDlWMUc0OE4zMWpvV0NEZEt0M1VabmwwUWVUY3RudUtaRHdXWG51WWxBM1BnOWVRbkkwdFhFd1p4eWdLVXRXTnpzdldyUE52d0JkY2Y4V1U1ekRoM1lMeFVTV05pTEw1Q29qUUJnM2tkZmJodklLdA/messages/@original',
code: 50027,
httpStatus: 401,
requestData: {
json: {
content: 'You gave **1,000,000 Berries** to **d4rkblood**.',
Want results from more Discord servers?
Add your server