PlayerUpdateMessage class
A message sent when a Player changes state.
- Inheritance
-
- Object
- LavalinkMessage
- PlayerUpdateMessage
- Annotations
-
- @JsonSerializable()
Constructors
- PlayerUpdateMessage({required LavalinkClient client, required String opType, required String guildId, required PlayerState state})
- Create a new PlayerUpdateMessage.
-
PlayerUpdateMessage.fromJson(Map<
String, Object?> json) -
factory
Properties
- client → LavalinkClient
-
The client this message was for.
finalinherited
- guildId → String
-
The ID of the guild the player is in.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- opType → String
-
The type of this message.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → PlayerState
-
The state of the player.
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