WIP: Refactor Aurora (3.0.0) #29
2 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ class Aurora(commands.Cog):
|
|||
This cog stores all of its data in an SQLite database."""
|
||||
|
||||
__author__ = ["Seaswimmer"]
|
||||
__version__ = "3.0.0-indev8"
|
||||
__version__ = "3.0.0-indev9"
|
||||
__documentation__ = "https://seacogs.coastalcommits.com/aurora/"
|
||||
|
||||
async def red_delete_data_for_user(self, *, requester, user_id: int):
|
||||
|
|
|
@ -228,7 +228,7 @@ class AddRole(Type):
|
|||
reason=reason,
|
||||
)
|
||||
await response.edit(
|
||||
content=f"{target.mention} has {cls.embed_desc}{role.mention} role{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time != 'NULL' else ''}! (Case `#{moderation.id:,}`)\n**Reason** - `{reason}`",
|
||||
content=f"{target.mention} has {cls.embed_desc}{role.mention} role{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time else ''}! (Case `#{moderation.id:,}`)\n**Reason** - `{reason}`",
|
||||
)
|
||||
await log(ctx=ctx, moderation_id=moderation.id)
|
||||
await send_evidenceformat(ctx=ctx, moderation_id=moderation.id)
|
||||
|
@ -386,7 +386,7 @@ class RemoveRole(Type):
|
|||
|
||||
await target.remove_roles(
|
||||
role,
|
||||
reason=f"Role removed by {ctx.author.id}{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time != 'NULL' else ''} for: {reason}",
|
||||
reason=f"Role removed by {ctx.author.id}{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time else ''} for: {reason}",
|
||||
)
|
||||
|
||||
moderation = await Moderation.log(
|
||||
|
|
Loading…
Reference in a new issue