Connecting to a voice channel and sending audio in

2019-07-08 05:21发布

问题:

After looking for hours I still can't find how should I set up sending an audio using Discord.net 1.0. All of the solutions I encountered have been for pre-1.0 relases and as far as I can see, new API is completly different.

So my question is: How do i join voice channel and send music through? Do I need external libraries (NAudio)?

回答1:

If someone is looking for Audio example it's here. You also need opus and libsodium in bot running directory. You can get this libraries on Discord "Discord API" sever with command ?tag voice-natives.