Voice

discord_http.voice module

class discord_http.voice.PartialVoiceState(*, state: DiscordAPI, id: int, channel_id: int | None = None, guild_id: int | None = None)[source]

Bases: PartialBase

async edit(*, suppress: bool = <MISSING>) None[source]

Updates the voice state of the member

Parameters:

suppress (bool) – Whether to suppress the user

async fetch() VoiceState[source]

Fetches the voice state of the member

Returns:

The voice state of the member

Return type:

VoiceState

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: DiscordAPI, data: dict, guild: PartialGuild | None, channel: BaseChannel | PartialChannel | None)[source]

Bases: PartialVoiceState