VoiceState class
Voice State structure
https://discord.com/developers/docs/resources/voice#voice-state-object-voice-state-structure
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- VoiceState({String? guildId, String? channelId, required String userId, GuildMember? member, required String sessionId, required bool deaf, required bool mute, required bool selfDeaf, required bool selfMute, bool? selfStream, required bool selfVideo, required bool suppress, DateTime? requestToSpeakTimestamp})
- Constructor
-
VoiceState.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- channelId → String?
-
the channel id this user is connected to
final
- deaf → bool
-
whether this user is deafened by the server
final
- guildId → String?
-
the guild id this voice state is for
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- member → GuildMember?
-
the guild member this voice state is for
final
- mute → bool
-
whether this user is muted by the server
final
- requestToSpeakTimestamp → DateTime?
-
the time at which the user requested to speak
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfDeaf → bool
-
whether this user is locally deafened
final
- selfMute → bool
-
whether this user is locally muted
final
- selfStream → bool?
-
whether this user is streaming using "Go Live"
final
- selfVideo → bool
-
whether this user's camera is enabled
final
- sessionId → String
-
the session id for this voice state
final
- suppress → bool
-
whether this user is muted by the current user
final
- userId → String
-
the user id this voice state is for
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited