mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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
|
move_channel = False
|
||||||
send_reason = None
|
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:
|
if channel.permissions_for(guild.me).move_members:
|
||||||
move_channel = True
|
move_channel = True
|
||||||
else:
|
else:
|
||||||
@ -1846,7 +1846,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
|||||||
"speak": None,
|
"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:
|
if channel.permissions_for(guild.me).move_members:
|
||||||
move_channel = True
|
move_channel = True
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user