diff options
| author | NCPlayz <[email protected]> | 2019-11-23 12:44:50 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-26 05:16:53 -0500 |
| commit | f554819506356b9c78fd6dbf07a88eadf9dd4693 (patch) | |
| tree | 16602ce5c26dba39533c0721670f78250a2a0870 /discord/enums.py | |
| parent | Fix typo in help.py docs (diff) | |
| download | discord.py-f554819506356b9c78fd6dbf07a88eadf9dd4693.tar.xz discord.py-f554819506356b9c78fd6dbf07a88eadf9dd4693.zip | |
Implement `Webhook.type`
Diffstat (limited to 'discord/enums.py')
| -rw-r--r-- | discord/enums.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py index 8938ace1..804b3959 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -49,6 +49,7 @@ __all__ = ( 'FriendFlags', 'TeamMembershipState', 'Theme', + 'WebhookType', ) def _create_value_cls(name): @@ -419,6 +420,10 @@ class TeamMembershipState(Enum): invited = 1 accepted = 2 +class WebhookType(Enum): + incoming = 1 + channel_follower = 2 + def try_enum(cls, val): """A function that tries to turn the value into enum ``cls``. |