Skip to content
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

Channel not cached #63

Closed
saiteja-madha opened this issue Dec 7, 2021 · 3 comments · Fixed by #68
Closed

Channel not cached #63

saiteja-madha opened this issue Dec 7, 2021 · 3 comments · Fixed by #68
Assignees
Labels
bug Something is verified not to work

Comments

@saiteja-madha
Copy link
Owner

Error [CHANNEL_NOT_CACHED]: Could not find the channel where this message came from in the cache!
    at Message.edit (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/Message.js:653:46)
    at InteractionCollector.<anonymous> (/home/strange/Desktop/discord-js-bot/src/commands/utility/help.js:196:16)
    at InteractionCollector.emit (node:events:406:35)
    at InteractionCollector.stop (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/interfaces/Collector.js:197:10)
    at InteractionCollector._handleGuildDeletion (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/structures/InteractionCollector.js:228:12)
    at BotClient.emit (node:events:406:35)
    at GuildDeleteAction.handle (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/actions/GuildDelete.js:47:14)
    at Object.module.exports [as GUILD_DELETE] (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/handlers/GUILD_DELETE.js:4:30)
    at WebSocketManager.handlePacket (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:350:31)
    at WebSocketShard.onPacket (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
    at WebSocketShard.onMessage (/home/strange/Desktop/discord-js-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
    at WebSocket.onMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:394:28)
    at Receiver.receiverOnMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/websocket.js:1022:20)
    at Receiver.emit (node:events:394:28)
    at Receiver.dataMessage (/home/strange/Desktop/discord-js-bot/node_modules/ws/lib/receiver.js:522:14)
@saiteja-madha saiteja-madha added the bug Something is verified not to work label Dec 7, 2021
@saiteja-madha saiteja-madha self-assigned this Dec 7, 2021
saiteja-madha added a commit that referenced this issue Dec 7, 2021
@saiteja-madha saiteja-madha linked a pull request Dec 8, 2021 that will close this issue
@AZERTY442005
Copy link

I have the same problem, can you help me pls ?

@dmanexe
Copy link

dmanexe commented Apr 9, 2023

Also having the same issue.

@dmanexe
Copy link

dmanexe commented Apr 9, 2023

Update:

Isolated the code and found what triggered it for me, maybe this helps someone.

It appears that my issue was setting message.channelId = foo and message.guildId = foo, within another function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is verified not to work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants