Class Util

A general set of utilities. These are intentionally poorly documented, as they serve almost no usefulness to outside developers.

Hierarchy

  • Util

Constructors

  • Parameters

    Returns Util

Properties

#private: any
BASE64URL_REGEX: RegExp

Methods

  • Parameters

    • Optional values: number | Record<string, number>
    • Optional defaultValue: number

    Returns number | Record<string, number>

  • Type Parameters

    Parameters

    • component: T

    Returns ToComponentFromRaw<T>

  • Type Parameters

    Parameters

    • component: T

    Returns ToRawFromComponent<T>

  • Parameters

    • img: string | Buffer

    Returns string

  • Parameters

    Returns Sticker

  • Parameters

    Returns Embed[]

  • Parameters

    • url: string
    • Optional format: "jpg" | "jpeg" | "png" | "webp" | "gif"
    • Optional size: number

    Returns string

  • Parameters

    • file: Buffer
    • Optional len: number

    Returns string

  • Type Parameters

    Parameters

    Returns T

  • Parameters

    Returns Member

  • Type Parameters

    Parameters

    Returns T

  • Parameters

    Returns Embed

  • Parameters

    Returns Embed[]

Generated using TypeDoc