Interface ManagerEvents

interface ManagerEvents {
    audioError(error: any, player: AudioPlayer): this;
    queueEnd(player: AudioPlayer): this;
    queueStart(urls: unknown[], player: AudioPlayer): this;
    trackAdd(track:
        | SoundCloudTrackInfo
        | LocalFileTrackInfo
        | UrlTrackInfo
        | YoutubeTrackInfo
        | SpotifyTrackInfo, player: AudioPlayer): this;
    trackEnd(track: Track<
        | "SoundCloud"
        | "LocalFile"
        | "Url"
        | "Youtube"
        | "Spotify">, player: AudioPlayer): this;
    trackPause(player: AudioPlayer): this;
    trackResume(player: AudioPlayer): this;
    trackStart(track: Track<
        | "SoundCloud"
        | "LocalFile"
        | "Url"
        | "Youtube"
        | "Spotify">, player: AudioPlayer): this;
}

Methods

  • Parameters

    • track: Track<
          | "SoundCloud"
          | "LocalFile"
          | "Url"
          | "Youtube"
          | "Spotify">
    • player: AudioPlayer

    Returns this