BlazeIsClone/a41sl

Can't start bot

getxd-dev opened this issue · 0 comments

after i run "npm start"

it says this.

TypeError: Cannot read properties of undefined (reading 'messages')
    at C:\Users\acer\Desktop\A41SLBOT-master\src\events\reaction_roles\load.js:27:11
    at Client.<anonymous> (C:\Users\acer\Desktop\A41SLBOT-master\src\events\reaction_roles\load.js:47:7)
    at Client.emit (node:events:406:35)
    at WebSocketManager.triggerClientReady (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
    at WebSocketManager.checkShardsReady (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
    at WebSocketShard.<anonymous> (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)
    at WebSocketShard.emit (node:events:394:28)
    at WebSocketShard.checkReady (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
    at WebSocketShard.onPacket (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)
    at WebSocketShard.onMessage (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
    at WebSocket.onMessage (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\ws\lib\event-target.js:132:16)
    at WebSocket.emit (node:events:394:28)
    at Receiver.receiverOnMessage (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\ws\lib\websocket.js:833:20)
    at Receiver.emit (node:events:394:28)
    at Receiver.dataMessage (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\ws\lib\receiver.js:517:14)
    at Receiver.getData (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\ws\lib\receiver.js:435:17)
    at Receiver.startLoop (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\ws\lib\receiver.js:143:22)
    at Receiver._write (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\ws\lib\receiver.js:78:10)
    at writeOrBuffer (node:internal/streams/writable:389:12)
    at _write (node:internal/streams/writable:330:10)
    at Receiver.Writable.write (node:internal/streams/writable:334:10)
    at TLSSocket.socketOnData (C:\Users\acer\Desktop\A41SLBOT-master\node_modules\ws\lib\websocket.js:908:35)