-
Notifications
You must be signed in to change notification settings - Fork 414
Open
Labels
Description
Description
We are using an adapted version of a Discord bot called modmailbot, which uses Eris v0.18.0.
Bug and Steps to Reproduce
Every time the bot receives a forwarded message through the messageCreate
event, a chain of errors occur (here it's just one error as I removed the first error handler for brevity), which leads to the process crashing.
To reproduce this bug, simply send a forwarded message to any channel that the bot is subscribed to.
Stacktrace
Error: Invalid channel ID: undefined
at Client.getChannel (C:\Users\Horou\Documents\GitHub\-\node_modules\eris\lib\Client.js:2448:13)
at new Message (C:\Users\Horou\Documents\GitHub\-\node_modules\eris\lib\structures\Message.js:65:33)
at C:\Users\Horou\Documents\GitHub\-\node_modules\eris\lib\structures\Message.js:94:21
at Array.map (<anonymous>)
at new Message (C:\Users\Horou\Documents\GitHub\-\node_modules\eris\lib\structures\Message.js:85:54)
at Shard.wsEvent (C:\Users\Horou\Documents\GitHub\-\node_modules\eris\lib\gateway\Shard.js:948:38)
at Shard.onPacket (C:\Users\Horou\Documents\GitHub\-\node_modules\eris\lib\gateway\Shard.js:398:16)
at Shard._onWSMessage (C:\Users\Horou\Documents\GitHub\-\node_modules\eris\lib\gateway\Shard.js:2583:21)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (C:\Users\Horou\Documents\GitHub\-\node_modules\ws\lib\websocket.js:1220:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (C:\Users\Horou\Documents\GitHub\-\node_modules\ws\lib\receiver.js:596:14)
at Receiver.getData (C:\Users\Horou\Documents\GitHub\-\node_modules\ws\lib\receiver.js:496:10)
at Receiver.startLoop (C:\Users\Horou\Documents\GitHub\-\node_modules\ws\lib\receiver.js:167:16)
at Receiver._write (C:\Users\Horou\Documents\GitHub\-\node_modules\ws\lib\receiver.js:94:10)
at writeOrBuffer (node:internal/streams/writable:391:12)