fix(moderation): pylint fixes

This commit is contained in:
Seaswimmer 2023-12-18 19:02:37 -05:00
parent faebd2629c
commit 390d786094
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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)