Shoukaku
    Preparing search index...

    Class Rest

    Wrapper around Lavalink REST API

    Index

    Constructors

    Properties

    auth: string

    Credentials to access Lavalink

    node: Node

    Node that initialized this instance

    url: string

    URL of Lavalink

    Accessors

    Methods

    • Decode a track

      Parameters

      • track: string

        Encoded track

      Returns Promise<Track | undefined>

      Promise that resolves to a track

    • Deletes a Lavalink player

      Parameters

      • guildId: string

        guildId where this player is

      Returns Promise<void>

    • Internal

      Make a request to Lavalink

      Type Parameters

      • TResponse = unknown

      Parameters

      • fetchOptions: FetchOptions

      Returns Promise<TResponse | undefined>

      RestError when encountering a Lavalink error response

    • Gets the player with the specified guildId

      Parameters

      • guildId: string

      Returns Promise<LavalinkPlayer | undefined>

      Promise that resolves to a Lavalink player

    • Gets the status of this node

      Returns Promise<Stats | undefined>

      Promise that resolves to a node stats response

    • Release blacklisted IP address into pool of IPs

      Parameters

      • address: string

        IP address

      Returns Promise<void>

    • Updates the session with a resume boolean and timeout

      Parameters

      • Optionalresuming: boolean

        Whether resuming is enabled for this session or not

      • Optionaltimeout: number

        Timeout to wait for resuming

      Returns Promise<SessionInfo | undefined>

      Promise that resolves to a Lavalink player