fix(aurora): fixed addrole and removerole again
This commit is contained in:
parent
6aaef7d3b2
commit
871cabfb71
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."""
|
This cog stores all of its data in an SQLite database."""
|
||||||
|
|
||||||
__author__ = ["Seaswimmer"]
|
__author__ = ["Seaswimmer"]
|
||||||
__version__ = "3.0.0-indev7"
|
__version__ = "3.0.0-indev8"
|
||||||
__documentation__ = "https://seacogs.coastalcommits.com/aurora/"
|
__documentation__ = "https://seacogs.coastalcommits.com/aurora/"
|
||||||
|
|
||||||
async def red_delete_data_for_user(self, *, requester, user_id: int):
|
async def red_delete_data_for_user(self, *, requester, user_id: int):
|
||||||
|
|
|
@ -213,7 +213,7 @@ class AddRole(Type):
|
||||||
|
|
||||||
await target.add_roles(
|
await target.add_roles(
|
||||||
role,
|
role,
|
||||||
reason=f"Role added by {ctx.author.id}{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time != 'NULL' else ''} for: {reason}",
|
reason=f"Role added by {ctx.author.id}{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time else ''} for: {reason}",
|
||||||
)
|
)
|
||||||
|
|
||||||
moderation = await Moderation.log(
|
moderation = await Moderation.log(
|
||||||
|
@ -401,7 +401,7 @@ class RemoveRole(Type):
|
||||||
reason=reason,
|
reason=reason,
|
||||||
)
|
)
|
||||||
await response.edit(
|
await response.edit(
|
||||||
content=f"{target.mention} has {cls.embed_desc}{role.mention} role removed{' 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 removed{' 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 log(ctx=ctx, moderation_id=moderation.id)
|
||||||
await send_evidenceformat(ctx=ctx, moderation_id=moderation.id)
|
await send_evidenceformat(ctx=ctx, moderation_id=moderation.id)
|
||||||
|
|
Loading…
Reference in a new issue