Skip to content
Advertisement

DiscordJSv14 Recording / Receiving Voice Audio

So I’m working on a Discord bot using JS and DiscordJSv14, and want the bot to use audio from a voice chat to send to another bot, some type of listen and snitch bot.

So far I got the Bot’s connecting to the voice call but can’t get any of the packets to send to the other bot.

Here’s some code I’ve got so far:

JavaScript

Console won’t log anything about the chunk Using DiscordJSv14 + @discordjs/opus

Advertisement

Answer

Everything worked fine I just needed to add the following code below.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement