This channel is for discussing our new voice library: https://github.com/discordjs/voice — we're excited to hear your thoughts and any questions/issues you have! 🎉
📌 What is @discordjs/voice?
This is a new voice library that we're working on that aims to be more reliable, scalable, and offer better playback quality than what we currently offer in Discord.js v12.
📌 What is happening to my existing voice code that uses Discord.js v12?
From v13, we are dropping support for the existing voice codebase to focus on the new voice library instead. The new voice library may look more intimidating, but we have created a thought-out music bot example (see examples below) to help you transition your code. Using our example music player means you'll likely end up writing less voice code in your bot!
📌 How do I use this with libraries that aren't discord.js?
You can use the new voice library anywhere you want by creating your own custom adapter. If you want to use the library with discord.js, there is currently a PR in progress (https://github.com/discordjs/discord.js/pull/5402) to add the required adapters directly to discord.js so you won't have to create them yourself. In the meantime, the examples in the voice repository work with v12.
📌 What about voice receive?
This feature isn't documented in the Voice API by Discord and is prone to breaking quite a lot. We have basic support for it in the voice library currently, but there is still work going on to add utilities to make it easier to work with.
📌 Useful links:
- GitHub Repo: https://github.com/discordjs/voice
- Examples: https://github.com/discordjs/voice/tree/main/examples
- GitHub Discussions: https://github.com/discordjs/voice/discussions (e.g. to give feedback on the library or to hold longer discussions that can be revisited in the future)
- Guide: https://discordjs.guide/voice/
o/








