Voice

discord_http.voice module

class discord_http.voice.PartialVoiceState(*, state, id, channel_id=None, guild_id=None)

Bases: PartialBase

Parameters:
async edit(*, suppress=<MISSING>) None

Updates the voice state of the member.

Parameters:

suppress (bool) – Whether to suppress the user

Return type:

None

async fetch() VoiceState

Fetches the voice state of the member.

Return type:

VoiceState

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: