hoshimi
    Preparing search index...

    Variable RestRoutesConst

    RestRoutes: {
        Connection: "/connection";
        DecodeTrack: "/decodetrack";
        DecodeTracks: "/decodetracks";
        GetLyrics: "/lyrics";
        LoadLyrics: "/loadlyrics";
        LoadTracks: "/loadtracks";
        NodeInfo: "/info";
        CurrentLyrics(
            sessionId: string,
            guildId: string,
        ): `/sessions/${string}/players/${string}/track/lyrics`;
        GetPlayers(sessionId: string): `/sessions/${string}/players`;
        SubscribeLyrics(
            sessionId: string,
            guildId: string,
        ): `/sessions/${string}/players/${string}/lyrics/subscribe`;
        UpdatePlayer(
            sessionId: string,
            guildId: string,
        ): `/sessions/${string}/players/${string}`;
        UpdateSession(sessionId: string): `/sessions/${string}`;
    } = ...

    The REST routes.

    Type Declaration

    • Connection: "/connection"

      Get the connection endpoint.

      Used for checking the connection status of the node, only for nodelink nodes.

    • DecodeTrack: "/decodetrack"

      Get the decode track endpoint.

    • DecodeTracks: "/decodetracks"

      Get the decode tracks endpoint.

    • GetLyrics: "/lyrics"

      Get the lyrics endpoint.

    • LoadLyrics: "/loadlyrics"

      Get the load lyrics endpoint.

      Used in NodelinkLyricsManager, only for nodelink nodes.

    • LoadTracks: "/loadtracks"

      Get the load tracks endpoint.

    • NodeInfo: "/info"

      Get the node info endpoint.

    • CurrentLyrics: function
      • Get the current lyrics endpoint.

        Parameters

        • sessionId: string

          The session id of the node.

        • guildId: string

          The guild id of the player.

        Returns `/sessions/${string}/players/${string}/track/lyrics`

        The endpoint for getting the current lyrics.

    • GetPlayers: function
      • Get the get players endpoint.

        Parameters

        • sessionId: string

          The session id of the node.

        Returns `/sessions/${string}/players`

        The endpoint for getting the players.

    • SubscribeLyrics: function
      • Subscribe to lyrics endpoint.

        Parameters

        • sessionId: string

          The session id of the node.

        • guildId: string

          The guild id of the player.

        Returns `/sessions/${string}/players/${string}/lyrics/subscribe`

        The endpoint for subscribing to lyrics.

    • UpdatePlayer: function
      • Get the updated player endpoint.

        Parameters

        • sessionId: string

          The session id of the node.

        • guildId: string

          The guild id of the player.

        Returns `/sessions/${string}/players/${string}`

        The endpoint for updating the player.

    • UpdateSession: function
      • Get the update session endpoint.

        Parameters

        • sessionId: string

          The session id of the node.

        Returns `/sessions/${string}`

        The endpoint for updating the session.