diff options
| author | Dice <[email protected]> | 2019-08-16 22:10:49 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-08-27 04:05:03 -0400 |
| commit | da4bb0610c3aeef2533123b451497c9e3d19db19 (patch) | |
| tree | 7d32e992c06e5cbc422e5ff4dc0d5afcf79c79b8 /discord | |
| parent | Add permissions_synced to abc.GuildChannel (diff) | |
| download | discord.py-da4bb0610c3aeef2533123b451497c9e3d19db19.tar.xz discord.py-da4bb0610c3aeef2533123b451497c9e3d19db19.zip | |
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
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/enums.py | 1 | ||||
| -rw-r--r-- | discord/message.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py index a7868beb..b8a7fa7e 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -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' diff --git a/discord/message.py b/discord/message.py index eb6ab5c7..8acd87cf 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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| |