Skip to content

Commit

Permalink
Revert "feat: add set_voice_channel_status permission"
Browse files Browse the repository at this point in the history
This reverts commit f461674.
  • Loading branch information
MCausc78 committed Sep 3, 2023
1 parent d7e37e5 commit 921391f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
1 change: 0 additions & 1 deletion disnake/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,6 @@ async def set_permissions(
send_messages_in_threads: Optional[bool] = ...,
send_tts_messages: Optional[bool] = ...,
send_voice_messages: Optional[bool] = ...,
set_voice_channel_status: Optional[bool] = ...,
speak: Optional[bool] = ...,
start_embedded_activities: Optional[bool] = ...,
stream: Optional[bool] = ...,
Expand Down
1 change: 0 additions & 1 deletion disnake/ext/commands/base_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ def default_member_permissions(
send_messages_in_threads: bool = ...,
send_tts_messages: bool = ...,
send_voice_messages: bool = ...,
set_voice_channel_status: bool = ...,
speak: bool = ...,
start_embedded_activities: bool = ...,
stream: bool = ...,
Expand Down
4 changes: 0 additions & 4 deletions disnake/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,6 @@ def has_permissions(
send_messages_in_threads: bool = ...,
send_tts_messages: bool = ...,
send_voice_messages: bool = ...,
set_voice_channel_status: bool = ...,
speak: bool = ...,
start_embedded_activities: bool = ...,
stream: bool = ...,
Expand Down Expand Up @@ -2169,7 +2168,6 @@ def bot_has_permissions(
send_messages_in_threads: bool = ...,
send_tts_messages: bool = ...,
send_voice_messages: bool = ...,
set_voice_channel_status: bool = ...,
speak: bool = ...,
start_embedded_activities: bool = ...,
stream: bool = ...,
Expand Down Expand Up @@ -2271,7 +2269,6 @@ def has_guild_permissions(
send_messages_in_threads: bool = ...,
send_tts_messages: bool = ...,
send_voice_messages: bool = ...,
set_voice_channel_status: bool = ...,
speak: bool = ...,
start_embedded_activities: bool = ...,
stream: bool = ...,
Expand Down Expand Up @@ -2370,7 +2367,6 @@ def bot_has_guild_permissions(
send_messages_in_threads: bool = ...,
send_tts_messages: bool = ...,
send_voice_messages: bool = ...,
set_voice_channel_status: bool = ...,
speak: bool = ...,
start_embedded_activities: bool = ...,
stream: bool = ...,
Expand Down
19 changes: 1 addition & 18 deletions disnake/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ def __init__(
send_messages_in_threads: bool = ...,
send_tts_messages: bool = ...,
send_voice_messages: bool = ...,
set_voice_channel_status: bool = ...,
speak: bool = ...,
start_embedded_activities: bool = ...,
stream: bool = ...,
Expand Down Expand Up @@ -320,7 +319,7 @@ def all_channel(cls) -> Self:
Added :attr:`use_soundboard` and :attr:`send_voice_messages` permissions.
.. versionchanged:: 2.10
Added :attr:`use_clyde_ai`, :attr:`set_voice_channel_status` permissions.
Added :attr:`use_clyde_ai` permission.
"""
instance = cls.all()
instance.update(
Expand Down Expand Up @@ -436,9 +435,6 @@ def voice(cls) -> Self:
.. versionchanged:: 2.9
Added :attr:`use_soundboard` and :attr:`use_external_sounds` permissions.
.. versionchanged:: 2.10
Added :attr:`set_voice_channel_status` permission.
"""
return cls(
connect=True,
Expand All @@ -452,7 +448,6 @@ def voice(cls) -> Self:
mute_members=True,
deafen_members=True,
move_members=True,
set_voice_channel_status=True,
)

@classmethod
Expand Down Expand Up @@ -578,7 +573,6 @@ def update(
send_messages_in_threads: bool = ...,
send_tts_messages: bool = ...,
send_voice_messages: bool = ...,
set_voice_channel_status: bool = ...,
speak: bool = ...,
start_embedded_activities: bool = ...,
stream: bool = ...,
Expand Down Expand Up @@ -1017,14 +1011,6 @@ def use_clyde_ai(self) -> int:
"""
return 1 << 47

@flag_value
def set_voice_channel_status(self) -> int:
""":class:`bool`: Returns ``True`` if a user can set a voice channel's status.
.. versionadded:: 2.10
"""
return 1 << 48


def _augment_from_permissions(cls):
cls.VALID_NAMES = set(Permissions.VALID_FLAGS)
Expand Down Expand Up @@ -1130,7 +1116,6 @@ class PermissionOverwrite:
send_messages_in_threads: Optional[bool]
send_tts_messages: Optional[bool]
send_voice_messages: Optional[bool]
set_voice_channel_status: Optional[bool]
speak: Optional[bool]
start_embedded_activities: Optional[bool]
stream: Optional[bool]
Expand Down Expand Up @@ -1196,7 +1181,6 @@ def __init__(
send_messages_in_threads: Optional[bool] = ...,
send_tts_messages: Optional[bool] = ...,
send_voice_messages: Optional[bool] = ...,
set_voice_channel_status: Optional[bool] = ...,
speak: Optional[bool] = ...,
start_embedded_activities: Optional[bool] = ...,
stream: Optional[bool] = ...,
Expand Down Expand Up @@ -1329,7 +1313,6 @@ def update(
send_messages_in_threads: Optional[bool] = ...,
send_tts_messages: Optional[bool] = ...,
send_voice_messages: Optional[bool] = ...,
set_voice_channel_status: Optional[bool] = ...,
speak: Optional[bool] = ...,
start_embedded_activities: Optional[bool] = ...,
stream: Optional[bool] = ...,
Expand Down

0 comments on commit 921391f

Please sign in to comment.