@@ -88,6 +88,7 @@ class _BasePermissionsKwargs(Generic[BoolOrNoneT], TypedDict, total=False):
8888 use_soundboard : BoolOrNoneT
8989 use_external_sounds : BoolOrNoneT
9090 send_voice_messages : BoolOrNoneT
91+ set_voice_channel_status : BoolOrNoneT
9192 create_expressions : BoolOrNoneT
9293 create_events : BoolOrNoneT
9394 send_polls : BoolOrNoneT
@@ -252,7 +253,7 @@ def all(cls) -> Self:
252253 permissions set to ``True``.
253254 """
254255 # Some of these are 0 because we don't want to set unnecessary bits
255- return cls (0b0000_0000_0000_1110_0111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111 )
256+ return cls (0b0000_0000_0000_1111_0111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111 )
256257
257258 @classmethod
258259 def _timeout_mask (cls ) -> int :
@@ -383,8 +384,12 @@ def text(cls) -> Self:
383384 @classmethod
384385 def voice (cls ) -> Self :
385386 """A factory method that creates a :class:`Permissions` with all
386- "Voice" permissions from the official Discord UI set to ``True``."""
387- return cls (0b0000_0000_0000_0000_0010_0100_1000_0000_0000_0011_1111_0000_0000_0011_0000_0000 )
387+ "Voice" permissions from the official Discord UI set to ``True``.
388+
389+ .. versionchanged:: 2.7
390+ Added :attr:`set_voice_channel_status` permission.
391+ """
392+ return cls (0b0000_0000_0000_0001_0010_0100_1000_0000_0000_0011_1111_0000_0000_0011_0000_0000 )
388393
389394 @classmethod
390395 def stage (cls ) -> Self :
@@ -839,6 +844,14 @@ def send_voice_messages(self) -> int:
839844 """
840845 return 1 << 46
841846
847+ @flag_value
848+ def set_voice_channel_status (self ) -> int :
849+ """:class:`bool`: Returns ``True`` if a user can set voice channel status.
850+
851+ .. versionadded:: 2.7
852+ """
853+ return 1 << 48
854+
842855 @flag_value
843856 def send_polls (self ) -> int :
844857 """:class:`bool`: Returns ``True`` if a user can send poll messages.
@@ -989,6 +1002,7 @@ class PermissionOverwrite:
9891002 use_soundboard : Optional [bool ]
9901003 use_external_sounds : Optional [bool ]
9911004 send_voice_messages : Optional [bool ]
1005+ set_voice_channel_status : Optional [bool ]
9921006 create_expressions : Optional [bool ]
9931007 create_events : Optional [bool ]
9941008 send_polls : Optional [bool ]
0 commit comments