Skip to content

Fix issue with removed message #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

thevops
Copy link
Member

@thevops thevops commented Feb 24, 2025

When the last message from the thread has been removed by user, the bot will fail with:

DiscordAPIError: Unknown Message
    at RequestHandler.execute (/discord-bot/node_modules/discord.js/src/rest/RequestHandler.js:350:13)	
    at processTicksAndRejections (node:internal/process/task_queues:96:5)	
    at async RequestHandler.push (/discord-bot/node_modules/discord.js/src/rest/RequestHandler.js:51:14)	
    at async MessageManager._fetchId (/discord-bot/node_modules/discord.js/src/managers/MessageManager.js:219:18)	
    at async /discord-bot/cron/thread-lifecycle.js:60:33 {	
  method: 'get',	
  path: '/channels/123123123/messages/456456456',	
  code: 10008,	
  httpStatus: 404,	
  requestData: { json: undefined, files: [] }	
}

This PR is tagged with v1.0.1-rc2

@thevops thevops requested a review from nkuba February 24, 2025 13:11
@thevops thevops self-assigned this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant