VoiceState class Null safety

Used to represent a user"s voice connection status. If channel is null, it means that user left channel.

Properties

channel Cacheable<Snowflake, IChannel>?
Channel id user is connected
late, final
deaf bool
Whether this user is muted by the server
late, final
guild Cacheable<Snowflake, Guild>?
Guild this voice state update is
late, final
hashCode int
The hash code for this object. [...]
read-only, inherited
requestToSpeakTimeStamp DateTime?
The time at which the user requested to speak
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selfDeaf bool
Whether this user is locally deafened
late, final
selfMute bool
Whether this user is locally muted
late, final
selfStream bool
Whether this user is streaming using "Go Live"
late, final
selfVideo bool
Whether this user's camera is enabled
late, final
sessionId String
Session id for this voice state
late, final
suppress bool
Whether this user is muted by the current user
late, final
user Cacheable<Snowflake, User>
User this voice state is for
late, final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited