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: bool
Whether 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: bool
Whether this user is server muted.
self_deaf: bool
Whether this user is locally deafened.
self_mute: bool
Whether this user is locally muted.
self_stream: bool
Whether this user is streaming using “Go Live”.
self_video: bool
Whether this user’s camera is enabled.
session_id: String
Session ID for this voice state.
Used to establish a voice websocket connection.
suppress: bool
Whether 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: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 ==
.