Add CHANNEL_FOLLOW_ADD Message Type

Add documentation for MessageType.channel_follow_add

Add versionchanged to new MessageType attr

Add system_content for new MessageType
This commit is contained in:
Dice
2019-08-16 22:10:49 -04:00
committed by Rapptz
parent 125a5676b8
commit da4bb0610c
3 changed files with 10 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ class MessageType(Enum):
premium_guild_tier_1 = 9
premium_guild_tier_2 = 10
premium_guild_tier_3 = 11
channel_follow_add = 12
class VoiceRegion(Enum):
us_west = 'us-west'

View File

@@ -669,6 +669,9 @@ class Message:
if self.type is MessageType.premium_guild_tier_3:
return '{0.author.name} just boosted the server! {0.guild} has achieved **Level 3!**'.format(self)
if self.type is MessageType.channel_follow_add:
return '{0.author.name} has added {0.content} to this channel'.format(self)
async def delete(self, *, delay=None):
"""|coro|