|
@ -187,7 +187,7 @@ class Permissions(BaseFlags): |
|
|
permissions set to ``True``. |
|
|
permissions set to ``True``. |
|
|
""" |
|
|
""" |
|
|
# Some of these are 0 because we don't want to set unnecessary bits |
|
|
# Some of these are 0 because we don't want to set unnecessary bits |
|
|
return cls(0b0000_0000_0000_0000_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111) |
|
|
return cls(0b0000_0000_0000_0010_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111) |
|
|
|
|
|
|
|
|
@classmethod |
|
|
@classmethod |
|
|
def _timeout_mask(cls) -> int: |
|
|
def _timeout_mask(cls) -> int: |
|
@ -235,8 +235,11 @@ class Permissions(BaseFlags): |
|
|
|
|
|
|
|
|
.. versionchanged:: 2.3 |
|
|
.. versionchanged:: 2.3 |
|
|
Added :attr:`use_soundboard`, :attr:`create_expressions` permissions. |
|
|
Added :attr:`use_soundboard`, :attr:`create_expressions` permissions. |
|
|
|
|
|
|
|
|
|
|
|
.. versionchanged:: 2.4 |
|
|
|
|
|
Added :attr:`send_polls`, :attr:`send_voice_messages` permissions. |
|
|
""" |
|
|
""" |
|
|
return cls(0b0000_0000_0000_0000_0000_0100_0111_1101_1011_0011_1111_0111_1111_1111_0101_0001) |
|
|
return cls(0b0000_0000_0000_0010_0100_0100_0111_1101_1011_0011_1111_0111_1111_1111_0101_0001) |
|
|
|
|
|
|
|
|
@classmethod |
|
|
@classmethod |
|
|
def general(cls) -> Self: |
|
|
def general(cls) -> Self: |
|
@ -278,8 +281,11 @@ class Permissions(BaseFlags): |
|
|
|
|
|
|
|
|
.. versionchanged:: 2.3 |
|
|
.. versionchanged:: 2.3 |
|
|
Added :attr:`send_voice_messages` permission. |
|
|
Added :attr:`send_voice_messages` permission. |
|
|
|
|
|
|
|
|
|
|
|
.. versionchanged:: 2.4 |
|
|
|
|
|
Added :attr:`send_polls` permission. |
|
|
""" |
|
|
""" |
|
|
return cls(0b0000_0000_0000_0000_0100_0000_0111_1100_1000_0000_0000_0111_1111_1000_0100_0000) |
|
|
return cls(0b0000_0000_0000_0010_0100_0000_0111_1100_1000_0000_0000_0111_1111_1000_0100_0000) |
|
|
|
|
|
|
|
|
@classmethod |
|
|
@classmethod |
|
|
def voice(cls) -> Self: |
|
|
def voice(cls) -> Self: |
|
|