From a9af61076e488f8b9e97b7c0dd0fcc0dd888d96a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 1 Jan 2024 12:22:14 -0500 Subject: [PATCH] fix(aurora): fixed some more errors --- aurora/aurora.py | 4 ++-- aurora/utilities/embed_factory.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 0638b23..93cc1cf 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -968,7 +968,7 @@ class Aurora(commands.Cog): try: await guild.unban(user, reason=f"Automatic unban from case #{moderation_id}") - embed = await embed_factory('message', self.bot.get_embed_color(None), guild, f'Automatic unban from case #{moderation_id}', 'unbanned') + embed = await embed_factory('message', self.bot.get_embed_color(None), guild=guild, reason=f'Automatic unban from case #{moderation_id}', moderation_type='unbanned') try: await user.send(embed=embed) @@ -997,7 +997,7 @@ class Aurora(commands.Cog): role: discord.Role = guild.get_role(role_id) if role is None: raise discord.errors.NotFound - except [discord.errors.NotFound, discord.errors.Forbidden, discord.errors.HTTPException]: + except (discord.errors.NotFound, discord.errors.Forbidden, discord.errors.HTTPException): continue per_guild_completion_time = (time.time() - time_per_guild) * 1000 diff --git a/aurora/utilities/embed_factory.py b/aurora/utilities/embed_factory.py index 726d1ee..2c97274 100644 --- a/aurora/utilities/embed_factory.py +++ b/aurora/utilities/embed_factory.py @@ -23,7 +23,6 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact - guild - reason - moderation_type - - response - moderator (optional) - duration (optional)