0

After running my bot for a while using discord.js/voice the packet loss is horrible, it loses 1 packet every second. Is this a memory leak? I switched providers and it still happens. Note: When I start the bot there is no packet loss but after a couple of hours there's a lot of it.

Can someone please help? (I use process.on('unhandledRejection') and process.on('uncaughtException') if that is a problem since I've seen issues with it.)

Packet Loss Screenshot

enter image description here

Zsolt Meszaros
  • 21,961
  • 19
  • 54
  • 57
Nick
  • 1
  • 2

1 Answers1

0

I fixed the problem by installing Sodium and @discord/opus with npm.

Nick
  • 1
  • 2
  • Welcome! Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline. – jasie Jul 19 '22 at 06:17