Skip to content

Voice channel messages crash the WaspBot inside of discord.js library #46

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

Open
FranjoMindek opened this issue Apr 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@FranjoMindek
Copy link
Contributor

Sending messages to voice channels crashes our WaspBot instance.

Following error was recorded each time a message was sent to #!launch-week-9

  |   | 2025-04-14 16:00:30.323 | at Receiver.dataMessage (/app/node_modules/ws/lib/receiver.js:437:14) |  
  |   | 2025-04-14 16:00:30.323 | at Receiver.emit (node:events:524:28) |  
  |   | 2025-04-14 16:00:30.323 | at Receiver.receiverOnMessage (/app/node_modules/ws/lib/websocket.js:825:20) |  
  |   | 2025-04-14 16:00:30.323 | at WebSocket.emit (node:events:524:28) |  
  |   | 2025-04-14 16:00:30.323 | at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:132:16) |  
  |   | 2025-04-14 16:00:30.323 | at WebSocketShard.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10) |  
  |   | 2025-04-14 16:00:30.323 | at WebSocketShard.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22) |  
  |   | 2025-04-14 16:00:30.323 | at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31) |  
  |   | 2025-04-14 16:00:30.323 | at module.exports [as MESSAGE_CREATE] (/app/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) |  
  |   | 2025-04-14 16:00:30.323 | at MessageCreateAction.handle (/app/node_modules/discord.js/src/client/actions/MessageCreate.js:11:41) |  
  |   | 2025-04-14 16:00:30.323 | TypeError: Cannot read properties of undefined (reading 'cache') |  
  |   | 2025-04-14 16:00:30.323 | ^ |  
  |   | 2025-04-14 16:00:30.323 | const existing = channel.messages.cache.get(data.id); |  
  |   | 2025-04-14 16:00:30.323 | /app/node_modules/discord.js/src/client/actions/MessageCreate.js:11
@FranjoMindek FranjoMindek added the bug Something isn't working label Apr 15, 2025
@FranjoMindek
Copy link
Contributor Author

FranjoMindek commented Apr 15, 2025

Related: #42 and #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant