Hi, ı have a error. I can not understand. I always get such errors.
Error;
(node:16923) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 291)
(node:16923) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘guild’ of undefined
at Client.client.on (/app/stark.js:14:40)
at emitOne (events.js:116:13)
at Client.emit (events.js:211:7)
at WebSocketConnection.onPacket (/rbd/pnpm-volume/b6c737d6-37b7-4db5-bb99-3d864b3f5cd4/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:317:17)
at WebSocketConnection.onMessage (/rbd/pnpm-volume/b6c737d6-37b7-4db5-bb99-3d864b3f5cd4/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/rbd/pnpm-volume/b6c737d6-37b7-4db5-bb99-3d864b3f5cd4/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:120:16)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
at Receiver.receiverOnMessage (/rbd/pnpm-volume/b6c737d6-37b7-4db5-bb99-3d864b3f5cd4/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/websocket.js:789:20)
at emitOne (events.js:116:13)
(node:16923) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 292)