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)