Skip to content

Commit fb09ac1

Browse files
committed
Fix editing messages with a custom color
1 parent cc653d6 commit fb09ac1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cogs/modmail.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ async def logs(self, ctx, *, member: Union[discord.Member, discord.User, obj]=No
365365

366366
session = PaginatorSession(ctx, *embeds)
367367
await session.run()
368-
368+
369369
@commands.command()
370370
@trigger_typing
371371
async def reply(self, ctx, *, msg=''):
@@ -406,7 +406,8 @@ async def edit(self, ctx, message_id: Optional[int]=None, *, new_message):
406406
async for msg in ctx.channel.history():
407407
if message_id is None and msg.embeds:
408408
em = msg.embeds[0]
409-
if em.color != discord.Color.green() or not em.author.url:
409+
mod_color = self.bot.mod_color.value if isinstance(self.bot.mod_color, discord.Color) else self.bot.mod_color
410+
if em.color.value != mod_color or not em.author.url:
410411
continue
411412
linked_message_id = str(em.author.url).split('/')[-1]
412413
break

0 commit comments

Comments
 (0)