File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1433,11 +1433,14 @@ def system_content(self) -> str:
1433
1433
regardless of the :attr:`Message.type`.
1434
1434
1435
1435
In the case of :attr:`MessageType.default` and :attr:`MessageType.reply`\,
1436
- this just returns the regular :attr:`Message.content`. Otherwise, this
1436
+ this just returns the regular :attr:`Message.content`, and forwarded messages
1437
+ will display the original message's content from :attr:`Message.snapshots`. Otherwise, this
1437
1438
returns an English message denoting the contents of the system message.
1438
1439
"""
1439
1440
1440
1441
if self .type is MessageType .default :
1442
+ if self .snapshots :
1443
+ return self .snapshots [0 ].message and self .snapshots [0 ].message .content
1441
1444
return self .content
1442
1445
1443
1446
if self .type is MessageType .recipient_add :
You can’t perform that action at this time.
0 commit comments