"ChannelNotCached" Error when Editing Messages sent via DM (v15)

Hello, Discord.js version: 15.0.0-dev.1749341741-8e03af6ea After enabling the "user install" option for my bot, I occasionally receive the following error when my bot attempts to edit a message (specifically, this happens with messages that have components. The message has an interaction collector which, upon ending, edits the message and replaces its components with disabled versions to prevent any further user interactions):
Error [ChannelNotCached]: Could not find the channel where this message came from in the cache!
at Message.edit ... node_modules\discord.js\src\structures\Message.js:858:30)
Error [ChannelNotCached]: Could not find the channel where this message came from in the cache!
at Message.edit ... node_modules\discord.js\src\structures\Message.js:858:30)
I am guessing that this only happens with DMs, since the issue only appeared after turning on user-install for the app. Has anyone else seen this issue before, or have any troubleshooting recommendations? Thanks in advance.
No description
2 Replies
d.js toolkit
d.js toolkit6mo 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! - Marked as resolved by OP
Madeline
MadelineOP6mo ago
Thank you very much! That makes sense. I avoided using Interaction#editReply() because the reply does not seem to be editable after 15 minutes. Is that simply a limitation I'll have to live with as far as user installs go? Okay, thanks I really appreciate the help! :Taiga_Talking_Happy_Bedtime:

Did you find this page helpful?