Resioku

Error when Mee6 creates a log

Dec 8th, 2021
980
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /home/resioku/Desktop/Butler Bot/src/functions/createBalance.js:6
  2.         let balanceProfile = await Balance.findOne({ memberId: member.id, guildId: member.guild.id });
  3.                                                                       ^
  4.  
  5. TypeError: Cannot read properties of null (reading 'id')
  6.     at Client.client.createBalance (/home/resioku/Desktop/Butler Bot/src/functions/createBalance.js:6:71)
  7.     at Object.execute (/home/resioku/Desktop/Butler Bot/src/events/messageCreate.js:6:45)
  8.     at Client.<anonymous> (/home/resioku/Desktop/Butler Bot/src/functions/handleEvents.js:8:58)
  9.     at Client.emit (node:events:390:28)
  10.     at MessageCreateAction.handle (/home/resioku/Desktop/Butler Bot/node_modules/discord.js/src/client/actions/MessageCreate.js:25:14)
  11.     at Object.module.exports [as MESSAGE_CREATE] (/home/resioku/Desktop/Butler Bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
  12.     at WebSocketManager.handlePacket (/home/resioku/Desktop/Butler Bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:350:31)
  13.     at WebSocketShard.onPacket (/home/resioku/Desktop/Butler Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
  14.     at WebSocketShard.onMessage (/home/resioku/Desktop/Butler Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
  15.     at WebSocket.onMessage (/home/resioku/Desktop/Butler Bot/node_modules/ws/lib/event-target.js:199:18)
RAW Paste Data