From fb2e99bbcd1c9e61185146ab93be92c60285e11e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 6 Oct 2023 10:46:06 -0400 Subject: [PATCH] fix(moderation): fixed resolve not unmuting/unbanning people --- moderation/moderation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index ddcc887..a8f6e36 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -469,14 +469,14 @@ class Moderation(commands.Cog): case = self.generate_dict(result_2) if reason is None: reason = "No reason given." - if case['moderation_type'] in ['mute', 'tempban']: - if case['moderation_type'] == 'mute': + if case['moderation_type'] in ['MUTE', 'TEMPBAN']: + if case['moderation_type'] == 'MUTE': try: member = await interaction.guild.fetch_member(case['target_id']) await member.timeout(None, reason=f"Case #{case_number} resolved by {interaction.user.id}") except discord.NotFound: pass - if case['moderation_type'] == 'tempban': + if case['moderation_type'] == 'TEMPBAN': try: user = await interaction.client.fetch_user(case['target_id']) await interaction.guild.unban(user, reason=f"Case #{case_number} resolved by {interaction.user.id}")