File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -661,9 +661,18 @@ async def append_log(
661661 channel_id : str = "" ,
662662 type_ : str = "thread_message" ,
663663 ) -> dict :
664+ from core .utils import extract_forwarded_content
665+
664666 channel_id = str (channel_id ) or str (message .channel .id )
665667 message_id = str (message_id ) or str (message .id )
666668
669+ content = message .content or ""
670+ if forwarded := extract_forwarded_content (message ):
671+ if content :
672+ content += "\n " + forwarded
673+ else :
674+ content = forwarded
675+
667676 data = {
668677 "timestamp" : str (message .created_at ),
669678 "message_id" : message_id ,
@@ -674,7 +683,7 @@ async def append_log(
674683 "avatar_url" : message .author .display_avatar .url if message .author .display_avatar else None ,
675684 "mod" : not isinstance (message .channel , DMChannel ),
676685 },
677- "content" : message . content ,
686+ "content" : content ,
678687 "type" : type_ ,
679688 "attachments" : [
680689 {
You can’t perform that action at this time.
0 commit comments