mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -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
|
move_channel = False
|
||||||
new_overs.update(send_messages=False, add_reactions=False, speak=False)
|
new_overs.update(send_messages=False, add_reactions=False, speak=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:
|
||||||
@@ -1767,7 +1767,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
|||||||
else:
|
else:
|
||||||
old_values = {"send_messages": None, "add_reactions": None, "speak": None}
|
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:
|
if channel.permissions_for(guild.me).move_members:
|
||||||
move_channel = True
|
move_channel = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user