mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-17 03:09:05 +00:00
Add MessageType.guild_invite_reminder
This commit is contained in:
parent
631a0b1e13
commit
95777230b0
@ -181,6 +181,7 @@ class MessageType(Enum):
|
|||||||
guild_discovery_grace_period_final_warning = 17
|
guild_discovery_grace_period_final_warning = 17
|
||||||
reply = 19
|
reply = 19
|
||||||
application_command = 20
|
application_command = 20
|
||||||
|
guild_invite_reminder = 22
|
||||||
|
|
||||||
class VoiceRegion(Enum):
|
class VoiceRegion(Enum):
|
||||||
us_west = 'us-west'
|
us_west = 'us-west'
|
||||||
|
@ -940,6 +940,9 @@ class Message(Hashable):
|
|||||||
if self.type is MessageType.guild_discovery_grace_period_final_warning:
|
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.'
|
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):
|
async def delete(self, *, delay=None):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
|
@ -1069,6 +1069,11 @@ of :class:`enum.Enum`.
|
|||||||
|
|
||||||
The system message denoting that an application (or "slash") command was executed.
|
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
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
.. class:: ActivityType
|
.. class:: ActivityType
|
||||||
|
Loading…
x
Reference in New Issue
Block a user