Skip to content

Commit 91f6595

Browse files
committed
✨ Soundboard perms (1 << 42, 1 << 45)
1 parent 9a6cbff commit 91f6595

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

discord/permissions.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,22 @@ def moderate_members(self) -> int:
610610
"""
611611
return 1 << 40
612612

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+
613629
@flag_value
614630
def send_voice_messages(self) -> int:
615631
""":class:`bool`: Returns ``True`` if a member can send voice messages.
@@ -762,6 +778,8 @@ class PermissionOverwrite:
762778
use_external_stickers: bool | None
763779
start_embedded_activities: bool | None
764780
moderate_members: bool | None
781+
use_soundboard: bool | None
782+
use_external_sounds: bool | None
765783
send_voice_messages: bool | None
766784
set_voice_channel_status: bool | None
767785
send_polls: bool | None

0 commit comments

Comments
 (0)