You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
667 B

from disco.types.base import SlottedModel, Field, snowflake, cached_property
class VoiceState(SlottedModel):
session_id = Field(str)
guild_id = Field(snowflake)
channel_id = Field(snowflake)
user_id = Field(snowflake)
deaf = Field(bool)
mute = Field(bool)
self_deaf = Field(bool)
self_mute = Field(bool)
suppress = Field(bool)
@cached_property
def guild(self):
return self.client.state.guilds.get(self.guild_id)
@property
def channel(self):
return self.client.state.channels.get(self.channel_id)
@cached_property
def user(self):
return self.client.state.users.get(self.user_id)