fix(moderation): pylint fixes
This commit is contained in:
parent
faebd2629c
commit
390d786094
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue