fix(aurora): ACTUALLY final pylint fixes
This commit is contained in:
parent
ea12d362df
commit
c4c5b323a3
1 changed files with 9 additions and 9 deletions
|
@ -808,7 +808,7 @@ class Tempban(Ban):
|
|||
except ValueError:
|
||||
await ctx.send(content=error("Please provide a valid duration!"), ephemeral=True)
|
||||
|
||||
response_message = await ctx.send(content=f"{target.mention} has been {cls.verb} for {humanize_timedelta(parsed_time)}!\n{bold('Reason:')} {inline(reason)}")
|
||||
response_message = await ctx.send(content=f"{target.mention} has been {cls.verb} for {humanize_timedelta(parsed_time)}!\n{bold(text='Reason:')} {inline(text=reason)}")
|
||||
|
||||
if silent is False:
|
||||
try:
|
||||
|
@ -838,7 +838,7 @@ class Tempban(Ban):
|
|||
duration=parsed_time,
|
||||
reason=reason
|
||||
)
|
||||
await response_message.edit(content=f"{target.mention} has been {cls.verb} for {humanize_timedelta(parsed_time)}! (Case {inline(f'#{moderation.id}')})\n{bold('Reason:')} {inline(reason)}")
|
||||
await response_message.edit(content=f"{target.mention} has been {cls.verb} for {humanize_timedelta(parsed_time)}! (Case {inline(text=f'#{moderation.id}')})\n{bold(text='Reason:')} {inline(reason)}")
|
||||
await log(ctx, moderation.id)
|
||||
await send_evidenceformat(ctx, moderation.id)
|
||||
return cls
|
||||
|
@ -1030,16 +1030,16 @@ class Slowmode(Type):
|
|||
async def handler(cls, ctx: commands.Context, target: Messageable, silent: bool, duration: str, reason: str) -> 'Slowmode': # pylint: disable=unused-argument
|
||||
"""Set the slowmode in a channel."""
|
||||
bot = ctx.bot
|
||||
parsed_time = parse_relativedelta(duration)
|
||||
parsed_time = parse_relativedelta(argument=duration)
|
||||
if not parsed_time:
|
||||
await ctx.send(content=error("Please provide a valid duration!"), ephemeral=True)
|
||||
await ctx.send(content=error(text="Please provide a valid duration!"), ephemeral=True)
|
||||
try:
|
||||
parsed_time = timedelta_from_relativedelta(parsed_time)
|
||||
parsed_time = timedelta_from_relativedelta(relativedelta=parsed_time)
|
||||
except ValueError:
|
||||
await ctx.send(content=error("Please provide a valid duration!"), ephemeral=True)
|
||||
await ctx.send(content=error(text="Please provide a valid duration!"), ephemeral=True)
|
||||
|
||||
if ceil(parsed_time.total_seconds()) > 21600:
|
||||
await ctx.send(content=error("The slowmode duration cannot exceed 6 hours!"), ephemeral=True)
|
||||
await ctx.send(content=error(text="The slowmode duration cannot exceed 6 hours!"), ephemeral=True)
|
||||
return
|
||||
|
||||
if isinstance(target, TextChannel):
|
||||
|
@ -1055,8 +1055,8 @@ class Slowmode(Type):
|
|||
duration=parsed_time,
|
||||
reason=None
|
||||
)
|
||||
await ctx.send(content=f"{ctx.author.mention} has {cls.verb} {target.mention} to {humanize_timedelta(parsed_time)}!\n{bold('Reason:')} {inline(reason)}")
|
||||
await log(ctx, moderation.id)
|
||||
await ctx.send(content=f"{ctx.author.mention} has {cls.verb} {target.mention} to {humanize_timedelta(parsed_time)}!\n{bold(text='Reason:')} {inline(text=reason)}")
|
||||
await log(ctx=ctx, moderation_id=moderation.id)
|
||||
return cls
|
||||
|
||||
class Lockdown(Type):
|
||||
|
|
Loading…
Reference in a new issue