From 7a9692b50c73966089cea6e3203a0f24cc399a4a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 24 Oct 2023 00:41:29 -0400 Subject: [PATCH] fix(moderation): pylint fixes --- moderation/moderation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index ed593ff..092ad3a 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -329,7 +329,6 @@ class Moderation(commands.Cog): 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']}" 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: target_user = await self.fetch_user_dict(interaction, case_dict['target_id']) moderator_user = await self.fetch_user_dict(interaction, case_dict['moderator_id']) @@ -341,7 +340,7 @@ class Moderation(commands.Cog): td = timedelta(**{unit: int(val) for unit, val in zip(["hours", "minutes", "seconds"], case_dict["duration"].split(":"))}) embed.description = embed.description + f"\n**Duration:** {humanize.precisedelta(td)} | " embed.add_field(name='Reason', value=f"```{case_dict['reason']}```", inline=False) - return embed + return embed raise(TypeError("'type' argument is invalid!")) @@ -902,7 +901,7 @@ class Moderation(commands.Cog): await ctx.send(f"Logging channel set to {channel.mention}.") else: 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") @checks.is_owner()