WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit ea12d362df - Show all commits

View file

@ -808,7 +808,7 @@ class Tempban(Ban):
except ValueError: except ValueError:
await ctx.send(content=error("Please provide a valid duration!"), ephemeral=True) await ctx.send(content=error("Please provide a valid duration!"), ephemeral=True)
response_message = await ctx.send(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('Reason:')} {inline(reason)}")
if silent is False: if silent is False:
try: try:
@ -1055,7 +1055,7 @@ class Slowmode(Type):
duration=parsed_time, duration=parsed_time,
reason=None reason=None
) )
await ctx.send(f"{ctx.author.mention} has {cls.verb} {target.mention} to {humanize_timedelta(parsed_time)}!\n{bold('Reason:')} {inline(reason)}") 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 log(ctx, moderation.id)
return cls return cls