@lacunahub/lavaluna.js
    Preparing search index...

    Class Player

    Index

    Constructors

    Properties

    guildId: string

    The guild id of the player.

    node: Node
    options: PlayerOptions
    paused: boolean = false

    Whether the player is paused.

    playing: boolean = false

    Whether the player is playing.

    position: number = 0

    The time the player is in the track.

    queue: Queue = ...

    The queue of the player.

    repeatMode: PlayerRepeatMode = 'OFF'

    The repeat mode of the player.

    shufflePlay: boolean = false

    A mode of music playback in which songs are played in a randomized order.

    state: PlayerState = 'DISCONNECTED'

    The state of the player.

    textChannelId: string

    The text channel id of the player.

    voiceChannelId: string

    The voice channel id of the player.

    voiceState: VoiceState = ...

    The voice state of the player.

    volume: number

    The volume for the player.

    Accessors

    Methods

    • Destroys the player, disconnecting from the node if specified, and emits a playerDestroy event.

      Parameters

      • disconnect: boolean = true

        Whether to disconnect from the node.

      Returns Promise<boolean>

      Whether the player was successfully destroyed.