mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
@@ -1665,7 +1665,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
move_channel = False
|
||||
new_overs.update(send_messages=False, add_reactions=False, speak=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:
|
||||
@@ -1767,7 +1767,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
else:
|
||||
old_values = {"send_messages": None, "add_reactions": 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:
|
||||
move_channel = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user