RBWCM-SDK Documentation - v1.1.0
    Preparing search index...

    Class RanksManager

    Manages API operations related to Ranks within Ranked Systems. Handles fetching, creating, updating, deleting ranks, and uploading rank icons.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    client: RankedClient

    Methods

    • Deletes a rank from the system.

      Parameters

      • rankId: string

        The ID of the rank to delete.

      Returns Promise<{ success: boolean }>

      A promise that resolves when the deletion is successful.

    • Uploads an image icon for a specific rank using multipart/form-data.

      Parameters

      • rankId: string

        The ID of the rank.

      • fileBuffer: Buffer

        The binary buffer containing the image data.

      • filename: string

        The filename with extension (e.g., 'icon.png').

      Returns Promise<{ success: boolean; url: string }>

      A promise resolving to an object containing the success status and the new URL.