Class Generate

Represents a class for generating avatars.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

client: Client

The client used to make requests.

Methods

  • Generates an avatar with the specified parameters.

    Parameters

    • text: string = "Niz"

      The text to be displayed on the avatar.

    • Optional color: string

      The background color of the avatar.

    • Optional size: number

      The size of the avatar.

    • Optional font: GayFont

      The font settings for the text on the avatar.

    Returns Promise<any>

    • The generated avatar.
  • Makes an HTTP request to the specified endpoint.

    Parameters

    • endpoint: string

      The endpoint to make the request to.

    • Optional data: any

      The data to send with the request (optional).

    Returns Promise<any>

    A Promise that resolves to the response data.

    Throws

    If the request fails.

Generated using TypeDoc