From 826d76253ddf4a05635b5432d2ef7d85931aac17 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 8 Jan 2024 06:18:02 +0000 Subject: [PATCH] fix(aurora): use guild color instead of bot color for handle_expiry --- aurora/aurora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index d590823..6cb38bb 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -965,7 +965,7 @@ class Aurora(commands.Cog): try: await guild.unban(user, reason=f"Automatic unban from case #{moderation_id}") - embed = await embed_factory('message', await self.bot.get_embed_color(None), guild=guild, reason=f'Automatic unban from case #{moderation_id}', moderation_type='unbanned') + embed = await embed_factory('message', await self.bot.get_embed_color(guild.channels[0]), guild=guild, reason=f'Automatic unban from case #{moderation_id}', moderation_type='unbanned') try: await user.send(embed=embed)