Skip to content

Commit 373abc5

Browse files
committed
feat(permissions): Add send_voice_messages permission
Signed-off-by: Mathieu Corsham <[email protected]>
1 parent 7ecd1e1 commit 373abc5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

discord/oauth2/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class OAuth2Scope(Enum):
4343
| Attribute | Name | Description |
4444
+=========================================================+==========================================+====================================================================================================================+
4545
| .. attribute:: READ_ACTIVITIES | activities.read | allows your app to fetch data from a user's "Now Playing/Recently Played" list |
46-
| | | - **requires Discord approval** |
46+
| | | - **not currently available for apps** |
4747
+---------------------------------------------------------+------------------------------------------+--------------------------------------------------------------------------------------------------------------------+
4848
| .. attribute:: WRITE_ACTIVITIES | activities.write | allows your app to update a user's activity |
4949
| | | - **requires Discord approval** (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) |

discord/permissions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,11 @@ def view_creator_monetization_analytics(self):
600600
def use_soundboard(self):
601601
""":class:`bool`: Returns ``True`` if a user can use the soundboard in a voice channel."""
602602
return 1 << 42
603+
604+
@flag_value
605+
def send_voice_messages(self):
606+
""":class:`bool`: Returns ``True`` if a user can send voice messages."""
607+
return 1 << 46
603608

604609

605610
def augment_from_permissions(cls):

0 commit comments

Comments
 (0)