mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-05-13 11:31:43 -04:00
bot crash after some hours #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HamzaJarane on GitHub (Oct 14, 2022).
/root/game-server-watcher/node_modules/discord.js/src/client/actions/MessageCreate.js:11
const existing = channel.messages.cache.get(data.id);
^
TypeError: Cannot read properties of undefined (reading 'cache')
at MessageCreateAction.handle (/root/game-server-watcher/node_modules/discord.js/src/client/actions/MessageCreate.js:11:41)
at Object.module.exports [as MESSAGE_CREATE] (/root/game-server-watcher/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/game-server-watcher/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/root/game-server-watcher/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/root/game-server-watcher/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/root/game-server-watcher/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/root/game-server-watcher/node_modules/ws/lib/websocket.js:1068:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/root/game-server-watcher/node_modules/ws/lib/receiver.js:517:14)
node.js: v16
discord.js: 12.5.3
os: ubuntu 20.04 (self hosting)
tried to run it with nodemon/pm2/screen and still crash after some hours