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

Bot has been running fine and now out of nowhere i get this error #6

Open
TeamNoxious opened this issue Jan 26, 2023 · 0 comments
Open

Comments

@TeamNoxious
Copy link

TeamNoxious commented Jan 26, 2023

Bot has been running fine and now out of nowhere i get this error

/root/minestatBot2/Discord-Minecraft-Bot/node_modules/discord.js/src/client/ClientDataManager.js:81
        guild.channels.set(channel.id, channel);
                                   ^

TypeError: Cannot read properties of undefined (reading 'id')
    at ClientDataManager.newChannel (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/discord.js/src/client/ClientDataManager.js:81:36)
    at Guild.setup (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/discord.js/src/structures/Guild.js:307:68)
    at GuildCreateHandler.handle (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/discord.js/src/client/websocket/packets/handlers/GuildCreate.js:12:15)
    at WebSocketPacketManager.handle (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:108:65)
    at WebSocketConnection.onPacket (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:336:35)
    at WebSocketConnection.onMessage (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:299:17)
    at WebSocket.onMessage (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/root/minestatBot2/Discord-Minecraft-Bot/node_modules/ws/lib/websocket.js:789:20)
    at Receiver.emit (node:events:513:28)

Node.js v18.12.1```

ive even recloned the git and left it as it was and it still does the same thing

Also ive made sure that I have the latest discord.js installed and all packages were installed.
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