Struct twilight_model::voice::VoiceState
source · pub struct VoiceState {Show 13 fields
pub channel_id: Option<Id<ChannelMarker>>,
pub deaf: bool,
pub guild_id: Option<Id<GuildMarker>>,
pub member: Option<Member>,
pub mute: bool,
pub self_deaf: bool,
pub self_mute: bool,
pub self_stream: bool,
pub self_video: bool,
pub session_id: String,
pub suppress: bool,
pub user_id: Id<UserMarker>,
pub request_to_speak_timestamp: Option<Timestamp>,
}Expand description
User’s voice connection status.
Fields§
§channel_id: Option<Id<ChannelMarker>>Channel this user is connected to.
None corresponds to being disconnected.
deaf: boolWhether this user is server deafened.
guild_id: Option<Id<GuildMarker>>Guild this voice state is for.
member: Option<Member>Member this voice state is for.
mute: boolWhether this user is server muted.
self_deaf: boolWhether this user is locally deafened.
self_mute: boolWhether this user is locally muted.
self_stream: boolWhether this user is streaming using “Go Live”.
self_video: boolWhether this user’s camera is enabled.
session_id: StringSession ID for this voice state.
Used to establish a voice websocket connection.
suppress: boolWhether the user’s permission to speak is denied.
Only applies to stage channels.
user_id: Id<UserMarker>User this voice state is for.
request_to_speak_timestamp: Option<Timestamp>When the user requested to speak.
serde
This is serialized as an ISO 8601 timestamp in the format of “2021-01-01T01-01-01.010000+00:00”.
Trait Implementations§
source§impl Clone for VoiceState
impl Clone for VoiceState
source§fn clone(&self) -> VoiceState
fn clone(&self) -> VoiceState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for VoiceState
impl Debug for VoiceState
source§impl<'de> Deserialize<'de> for VoiceState
impl<'de> Deserialize<'de> for VoiceState
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for VoiceState
impl Hash for VoiceState
source§impl PartialEq<VoiceState> for VoiceState
impl PartialEq<VoiceState> for VoiceState
source§fn eq(&self, other: &VoiceState) -> bool
fn eq(&self, other: &VoiceState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.