Return message content for replies in Message.system_content
This commit is contained in:
parent
81e9d70b7b
commit
fb0c6c56e1
@ -975,9 +975,9 @@ class Message(Hashable):
|
||||
r""":class:`str`: A property that returns the content that is rendered
|
||||
regardless of the :attr:`Message.type`.
|
||||
|
||||
In the case of :attr:`MessageType.default`\, this just returns the
|
||||
regular :attr:`Message.content`. Otherwise this returns an English
|
||||
message denoting the contents of the system message.
|
||||
In the case of :attr:`MessageType.default` and :attr:`MessageType.reply`\,
|
||||
this just returns the regular :attr:`Message.content`. Otherwise this
|
||||
returns an English message denoting the contents of the system message.
|
||||
"""
|
||||
|
||||
if self.type is MessageType.default:
|
||||
@ -1048,6 +1048,9 @@ class Message(Hashable):
|
||||
if self.type is MessageType.guild_discovery_grace_period_final_warning:
|
||||
return 'This server has failed Discovery activity requirements for 3 weeks in a row. If this server fails for 1 more week, it will be removed from Discovery.'
|
||||
|
||||
if self.type is MessageType.reply:
|
||||
return self.content
|
||||
|
||||
if self.type is MessageType.guild_invite_reminder:
|
||||
return 'Wondering who to invite?\nStart by inviting anyone who can help you build the server!'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user