diff --git a/discord/enums.py b/discord/enums.py index c2ccb037f..bf1a31150 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -181,6 +181,7 @@ class MessageType(Enum): guild_discovery_grace_period_final_warning = 17 reply = 19 application_command = 20 + guild_invite_reminder = 22 class VoiceRegion(Enum): us_west = 'us-west' diff --git a/discord/message.py b/discord/message.py index 90f4d6e95..d30eabe1d 100644 --- a/discord/message.py +++ b/discord/message.py @@ -940,6 +940,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.guild_invite_reminder: + return 'Wondering who to invite?\nStart by inviting anyone who can help you build the server!' + async def delete(self, *, delay=None): """|coro| diff --git a/docs/api.rst b/docs/api.rst index 8dc0159d2..6408947ff 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1069,6 +1069,11 @@ of :class:`enum.Enum`. The system message denoting that an application (or "slash") command was executed. + .. versionadded:: 2.0 + .. attribute:: guild_invite_reminder + + The system message sent as a reminder to invite people to the guild. + .. versionadded:: 2.0 .. class:: ActivityType