Skip to content

Commit 218e065

Browse files
feat: ✨ Add bypass slowmode perm (#2939)
* ✨ Add bypass slowmode perm * ✨ CHANGELOG.md --------- Signed-off-by: Lala Sabathil <[email protected]> Co-authored-by: Lala Sabathil <[email protected]>
1 parent 5d28571 commit 218e065

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ These changes are available on the `master` branch, but have not yet been releas
3939
([#2914](https://github.com/Pycord-Development/pycord/pull/2914))
4040
- Added `ui.FileUpload` for modals and the `FileUpload` component.
4141
([#2938](https://github.com/Pycord-Development/pycord/pull/2938))
42+
- Added `Permissions.bypass_slowmode`.
43+
([#2939](https://github.com/Pycord-Development/pycord/pull/2939))
4244
- Added support for Guild Incidents via `Guild.incidents_data` and
4345
`Guild.modify_incident_actions()`.
4446
([#2955](https://github.com/Pycord-Development/pycord/pull/2955))

discord/permissions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,14 @@ def pin_messages(self) -> int:
680680
"""
681681
return 1 << 51
682682

683+
@flag_value
684+
def bypass_slowmode(self) -> int:
685+
""":class:`bool`: Returns ``True`` if a user can bypass slowmode.
686+
687+
.. versionadded:: tbd
688+
"""
689+
return 1 << 52
690+
683691

684692
PO = TypeVar("PO", bound="PermissionOverwrite")
685693

0 commit comments

Comments
 (0)