PlayParameters class

Parameters to start playing a track

Constructors

PlayParameters(Node _node, Track track, Snowflake guildId, bool replace, Duration startTime, Duration? endTime, Snowflake? requester, Snowflake? channelId)
Create a new play parameters object, it is recommended to create this through Node.play

Properties

channelId ↔ Snowflake?
The channel where this track was requested
getter/setter pair
endTime Duration?
The time at where the track will stop playing
getter/setter pair
guildId → Snowflake
The guild where the track will be played
final
hashCode int
The hash code for this object.
no setterinherited
replace bool
Wether to replace the track or not
getter/setter pair
requester ↔ Snowflake?
The requester of the track
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime Duration
The time at where the track will start to play
getter/setter pair
track Track
The track to play
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queue() → void
Puts the track on the queue and starts playing if necessary
startPlaying() → void
Forces the song to start playing
toString() String
A string representation of this object.
inherited

Operators

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