discordaio.voice

Classes

class discordaio.voice.VoiceState(guild_id: typing.Union[int, NoneType] = None, channel_id: int = 0, user_id: int = 0, session_id: str = '', deaf=False, mute=False, self_deaf=False, self_mute=False, suppress=False)[source]

Used to represent a user’s voice connection status.

guild_id

int, optional – the guild id this voice state is for

channel_id

int – the channel id this user is connected to

user_id

int – the user id this voice state is for

session_id

str – the session id for this voice state

deaf

bool – whether this user is deafened by the server

mute

bool – whether this user is muted by the server

self_deaf

bool – whether this user is locally deafened

self_mute

bool – whether this user is locally muted

suppress

bool – whether this user is muted by the current user

Inheritance

Inheritance diagram of VoiceState
class discordaio.voice.VoiceRegion(id='', name='', vip=False, optimal=False, deprecated=False, custom=False)[source]
id

str – unique ID for the region

name

str – name of the region

vip

bool – true if this is a vip-only server

optimal

bool – true for a single server that is closest to the current user’s client

deprecated

bool – whether this is a deprecated voice region (avoid switching to these)

custom

bool – whether this is a custom voice region (used for events/etc)

Inheritance

Inheritance diagram of VoiceRegion