Voice¶
discord_http.voice module¶
- class discord_http.voice.PartialVoiceState(*, state, id, channel_id=None, guild_id=None)¶
Bases:
PartialBase
Represents a partial voice state object.
- 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
Represents a voice state object.
- Parameters:
state (DiscordAPI)
data (dict)
guild (PartialGuild | None)
channel (BaseChannel | PartialChannel | None)
- user¶
The user this voice state belongs to
- Type:
- channel¶
The voice channel this user is in, if any
- Type:
BaseChannel | PartialChannel | None
- guild¶
The guild this voice state is in, if any
- Type:
PartialGuild | None
- request_to_speak_timestamp¶
The timestamp when the user requested to speak, if any
- Type:
datetime | None