mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix unintended moving *between* VCs when channel muting (#5854)
This commit is contained in:
parent
f02528378f
commit
1241ea165c
@ -1711,7 +1711,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
|
||||
move_channel = False
|
||||
send_reason = None
|
||||
if user.voice and user.voice.channel:
|
||||
if user.voice and user.voice.channel == channel:
|
||||
if channel.permissions_for(guild.me).move_members:
|
||||
move_channel = True
|
||||
else:
|
||||
@ -1846,7 +1846,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
"speak": None,
|
||||
}
|
||||
|
||||
if user.voice and user.voice.channel:
|
||||
if user.voice and user.voice.channel == channel:
|
||||
if channel.permissions_for(guild.me).move_members:
|
||||
move_channel = True
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user