Browse Source
Add `MessageType.guild_invite_reminder`
pull/6755/head
Nadir Chowdhury
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
9 additions and
0 deletions
discord/enums.py
discord/message.py
docs/api.rst
@ -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 '
@ -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? \n Start by inviting anyone who can help you build the server! '
async def delete ( self , * , delay = None ) :
""" |coro|
@ -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