Skip to content

Commit 53d85a7

Browse files
committed
embed color update
1 parent f58ea05 commit 53d85a7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

cogs/modmail.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async def on_raw_reaction_add(self, payload: discord.RawReactionActionEvent):
231231
await self._cancel_pending_confirmation(user)
232232
return
233233

234-
# : start session and flush queued messages
234+
# : start session and flush queued messages
235235
if not self.modmail_channel_id:
236236
self._pending_confirmations.pop(user_id, None)
237237
return
@@ -282,9 +282,9 @@ async def _start_new_session_and_flush_pending(
282282
embed=discord.Embed(
283283
title="ModMail Started",
284284
description=(
285-
"A modmail session is now open. Messages you send here will be forwarded to the moderators."
285+
"A modmail session is now open. Messages you send here will be forwarded to the moderators."
286286
),
287-
color=discord.Color.default(),
287+
color=discord.Color.from_str("#00ff00"),
288288
),
289289
)
290290

@@ -325,7 +325,7 @@ async def _start_new_session_and_flush_pending(
325325
await self._send_dm_safe(
326326
user,
327327
content=(
328-
"⚠️ Some attachments were too large to hold while waiting for confirmation. "
328+
"Some attachments were too large to hold while waiting for confirmation. "
329329
"If needed, please resend them now that the session is open."
330330
),
331331
)
@@ -572,7 +572,7 @@ async def handle_dm_message(self, message: discord.Message):
572572
except Exception as e:
573573
logger.exception(f"Error handling DM message from {message.author.id}")
574574
try:
575-
await message.channel.send(f"An internal error occurred: {str(e)}")
575+
await message.channel.send(f"An internal error occurred: {str(e)}")
576576
except:
577577
pass
578578

@@ -599,15 +599,15 @@ async def handle_thread_reply(self, message: discord.Message):
599599

600600
user = self.bot.get_user(session_user_id)
601601
if not user:
602-
await message.channel.send("⚠️ User cannot be found (might have left shared servers).")
602+
await message.channel.send("User cannot be found (might have left shared servers).")
603603
return
604604

605605
try:
606606
files = [await f.to_file() for f in message.attachments]
607607
embed = discord.Embed(
608608
title="A Moderator has Replied",
609609
description="> "+message.content,
610-
color=discord.Color.from_str("#00ff00")
610+
color=discord.Color.purple()
611611
)
612612
# embed.set_author(name=message.author.display_name, icon_url=message.author.display_avatar.url)
613613
await self._send_dm_safe(user, embed=embed, files=files)
@@ -617,7 +617,7 @@ async def handle_thread_reply(self, message: discord.Message):
617617
# Optional: React to confirm sent
618618
await message.add_reaction("✅")
619619
except Exception as e:
620-
await message.channel.send(f"Failed to send to user: {e}")
620+
await message.channel.send(f"Failed to send to user: {e}")
621621

622622
@commands.command(name="close", aliases=["mclose"])
623623
async def close_session(self, ctx):
@@ -644,7 +644,7 @@ async def close_session(self, ctx):
644644
await user.send(embed=discord.Embed(
645645
title="Session Closed",
646646
description="This modmail session has been closed by a moderator.",
647-
color=discord.Color.default()
647+
color=discord.Color.from_str("#ff0000")
648648
))
649649
except:
650650
pass

0 commit comments

Comments
 (0)