Add support for integrations

This commit is contained in:
Nadir Chowdhury
2020-06-28 19:50:43 +01:00
committed by GitHub
parent 2b3c6e0d47
commit a64006ee9b
6 changed files with 369 additions and 1 deletions

View File

@@ -50,6 +50,8 @@ __all__ = (
'TeamMembershipState',
'Theme',
'WebhookType',
'ExpireBehaviour',
'ExpireBehavior'
)
def _create_value_cls(name):
@@ -432,6 +434,12 @@ class WebhookType(Enum):
incoming = 1
channel_follower = 2
class ExpireBehaviour(Enum):
remove_role = 0
kick = 1
ExpireBehavior = ExpireBehaviour
def try_enum(cls, val):
"""A function that tries to turn the value into enum ``cls``.