WIP: Refactor Aurora (3.0.0) #29

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

View file

@ -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-indev18" __version__ = "3.0.0-indev19"
__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):
@ -1055,7 +1055,7 @@ class Aurora(commands.Cog):
moderation.end_timestamp = moderation.timestamp + timedelta(seconds=moderation.duration.total_seconds()) moderation.end_timestamp = moderation.timestamp + timedelta(seconds=moderation.duration.total_seconds())
try: try:
success = await moderation.type.duration_edit_handler(interaction=interaction.client, old_moderation=old_moderation, new_moderation=moderation) success = await moderation.type.duration_edit_handler(interaction=interaction, old_moderation=old_moderation, new_moderation=moderation)
except NotImplementedError: except NotImplementedError:
return await interaction.response.send_message( return await interaction.response.send_message(
error("This case type does not support duration editing!"), ephemeral=True error("This case type does not support duration editing!"), ephemeral=True