You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/hogehoge/gohan-dekitayo/node_modules/discord.js/src/client/actions/MessageCreate.js:11
const existing = channel.messages.cache.get(data.id);
^
TypeError: Cannot read property 'cache' of undefined
at MessageCreateAction.handle (/home/hogehoge/gohan-dekitayo/node_modules/discord.js/src/client/actions/MessageCreate.js:11:41)
at Object.module.exports [as MESSAGE_CREATE] (/home/hogehoge/gohan-dekitayo/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/hogehoge/gohan-dekitayo/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/hogehoge/gohan-dekitayo/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/hogehoge/gohan-dekitayo/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/hogehoge/gohan-dekitayo/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:375:28)
at Receiver.receiverOnMessage (/home/hogehoge/gohan-dekitayo/node_modules/ws/lib/websocket.js:833:20)
at Receiver.emit (events.js:375:28)
at Receiver.dataMessage (/home/hogehoge/gohan-dekitayo/node_modules/ws/lib/receiver.js:517:14)
I'm receiving the same type of error on my bot now, while it was previously working fine for a long time. You should take a look at the version of DiscordJS you're using. If it's < 13.3.1, consider upgrading - 13.3.1 contains the fix for this issue.
v13に更新すれば直るかも?
The text was updated successfully, but these errors were encountered:
サバイバーエージェントで利用している際に以下のエラーが発生
https://stackoverflow.com/questions/72077172/typeerror-cannot-read-properties-of-undefined-reading-cache-discord-js
v13に更新すれば直るかも?
The text was updated successfully, but these errors were encountered: