discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
327 stars 111 forks source link

Self Mute has some issues #135

Closed iim-ayush closed 3 years ago

iim-ayush commented 3 years ago

Please describe the problem you are having in as much detail as possible: While the bot is selfMute, we can still here the song

Include a reproducible code sample here, if possible:

const connection = joinVoiceChannel({
        channelId: channel.id,
        guildId: channel.guild.id,
        selfDeaf: false,
        selfMute: true,
        adapterCreator: channel.guild.voiceAdapterCreator,
    });

Further details: Self Mute is on but people on server can listen to song. Either this is a feature or a bug.

kyranet commented 3 years ago

This is working as expected - selfMute and selfDeaf are client-side only, they're not enforced by Discord's server, in fact, your bot receives voice packets even if selfDeaf is true.

iim-ayush commented 3 years ago

Sorry, I clicked wrong button.