Skip to content

Commit ae7abcb

Browse files
committed
format
1 parent 8bd5788 commit ae7abcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cogs/modmail.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,10 @@ async def edit(self, ctx, message_id: Optional[int] = None,
457457
async for msg in ctx.channel.history():
458458
if message_id is None and msg.embeds:
459459
em = msg.embeds[0]
460-
mod_color = self.bot.mod_color.value if isinstance(self.bot.mod_color, discord.Color) else self.bot.mod_color
460+
if isinstance(self.bot.mod_color, discord.Color):
461+
mod_color = self.bot.mod_color.value
462+
else:
463+
mod_color = self.bot.mod_color
461464
if em.color.value != mod_color or not em.author.url:
462465
continue
463466
linked_message_id = str(em.author.url).split('/')[-1]

0 commit comments

Comments
 (0)