it.discordbot.command.music.config / TrackScheduler

TrackScheduler

class TrackScheduler : AudioEventAdapter

Constructors

<init>

TrackScheduler(player: AudioPlayer)

Properties

lastTrack

var lastTrack: AudioTrack?

player

val player: AudioPlayer

queue

val queue: Queue<AudioTrack>

repeating

var repeating: Boolean

Functions

isRepeating

fun isRepeating(): Boolean

nextTrack

fun nextTrack(): Unit

Start the next track, stopping the current one if it is playing.

onTrackEnd

fun onTrackEnd(player: AudioPlayer?, track: AudioTrack?, endReason: AudioTrackEndReason): Unit

queue

fun queue(track: AudioTrack): Unit

Add the next track to queue or play right away if nothing is in the queue.

setRepeating

fun setRepeating(repeating: Boolean): Unit

shuffle

fun shuffle(): Unit