Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Self-Deafening doesn't prevent bots from receiving audio, and doesn't reduce bandwidth #1554

Open
jagrosh opened this issue Apr 23, 2024 · 0 comments

Comments

@jagrosh
Copy link
Owner

jagrosh commented Apr 23, 2024

Contrary to popular belief, deafening/self-deafening (the gray deafened icon) does NOT prevent a bot from receiving audio, and does not reduce network bandwidth. Only server-deafening (the red deafened icon) actually prevents a bot from listening to you.

You may have seen that Discord Support claims otherwise:

Hi, please, I'd like some "official" or direct statement, that this musicbot server deafening itself does actually have any effect on the bandwidth it uses

Hello,

thank you for your patience.

To answer your question: Yes, it has an impact and helps us save bandwidth in voice channels.

Unfortunately, we cannot provide you with any more information. But please let us know if you have any further questions about the app! :)

However, Discord Support's answer doesn't help us. The original question was in regards to 'server deafening' (red deafen), which many people might mistake with 'self deafening' (gray deafen). Monitoring network traffic reveals that audio is still being received while deafened, and in theory could be recorded. See this test performed by @MichailiK:

discord.deafen.as.a.bot.mp4

Notice how Network: rx: (received data) continues to fluctuate (as expected when receiving audio) until the bot is server-deafened. When the deafened icon is gray, the bot is still receiving audio packets. When it is red, it has actually stopped receiving audio, as the Network: rx: drops to zero.

Because of this issue, we have reverted a recent change to JMusicBot self-deafening, as it doesn't achieve the bandwidth-reduction that we had originally hoped. We hope that this issue will be resolved on Discord's end at some point. If we do make other deafen-related settings in the future, we will need to make sure that it is clear that as of right now, self-deafening (gray deafen) is purely cosmetic and doesn't change any functionality of the bot.


TLDR:

Self-Deafen (Gray Deafen) means a bot can still hear you and uses additional bandwidth

Server-Deafen (Red Deafen) actually prevents a bot from receiving audio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant