Skip to content

Commit

Permalink
workaround last pylint error, made parsed_time keyword-only
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperAnonymous committed Dec 10, 2024
1 parent d344bc9 commit 551e7f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bot/botcommands/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def __init__(
target: discord.User | discord.Member,
author: discord.Member,
reason: str,
*,
parsed_time: ParsedTime = None,
):
self.strike = strike
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 551e7f5

Please sign in to comment.