diff options
| author | Rapptz <[email protected]> | 2021-05-05 14:16:39 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-05-05 14:16:39 -0400 |
| commit | 598057ee79f885a7f16048df61ddcad44164ea82 (patch) | |
| tree | c0bb74531d186e04837aca3ebb7c3b010ebb1b09 | |
| parent | Type hint GuildChannel and don't make it a Protocol (diff) | |
| download | discord.py-598057ee79f885a7f16048df61ddcad44164ea82.tar.xz discord.py-598057ee79f885a7f16048df61ddcad44164ea82.zip | |
Add Permissions.manage_events
| -rw-r--r-- | discord/permissions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index fe6cabf5..ad78f3b9 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -471,6 +471,14 @@ class Permissions(BaseFlags): """ return 1 << 32 + @flag_value + def manage_events(self): + """:class:`bool`: Returns ``True`` if a user can manage guild events. + + .. versionadded:: 2.0 + """ + return 1 << 33 + def augment_from_permissions(cls): cls.VALID_NAMES = set(Permissions.VALID_FLAGS) aliases = set() |