Constructors

Properties

guildId: string
node: Node

Accessors

  • get currentPlaybackPosition(): number
  • Gets the current playback position of the track.

    Returns number

    The current playback position of the track.

  • get currentPlaybackTrack(): null | Track
  • Gets the current track being played.

    Returns null | Track

    The current track that is being played or null if none.

  • get guildPlayer(): GuildPlayer<BaseNode>
  • Gets the LavaPlayer instance associated with the queue.

    Returns GuildPlayer<BaseNode>

    The LavaPlayer instance.

  • get http(): HttpClient
  • Returns HttpClient

  • get isPlaying(): boolean
  • Returns boolean

  • get leaveOnFinish(): boolean
  • Leave voice channel when track finish

    Returns boolean

  • get nextTrack(): undefined | Track
  • Gets the next track in the queue.

    Returns undefined | Track

    The next track in the queue or undefined if the queue is empty.

  • get sessionId(): string
  • Returns string

  • get size(): number
  • Gets the size of the queue.

    Returns number

    The number of tracks in the queue.

  • get tracks(): readonly Track[]
  • Gets a read-only array of the tracks in the queue.

    Returns readonly Track[]

    The tracks in the queue.

Methods

  • Adds one or more tracks to the queue.

    Parameters

    • Rest...tracks: Track[]

      The tracks to be added to the queue.

    Returns void

  • Adds one or more tracks to top of the queue.

    Parameters

    • Rest...tracks: Track[]

      The tracks to be added to the queue.

    Returns void

  • Changes the position of a track in the queue.

    Parameters

    • oldIndex: number

      The current index of the track.

    • newIndex: number

      The new index for the track.

    Returns void

    Will throw an error if the indices are out of bounds.

  • Exits the player, clearing the queue and destroying the LavaPlayer instance.

    Returns Promise<void>

  • Pauses the current track.

    Returns Promise<void>

  • Plays the next track in the queue.

    Returns Promise<null | Track>

    The next track that was played or null if the queue is empty.

  • Removes all tracks from the queue.

    Returns void

  • Removes tracks from the queue by their indices.

    Parameters

    • Rest...indices: number[]

      The indices of the tracks to be removed.

    Returns void

  • Resumes playing the current track.

    Returns Promise<void>

  • Searches for tracks using Lavalink

    Parameters

    • text: string

      The search text input by the user.

    Returns Promise<TrackResponse>

    The response from the Lavalink search.

  • Sets the current playback position of the track.

    Parameters

    • time: number

      The new playback position.

    Returns void

  • Sets the repeat mode of the queue.

    Parameters

    Returns void

  • Sets the volume of the player.

    Parameters

    • volume: number

      The new volume level.

    Returns Promise<void>

  • Shuffles the tracks in the queue.

    Returns void