Skip to content

Commit

Permalink
Fix all_channel permissions
Browse files Browse the repository at this point in the history
When the new permission for send_messages_in_threads was added, we added
the wrong bit. Instead of adding the bit as the most significant (37),
we added it as the last significant, which invalidated most of the
permissions defined by this method.
  • Loading branch information
jgayfer authored Aug 28, 2021
1 parent 12dcc7c commit 41d22f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def all_channel(cls: Type[P]) -> P:
:attr:`use_external_stickers`, :attr:`send_messages_in_threads` and
:attr:`request_to_speak` permissions.
"""
return cls(0b111101101100111111011111111111010100011)
return cls(0b111110110110011111101111111111101010001)

@classmethod
def general(cls: Type[P]) -> P:
Expand Down

0 comments on commit 41d22f4

Please sign in to comment.