Skip to content

Commit 8d6a21e

Browse files
authored
critical issue fixxed
1 parent 92b6a65 commit 8d6a21e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/guild/voiceStateUpdate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = async (client, oS, nS) => {
4545
/**
4646
* ALWAYS SERVER DEAF THE BOT WHEN JOING
4747
*/
48-
if (nS.channelId != oS.channelId && !nS.guild.me.voice.deaf) {
48+
if (nS.id === client.user.id && nS.channelId != oS.channelId && !nS.guild.me.voice.deaf) {
4949
if (nS.guild.me.permissions.has(Permissions.FLAGS.DEAFEN_MEMBERS) || (nS.channel && nS.channel.permissionsFor(nS.guild.me).has(Permissions.FLAGS.DEAFEN_MEMBERS))) {
5050
nS.setDeaf(true).catch(() => {});
5151
}

0 commit comments

Comments
 (0)