aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/enums.py')
-rw-r--r--discord/enums.py5
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``.