aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-02-23 08:57:11 +0000
committerGitHub <[email protected]>2021-02-23 03:57:11 -0500
commit6f748e5da59e5c98504c14d52fcc00a8cce7041a (patch)
tree5db6641c5eac038735746b36165824d97add5027 /discord/message.py
parentAdd converter example (diff)
downloaddiscord.py-6f748e5da59e5c98504c14d52fcc00a8cce7041a.tar.xz
discord.py-6f748e5da59e5c98504c14d52fcc00a8cce7041a.zip
Add remaining v6 message types
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/discord/message.py b/discord/message.py
index 535a401f..d9f9bccb 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -923,6 +923,21 @@ class Message(Hashable):
if self.type is MessageType.channel_follow_add:
return '{0.author.name} has added {0.content} to this channel'.format(self)
+
+ if self.type is MessageType.guild_stream:
+ return '{0.author.name} is live! Now streaming {0.author.activity.name}'.format(self)
+
+ if self.type is MessageType.guild_discovery_disqualified:
+ return 'This server has been removed from Server Discovery because it no longer passes all the requirements. Check Server Settings for more details.'
+
+ if self.type is MessageType.guild_discovery_requalified:
+ return 'This server is eligible for Server Discovery again and has been automatically relisted!'
+
+ if self.type is MessageType.guild_discovery_grace_period_initial_warning:
+ return 'This server has failed Discovery activity requirements for 1 week. If this server fails for 4 weeks in a row, it will be automatically removed from Discovery.'
+
+ if self.type is MessageType.guild_discovery_grave_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.'
async def delete(self, *, delay=None):
"""|coro|