Add MessageType.guild_invite_reminder

This commit is contained in:
Nadir Chowdhury 2021-04-19 01:33:56 +01:00 committed by GitHub
parent 631a0b1e13
commit 95777230b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -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'

View File

@ -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|

View File

@ -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