Advertisement
Guest User

Error

a guest
May 18th, 2022
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. 18.05 13:30:37 [Bot] /HHDiscordBot/node_modules/discord.js/src/client/actions/MessageCreate.js:11
  2. 18.05 13:30:37 [Bot] const existing = channel.messages.cache.get(data.id);
  3. 18.05 13:30:37 [Bot] ^
  4. 18.05 13:30:37 [Bot] TypeError: Cannot read property 'cache' of undefined
  5. 18.05 13:30:37 [Bot] at MessageCreateAction.handle (/HHDiscordBot/node_modules/discord.js/src/client/actions/MessageCreate.js:11:41)
  6. 18.05 13:30:37 [Bot] at Object.module.exports [as MESSAGE_CREATE] (/HHDiscordBot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
  7. 18.05 13:30:37 [Bot] at WebSocketManager.handlePacket (/HHDiscordBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
  8. 18.05 13:30:37 [Bot] at WebSocketShard.onPacket (/HHDiscordBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
  9. 18.05 13:30:37 [Bot] at WebSocketShard.onMessage (/HHDiscordBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
  10. 18.05 13:30:37 [Bot] at WebSocket.onMessage (/HHDiscordBot/node_modules/ws/lib/event-target.js:125:16)
  11. 18.05 13:30:37 [Bot] at WebSocket.emit (events.js:310:20)
  12. 18.05 13:30:37 [Bot] at Receiver.receiverOnMessage (/HHDiscordBot/node_modules/ws/lib/websocket.js:797:20)
  13. 18.05 13:30:37 [Bot] at Receiver.emit (events.js:310:20)
  14. 18.05 13:30:37 [Bot] at Receiver.dataMessage (/HHDiscordBot/node_modules/ws/lib/receiver.js:437:14)
  15.  
  16. --------------------------------------------------------------------------------------------------------------
  17.  
  18. 18.05 13:35:35 [Bot] (node:165) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'roles' of null
  19. 18.05 13:35:35 [Bot] at Client.<anonymous> (/HHDiscordBot/index.js:301:20)
  20. 18.05 13:35:35 [Bot] at processTicksAndRejections (internal/process/task_queues.js:97:5)
  21. 18.05 13:35:35 [Bot] (node:165) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  22. 18.05 13:35:35 [Bot] (node:165) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement