Sorry Jorge, been a while since I logged in. If you look at any of the big music bots, they have the same way of creating bots we have. There is no magic to how bots stream their sound and Discord accepts whatever bitrate you send to it that is it’s max allowed (which I saw as 384kbps on most posts / blogs / music bots).
I had read a number of posts about bot developers that said the same thing, you have to dig a bit to get all that information. It’s more about the bitrate you send to Discord. What you receive depends on your own settings and bandwidth.
I personally have not connected directly to the output of audio from Discord to figure this out, but my understanding is you could if you had the network tools to do so (and articles I had read that say this is the case).
You can search around reddit and / or on the developer forums and one of the keywords is “discord.py” (one of the python ways to send data into Discord) with lots of people discussing this topic. Discord-Audio-Pipe uses the discord.py interface to talk to Discord, so that’s how I found the information myself.
Hope this helps! Good luck.