Zain
DIAdiscord.js - Imagine an app
•Created by Zain on 10/4/2024 in #djs-questions
Idk why am i getting this error while running bot for first time
C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules\discord.js\src\client\websocket\handlers\READY.js:17
client.guilds._add(guild);
^
TypeError: client.guilds._add is not a function
at module.exports [as READY] (C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules\discord.js\src\client\websocket\handlers\READY.js:17:19)
at WebSocketManager.handlePacket (C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules\discord.js\src\client\websocket\WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules\discord.js\src\client\websocket\WebSocketManager.js:232:12)
at WebSocketManager.emit (C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules@vladfrangu\async_event_emitter\dist\index.cjs:287:31)
at WebSocketShard.<anonymous> (C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules@discordjs\ws\dist\index.js:1190:51)
at WebSocketShard.emit (C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules@vladfrangu\async_event_emitter\dist\index.cjs:287:31)
at WebSocketShard.onMessage (C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules@discordjs\ws\dist\index.js:1005:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.18.2
it seems this error is occuring in READY.js websocked file in discord.js node_module, help?
13 replies