Voice¶
discord_http.voice module¶
- class discord_http.voice.PartialVoiceState(*, state, id, channel_id=None, guild_id=None)¶
Bases:
PartialBase
- Parameters:
state (DiscordAPI)
id (int)
channel_id (int | None)
guild_id (int | None)
- async fetch() VoiceState ¶
Fetches the voice state of the member.
- Return type:
- Returns:
The voice state of the member
- Raises:
NotFound –
If the member is not in the guild - If the member is not in a voice channel
- class discord_http.voice.VoiceState(*, state, data, guild, channel)¶
Bases:
PartialVoiceState
- Parameters:
state (DiscordAPI)
data (dict)
guild (PartialGuild | None)
channel (BaseChannel | PartialChannel | None)