Player class

The state of the client playing audio in a guild.

Annotations
  • @JsonSerializable()

Constructors

Player({required String guildId, required Track? track, required int volume, required bool isPaused, required PlayerState state, required VoiceState voice, required Filters filters})
Create a new Player.
Player.fromJson(Map<String, Object?> json)
factory

Properties

filters Filters
The filters used by this player.
final
guildId String
The ID of the guild.
final
hashCode int
The hash code for this object.
no setterinherited
isPaused bool
Whether this player is currently paused.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state PlayerState
The state of this player.
final
track Track?
The currently playing track.
final
voice VoiceState
The state of this player's voice session.
final
volume int
The current volume.
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