fix(moderation): pylint fixes
This commit is contained in:
parent
1d666a569c
commit
7a9692b50c
1 changed files with 2 additions and 3 deletions
|
@ -329,7 +329,6 @@ class Moderation(commands.Cog):
|
||||||
resolved_user = await self.fetch_user_dict(interaction, case_dict['resolved_by'])
|
resolved_user = await self.fetch_user_dict(interaction, case_dict['resolved_by'])
|
||||||
resolved_name = resolved_user['name'] if resolved_user['discriminator'] == "0" else f"{resolved_user['name']}#{resolved_user['discriminator']}"
|
resolved_name = resolved_user['name'] if resolved_user['discriminator'] == "0" else f"{resolved_user['name']}#{resolved_user['discriminator']}"
|
||||||
embed.add_field(name='Resolve Reason', value=f"Resolved by {resolved_name} ({resolved_user['id']}) for:\n```{case_dict['resolve_reason']}```", inline=False)
|
embed.add_field(name='Resolve Reason', value=f"Resolved by {resolved_name} ({resolved_user['id']}) for:\n```{case_dict['resolve_reason']}```", inline=False)
|
||||||
return embed
|
|
||||||
else:
|
else:
|
||||||
target_user = await self.fetch_user_dict(interaction, case_dict['target_id'])
|
target_user = await self.fetch_user_dict(interaction, case_dict['target_id'])
|
||||||
moderator_user = await self.fetch_user_dict(interaction, case_dict['moderator_id'])
|
moderator_user = await self.fetch_user_dict(interaction, case_dict['moderator_id'])
|
||||||
|
@ -902,7 +901,7 @@ class Moderation(commands.Cog):
|
||||||
await ctx.send(f"Logging channel set to {channel.mention}.")
|
await ctx.send(f"Logging channel set to {channel.mention}.")
|
||||||
else:
|
else:
|
||||||
await self.config.guild(ctx.guild).log_channel.set(" ")
|
await self.config.guild(ctx.guild).log_channel.set(" ")
|
||||||
await ctx.send(f"Logging channel disabled.")
|
await ctx.send("Logging channel disabled.")
|
||||||
|
|
||||||
@moderationset.command(name="mysql")
|
@moderationset.command(name="mysql")
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
|
|
Loading…
Reference in a new issue