diff options
| author | Nadir Chowdhury <[email protected]> | 2020-06-28 19:50:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-28 14:50:43 -0400 |
| commit | a64006ee9bf32b5a8e353db7399c9ff868afcb3d (patch) | |
| tree | 8056865d84b50674a00e4200ae21a8ea38274d5d /discord/enums.py | |
| parent | Add support for Discord templates (diff) | |
| download | discord.py-a64006ee9bf32b5a8e353db7399c9ff868afcb3d.tar.xz discord.py-a64006ee9bf32b5a8e353db7399c9ff868afcb3d.zip | |
Add support for integrations
Diffstat (limited to 'discord/enums.py')
| -rw-r--r-- | discord/enums.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py index 6859a1c7..87fc7322 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -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``. |