Skip to content

Commit

Permalink
further docstrings updates & typing
Browse files Browse the repository at this point in the history
  • Loading branch information
yoggys committed Mar 8, 2024
1 parent 5c5b842 commit 1fe7988
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions discord/flags.py
Expand Up @@ -830,6 +830,11 @@ def voice_states(self):
- :attr:`VoiceChannel.members`
- :attr:`VoiceChannel.voice_states`
- :attr:`StageChannel.members`
- :attr:`StageChannel.speakers`
- :attr:`StageChannel.listeners`
- :attr:`StageChannel.moderators`
- :attr:`StageChannel.voice_states`
- :attr:`Member.voice`
.. note::
Expand Down
4 changes: 2 additions & 2 deletions discord/guild.py
Expand Up @@ -539,7 +539,7 @@ def _from_data(self, guild: GuildPayload) -> None:
)

self.owner_id: int | None = utils._get_as_snowflake(guild, "owner_id")
self.afk_channel: VocalGuildChannel | None = self.get_channel(
self.afk_channel: VoiceChannel | None = self.get_channel(
utils._get_as_snowflake(guild, "afk_channel_id")
) # type: ignore

Expand Down Expand Up @@ -3422,7 +3422,7 @@ async def change_voice_state(
Parameters
----------
channel: Optional[:class:`VoiceChannel`]
channel: Optional[Union[:class:`VoiceChannel`, :class:`StageChannel`]]
Channel the client wants to join. Use ``None`` to disconnect.
self_mute: :class:`bool`
Indicates if the client should be self-muted.
Expand Down
2 changes: 1 addition & 1 deletion discord/raw_models.py
Expand Up @@ -596,7 +596,7 @@ class AutoModActionExecutionEvent:
The member that triggered the action, if cached.
channel_id: Optional[:class:`int`]
The ID of the channel in which the member's content was posted.
channel: Optional[Union[:class:`TextChannel`, :class:`Thread`, :class:`VoiceChannel`]]
channel: Optional[Union[:class:`TextChannel`, :class:`Thread`, :class:`VoiceChannel`, :class:`StageChannel`]]
The channel in which the member's content was posted, if cached.
message_id: Optional[:class:`int`]
The ID of the message that triggered the action. This is only available if the
Expand Down

0 comments on commit 1fe7988

Please sign in to comment.