Class Util

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

Constructors

Methods

  • Parameters

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

    Returns number | Record<string, number>

  • Parameters

    • img: string | Buffer

    Returns string

  • Parameters

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

    Returns string

  • Parameters

    • file: Buffer
    • len: number = 4

    Returns string

  • Internal

    Parameters

    • poll: Poll
    • answerID: number
    • count: number
    • Optional users: string[]

    Returns void

  • Internal

    Parameters

    • poll: Poll
    • answerID: number
    • count: number
    • Optional user: string

    Returns void