VoiceState
- class VoiceState
Tracks a user’s current voice connection status in a guild, including channel, mute/deafen state, and stage suppression.
Properties
Property
Type
Description
channelIdChannel ID the user is connected to, or
nullif not in voice.deafIndicates whether the user is server-deafened.
undefinedwhen the payload omitted it;falseonly when Discord sent false.guildIdGuild ID this voice state is for.
memberGuild member object for this user, or
null.muteIndicates whether the user is server-muted.
requestToSpeakTimestampStage request-to-speak time as a Unix timestamp in milliseconds.
selfDeafIndicates whether the user has deafened themselves.
selfMuteIndicates whether the user has muted themselves.
selfStreamIndicates whether the user is streaming.
selfVideoIndicates whether the user’s camera is enabled.
sessionIdSession ID for the voice connection.
suppressIndicates whether the user is suppressed (in a stage).
userIdUser ID of the connected user.