mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix unmute type for manually removed channel overwrites (#4540)
This commit is contained in:
parent
b6e96548d0
commit
0b0ace10dd
@ -545,11 +545,15 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
log.debug(f"{user} - {type(user)}")
|
||||
to_del.append(user_id)
|
||||
log.debug("creating case")
|
||||
if isinstance(after, discord.VoiceChannel):
|
||||
unmute_type = "vunmute"
|
||||
else:
|
||||
unmute_type = "cunmute"
|
||||
await modlog.create_case(
|
||||
self.bot,
|
||||
after.guild,
|
||||
datetime.now(timezone.utc),
|
||||
"cunmute",
|
||||
unmute_type,
|
||||
user,
|
||||
None,
|
||||
_("Manually removed channel overwrites"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user