File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ def voice(cls: type[P]) -> P:
250
250
"""A factory method that creates a :class:`Permissions` with all
251
251
"Voice" permissions from the official Discord UI set to ``True``.
252
252
"""
253
- return cls (0b1000000001000000000000011111100000000001100000000 )
253
+ return cls (0b1001001001000000000000011111100000000001100000000 )
254
254
255
255
@classmethod
256
256
def stage (cls : type [P ]) -> P :
@@ -610,6 +610,22 @@ def moderate_members(self) -> int:
610
610
"""
611
611
return 1 << 40
612
612
613
+ @flag_value
614
+ def use_soundboard (self ) -> int :
615
+ """:class:`bool`: Returns ``True`` if a user can use the soundboard in a voice channel.
616
+
617
+ .. versionadded:: 2.7
618
+ """
619
+ return 1 << 42
620
+
621
+ @flag_value
622
+ def use_external_sounds (self ) -> int :
623
+ """:class:`bool`: Returns ``True`` if a user can use external soundboard sounds in a voice channel.
624
+
625
+ .. versionadded:: 2.7
626
+ """
627
+ return 1 << 45
628
+
613
629
@flag_value
614
630
def send_voice_messages (self ) -> int :
615
631
""":class:`bool`: Returns ``True`` if a member can send voice messages.
@@ -762,6 +778,8 @@ class PermissionOverwrite:
762
778
use_external_stickers : bool | None
763
779
start_embedded_activities : bool | None
764
780
moderate_members : bool | None
781
+ use_soundboard : bool | None
782
+ use_external_sounds : bool | None
765
783
send_voice_messages : bool | None
766
784
set_voice_channel_status : bool | None
767
785
send_polls : bool | None
You can’t perform that action at this time.
0 commit comments