1
0
Fork 1
forked from cswimr/SeaCogs

fix(aurora): use guild color instead of bot color for handle_expiry

This commit is contained in:
Seaswimmer 2024-01-08 06:18:02 +00:00
parent 6d8b99cf76
commit 826d76253d
Signed by untrusted user: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -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)