Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Bot Connected to : D:\A41SLBOT-master\src\events\reaction_roles\load.js:27 .messages.fetch(message_id) #25

Open
ghost opened this issue Mar 15, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 15, 2022

D:\A41SLBOT-master>node index.js
Reaction Roles : Fetching messages
Logged in as XCODER123!
Discord.js API Ready! ⚡
MemesAPI ready
Bot Connected to :
D:\A41SLBOT-master\src\events\reaction_roles\load.js:27
.messages.fetch(message_id)
^

TypeError: Cannot read properties of undefined (reading 'messages')
at D:\A41SLBOT-master\src\events\reaction_roles\load.js:27:11
at Client. (D:\A41SLBOT-master\src\events\reaction_roles\load.js:47:7)
at Client.emit (node:events:532:35)
at WebSocketManager.triggerClientReady (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
at WebSocketShard. (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)
at WebSocketShard.emit (node:events:520:28)
at WebSocketShard.checkReady (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
at Object.module.exports [as READY] (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\handlers\READY.js:20:9)
at WebSocketManager.handlePacket (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (D:\A41SLBOT-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (D:\A41SLBOT-master\node_modules\ws\lib\event-target.js:132:16)
at WebSocket.emit (node:events:520:28)
at Receiver.receiverOnMessage (D:\A41SLBOT-master\node_modules\ws\lib\websocket.js:833:20)
at Receiver.emit (node:events:520:28)
at Receiver.dataMessage (D:\A41SLBOT-master\node_modules\ws\lib\receiver.js:517:14)
at Receiver.getData (D:\A41SLBOT-master\node_modules\ws\lib\receiver.js:435:17)
at Receiver.startLoop (D:\A41SLBOT-master\node_modules\ws\lib\receiver.js:143:22)
at Receiver._write (D:\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)
Plz help me

@BlazeIsClone
Copy link
Owner

BlazeIsClone commented Mar 19, 2022

@Arshdeepandcoder123 make sure you modify src/database/roles-reaction.json with your specific credentials. Also, does this error cause the bot to crash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant