We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92b6a65 commit 8d6a21eCopy full SHA for 8d6a21e
events/guild/voiceStateUpdate.js
@@ -45,7 +45,7 @@ module.exports = async (client, oS, nS) => {
45
/**
46
* ALWAYS SERVER DEAF THE BOT WHEN JOING
47
*/
48
- if (nS.channelId != oS.channelId && !nS.guild.me.voice.deaf) {
+ if (nS.id === client.user.id && nS.channelId != oS.channelId && !nS.guild.me.voice.deaf) {
49
if (nS.guild.me.permissions.has(Permissions.FLAGS.DEAFEN_MEMBERS) || (nS.channel && nS.channel.permissionsFor(nS.guild.me).has(Permissions.FLAGS.DEAFEN_MEMBERS))) {
50
nS.setDeaf(true).catch(() => {});
51
}
0 commit comments