We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df4b1c8 commit 59f877fCopy full SHA for 59f877f
discord/permissions.py
@@ -187,7 +187,7 @@ def all(cls) -> Self:
187
permissions set to ``True``.
188
"""
189
# Some of these are 0 because we don't want to set unnecessary bits
190
- return cls(0b0000_0000_0000_0010_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111)
+ return cls(0b0000_0000_0000_0110_0111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111)
191
192
@classmethod
193
def _timeout_mask(cls) -> int:
tests/test_permissions_all.py
@@ -0,0 +1,7 @@
1
+import discord
2
+
3
+from functools import reduce
4
+from operator import or_
5
6
+def test_permissions_all():
7
+ assert discord.Permissions.all().value == reduce(or_, discord.Permissions.VALID_FLAGS.values())
0 commit comments