Getting unknown message when the message ID matches the message?

I have zero clue why this is happening... ERROR:
DiscordAPIError[10008]: Unknown Message
at SequentialHandler.runRequest (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:293:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:99:14)
at async REST.request (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/REST.cjs:52:22)
at async MessageManager._fetchSingle (/root/codinghelp-bot/node_modules/discord.js/src/managers/MessageManager.js:101:18) {
rawError: { message: 'Unknown Message', code: 10008 },
code: 10008,
status: 404,
method: 'GET',
url: 'https://discord.com/api/v10/channels/433877613128450061/messages/1029429202744774727',
requestBody: { files: undefined, json: undefined }
}
DiscordAPIError[10008]: Unknown Message
at SequentialHandler.runRequest (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:293:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:99:14)
at async REST.request (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/lib/REST.cjs:52:22)
at async MessageManager._fetchSingle (/root/codinghelp-bot/node_modules/discord.js/src/managers/MessageManager.js:101:18) {
rawError: { message: 'Unknown Message', code: 10008 },
code: 10008,
status: 404,
method: 'GET',
url: 'https://discord.com/api/v10/channels/433877613128450061/messages/1029429202744774727',
requestBody: { files: undefined, json: undefined }
}
Code: https://gist.githubusercontent.com/DudeThatsErin/b0231f2a38cb85309a33de14faac0107/raw/cf60a44de9d4329b462fd93fe2b7849e14ecc1ec/prog-sugg.js Message ID is found in DB and matches the message in the channel. This is for my suggestions command. /suggestions is used to create an embed with a thumbs up and thumbs down in a channel and then it creates a thread related to that suggestion (so we can chat about it). Then this command /suggestionprogress takes the message ID of that embed as well as an "in progress" message. I understand it is saying that this message ID isn't found by discord... I have no clue why.
6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
조아오
조아오2y ago
The most probable reason is the message was deleted
Erin
Erin2y ago
It isn't. I'm looking at the message right now.
조아오
조아오2y ago
Are you sure the channel id matches? and the message one too?
Erin
Erin2y ago
That was it. The channel ID was wrong. Thanks!
조아오
조아오2y ago
np