Skip to content

Commit 934f958

Browse files
authored
Add files via upload
Signed-off-by: lorenzo132 <[email protected]>
1 parent 8fb8274 commit 934f958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/thread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ async def snooze(self, moderator=None, command_used=None):
155155
"attachments": [a.url for a in m.attachments],
156156
"embeds": [e.to_dict() for e in m.embeds],
157157
"created_at": m.created_at.isoformat(),
158-
# Only use 'mod_only' if this is a note (note command)
158+
# Only use 'mod_only' if this is an internal note (note command)
159159
"type": (
160160
"mod_only"
161161
if m.embeds and hasattr(m.embeds[0], 'author') and (
162162
getattr(m.embeds[0].author, 'name', '').startswith('Note') or
163163
getattr(m.embeds[0].author, 'name', '').startswith('Persistent Note')
164164
)
165-
else (getattr(m, "type", None) if getattr(m, "type", None) != "mod_only" else None)
165+
else None
166166
),
167167
"author_name": getattr(m.author, "name", None),
168168
}

0 commit comments

Comments
 (0)