creesch / discordIRCd

A node.js script that allows you to connect to discord with your irc client.
Apache License 2.0
115 stars 21 forks source link

TypeError: Cannot read property 'id' of undefined #55

Open Volkor3-16 opened 4 years ago

Volkor3-16 commented 4 years ago

Happens randomly, no idea what's causing it. If I'm able to reproduce it properly I'll update here later

/home/volkor/git/discordIRCd/server.js:599
    const discordServerId = oldChannel.guild.id;
                                             ^

TypeError: Cannot read property 'id' of undefined
    at Client.<anonymous> (/home/volkor/git/discordIRCd/server.js:599:46)
    at Client.emit (events.js:198:13)
    at ChannelUpdateAction.handle (/home/volkor/git/discordIRCd/node_modules/discord.js/src/client/actions/ChannelUpdate.js:13:14)
    at ChannelUpdateHandler.handle (/home/volkor/git/discordIRCd/node_modules/discord.js/src/client/websocket/packets/handlers/ChannelUpdate.js:7:34)
    at WebSocketPacketManager.handle (/home/volkor/git/discordIRCd/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
    at WebSocketConnection.onPacket (/home/volkor/git/discordIRCd/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
    at WebSocketConnection.onMessage (/home/volkor/git/discordIRCd/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
    at WebSocket.onMessage (/home/volkor/git/discordIRCd/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:198:13)
    at Receiver._receiver.onmessage (/home/volkor/git/discordIRCd/node_modules/ws/lib/websocket.js:137:47)
rctgamer3 commented 3 years ago

Does this still occur? Can you check with the latest version?

Volkor3-16 commented 3 years ago

No, sorry, I migrated from IRC to matrix, all my configs for this are gone :(