WIP: Refactor Aurora (3.0.0) #29
2 changed files with 5 additions and 5 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-indev6"
|
||||
__version__ = "3.0.0-indev7"
|
||||
__documentation__ = "https://seacogs.coastalcommits.com/aurora/"
|
||||
|
||||
async def red_delete_data_for_user(self, *, requester, user_id: int):
|
||||
|
|
|
@ -158,7 +158,7 @@ class AddRole(Type):
|
|||
return None
|
||||
|
||||
@classmethod
|
||||
async def handler(cls, ctx: commands.Context, target: Member, role: Role, silent: bool, duration: str = None, reason: str = None):
|
||||
async def handler(cls, ctx: commands.Context, target: Member, role: Role, silent: bool, duration: str | None = None, reason: str | None = None):
|
||||
addrole_whitelist = await config.guild(ctx.guild).addrole_whitelist()
|
||||
|
||||
if not addrole_whitelist:
|
||||
|
@ -192,7 +192,7 @@ class AddRole(Type):
|
|||
return
|
||||
|
||||
response = await ctx.send(
|
||||
content=f"{target.mention} has {cls.embed_desc}{role.mention} role{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time != 'NULL' else ''}!\n**Reason** - `{reason}`"
|
||||
content=f"{target.mention} has {cls.embed_desc}{role.mention} role{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time else ''}!\n**Reason** - `{reason}`"
|
||||
)
|
||||
|
||||
if silent is False:
|
||||
|
@ -331,7 +331,7 @@ class RemoveRole(Type):
|
|||
return None
|
||||
|
||||
@classmethod
|
||||
async def handler(cls, ctx: commands.Context, target: Member, role: Role, silent: bool, duration: str | None = None, reason: str = None):
|
||||
async def handler(cls, ctx: commands.Context, target: Member, role: Role, silent: bool, duration: str | None = None, reason: str | None = None):
|
||||
addrole_whitelist = await config.guild(ctx.guild).addrole_whitelist()
|
||||
|
||||
if not addrole_whitelist:
|
||||
|
@ -365,7 +365,7 @@ class RemoveRole(Type):
|
|||
return
|
||||
|
||||
response = await ctx.send(
|
||||
content=f"{target.mention} has {cls.embed_desc}{role.mention} role removed{' for ' + humanize_timedelta(timedelta=parsed_time) if parsed_time != 'NULL' else ''}!\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 ''}!\n**Reason** - `{reason}`"
|
||||
)
|
||||
|
||||
if silent is False:
|
||||
|
|
Loading…
Reference in a new issue