Open Duckerr opened 3 years ago
(node:10940) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined at sendOrUpdate (C:\Users\ASUS\Desktop\FivemServerStatus-master\Discord Bot\bot.js:117:40) at offline (C:\Users\ASUS\Desktop\FivemServerStatus-master\Discord Bot\bot.js:162:5) at processTicksAndRejections (internal/process/task_queues.js:93:5)
I still got this error after I have updated
TypeError: Cannot read property 'id' of undefined at ClientDataManager.newChannel (C:[BOTS][RUN]\Discord Bot\node_modules\discord.js\src\client\ClientDataManager.js:81:36) at Guild.setup (C:[BOTS][RUN]\Discord Bot\node_modules\discord.js\src\structures\Guild.js:307:68) at GuildCreateHandler.handle (C:[BOTS][RUN]\Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\GuildCreate.js:12:15) at WebSocketPacketManager.handle (C:[BOTS][RUN]\Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:108:65) at WebSocketConnection.onPacket (C:[BOTS][RUN]\Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:336:35) at WebSocketConnection.onMessage (C:[BOTS][RUN]\Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:299:17) at WebSocket.onMessage (C:[BOTS][RUN]\Discord Bot\node_modules\ws\lib\event-target.js:120:16) at WebSocket.emit (events.js:376:20) at Receiver.receiverOnMessage (C:[BOTS][RUN]\Discord Bot\node_modules\ws\lib\websocket.js:789:20) at Receiver.emit (events.js:376:20)
Now compatible with new Discord.js v12, also cleaned up config to make it more user friendly