From 390d786094ef731cf9e0f1e117fb3714a3d7d8c8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 19:02:37 -0500 Subject: [PATCH] fix(moderation): pylint fixes --- moderation/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 6b702b2..79c3113 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -152,7 +152,7 @@ class Moderation(commands.Cog): else: return - await mysql_log(entry.guild.id, entry.user.id, moderation_type, entry.target.id, 0, duration, reason) + await mysql_log(entry.guild.id, entry.user.id, moderation_type, 'USER', entry.target.id, 0, duration, reason) ####################################################################################################################### ### COMMANDS @@ -471,7 +471,7 @@ class Moderation(commands.Cog): await interaction.guild.ban(target, reason=f"Tempbanned by {interaction.user.id} for: {reason} (Duration: {parsed_time})", delete_message_seconds=delete_messages) - moderation_id = await mysql_log(interaction.guild.id, interaction.user.id, 'TEMPBAN', target.id, 0, parsed_time, reason) + moderation_id = await mysql_log(interaction.guild.id, interaction.user.id, 'TEMPBAN', 'USER', target.id, 0, parsed_time, reason) await interaction.edit_original_response(content=f"{target.mention} has been banned for {humanize.precisedelta(parsed_time)}! (Case `#{moderation_id}`)\n**Reason** - `{reason}`") await log(interaction, moderation_id)