Discord Voice State
data class DiscordVoiceState(val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val channelId: Snowflake?, val userId: Snowflake, val member: Optional<DiscordGuildMember> = Optional.Missing(), val sessionId: String, val deaf: Boolean, val mute: Boolean, val selfDeaf: Boolean, val selfMute: Boolean, val selfVideo: Boolean, val selfStream: OptionalBoolean = OptionalBoolean.Missing, val suppress: Boolean, val requestToSpeakTimestamp: Instant?)(source)
A representation of the Discord Voice State structure. Used to represent a user's voice connection status.
Parameters
guild Id
The guild id this voice state is for.
channel Id
The channel id this user is connected to.
user Id
The user id this voice state is for.
member
The guild member this voice state is for.
session Id
The session id for this voice state.
deaf
Whether this user is deafened by the server.
mute
Whether this user is muted by the server.
self Deaf
Whether this user is locally deafened.
self Mute
Whether this user is locally muted.
self Stream
Whether this user is stream using "Go Live".
self Video
Whether this user's camera is enabled.
suppress
Whether this user is muted by the current user.
request To Speak Timestamp
The time at which the user requested to speak.
Constructors
Link copied to clipboard
constructor(guildId: OptionalSnowflake = OptionalSnowflake.Missing, channelId: Snowflake?, userId: Snowflake, member: Optional<DiscordGuildMember> = Optional.Missing(), sessionId: String, deaf: Boolean, mute: Boolean, selfDeaf: Boolean, selfMute: Boolean, selfVideo: Boolean, selfStream: OptionalBoolean = OptionalBoolean.Missing, suppress: Boolean, requestToSpeakTimestamp: Instant?)