From 551e7f57dd5db3a3a4499d86b2d4d7ab18d237a9 Mon Sep 17 00:00:00 2001 From: DeveloperAnonymous <40847862+DeveloperAnonymous@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:35:36 -0500 Subject: [PATCH] workaround last pylint error, made parsed_time keyword-only --- bot/botcommands/moderation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/botcommands/moderation.py b/bot/botcommands/moderation.py index 24785b9..18e7dbf 100644 --- a/bot/botcommands/moderation.py +++ b/bot/botcommands/moderation.py @@ -121,6 +121,7 @@ def __init__( target: discord.User | discord.Member, author: discord.Member, reason: str, + *, parsed_time: ParsedTime = None, ): self.strike = strike @@ -218,7 +219,9 @@ async def mute( except (discord.errors.HTTPException, discord.errors.Forbidden): util.logger.warning("Failed to notify mute") - mute_embed = await ModerationEmbedRequest(Strike.MUTE, member, ctx.author, reason, length).moderation_embed + mute_embed = await ModerationEmbedRequest( + Strike.MUTE, member, ctx.author, reason, parsed_time=length + ).moderation_embed await util.mute(member, reason) await util.say(configs.LOGS_CHANNEL, embed=mute_embed) await ctx.message.add_reaction("\u2705")