DiscordVoiceState class

Constructors

DiscordVoiceState({DiscordSnowflake? guildId, DiscordSnowflake? channelId, required DiscordSnowflake userId, DiscordGuildMember? member, required String sessionId, required bool deaf, required bool muted, required bool selfDeaf, required bool selfMuted, bool? selfStream, required bool selfVideo, required bool suppress, String? requestToSpeakTimestamp})
DiscordVoiceState.fromJson(Map<String, dynamic> json)
factory

Properties

channelId DiscordSnowflake?
the channel id this user is connected to
final
deaf bool
whether this user is deafened by the server
final
guildId DiscordSnowflake?
the guild id this voice state is for
final
hashCode int
The hash code for this object.
no setterinherited
member DiscordGuildMember?
the guild member this voice state is for
final
muted bool
whether this user is muted by the server
final
requestToSpeakTimestamp String?
the time at which the user request to speak, as an ISO 8601 timestamp
final
requestToSpeakTimestampAsDateTime DateTime?
returns the requestToSpeakTimestamp as a DateTime
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfDeaf bool
whether this user is locally deafened
final
selfMuted 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 DiscordSnowflake
the user id this voice state is for
final

Methods

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

Operators

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