Skip to content

Commit 0223250

Browse files
committed
fix: bug in note title/color
1 parent d4fe7ff commit 0223250

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

core/thread.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ async def send(
11271127
thread_creation: bool = False,
11281128
) -> None:
11291129
# Handle notes with Discord-like system message format - return early
1130-
if note and from_mod:
1130+
if note:
11311131
destination = destination or self.channel
11321132
content = message.content or "[No content]"
11331133

@@ -1137,16 +1137,24 @@ async def send(
11371137
)
11381138

11391139
# Set author with note icon and username
1140+
if persistent_note:
1141+
note_type = "Persistent Note"
1142+
else:
1143+
note_type = "Note"
1144+
11401145
embed.set_author(
1141-
name=f"📝 Note ({message.author.name})", icon_url=message.author.display_avatar.url
1146+
name=f"📝 {note_type} ({message.author.name})", icon_url=message.author.display_avatar.url
11421147
)
11431148

11441149
# Add timestamp if enabled
11451150
if self.bot.config["show_timestamp"]:
11461151
embed.timestamp = message.created_at
11471152

11481153
# Add a subtle footer to distinguish from replies
1149-
embed.set_footer(text="Internal Note")
1154+
if persistent_note:
1155+
embed.set_footer(text="Persistent Internal Note")
1156+
else:
1157+
embed.set_footer(text="Internal Note")
11501158

11511159
return await destination.send(embed=embed)
11521160

@@ -1409,9 +1417,9 @@ def lottie_to_png(data):
14091417
# Notes use Discord blurple and special footer
14101418
embed.colour = 0x5865F2
14111419
if persistent_note:
1412-
embed.set_footer(text="Persistent Internal Message")
1420+
embed.set_footer(text="Persistent Internal Note")
14131421
else:
1414-
embed.set_footer(text="Internal Message")
1422+
embed.set_footer(text="Internal Note")
14151423
else:
14161424
# Regular mod messages
14171425
embed.colour = self.bot.mod_color

0 commit comments

Comments
 (0)