Skip to content

Commit bf84bb9

Browse files
SilberGecko6917pre-commit-ci[bot]plun1331Paillat-dev
authored
fix: include bypass_slowmode in permissions.all() (#3231)
* fix: correct permissions bitmask for all permissions * include fix in changelog * style(pre-commit): auto fixes from pre-commit.com hooks * method things * Update CHANGELOG.md Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: SilberGecko6917 <109872285+SilberGecko6917@users.noreply.github.com> --------- Signed-off-by: SilberGecko6917 <109872285+SilberGecko6917@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: Paillat <paillat@pycord.dev>
1 parent 2f0e07b commit bf84bb9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ released.
1717

1818
### Fixed
1919

20+
- Include `bypass_slowmode` in `Permissions.all`.
21+
([#3231](https://github.com/Pycord-Development/pycord/pull/3231))
22+
2023
### Deprecated
2124

2225
### Removed

discord/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def all(cls: type[P]) -> P:
180180
"""A factory method that creates a :class:`Permissions` with all
181181
permissions set to ``True``.
182182
"""
183-
return cls(~(~1 << 51))
183+
return cls(~(~1 << 52))
184184

185185
@classmethod
186186
def all_channel(cls: type[P]) -> P:

0 commit comments

Comments
 (0)