Class Blook

Constructors

Properties

art: string
bazaarMaximumListingPrice?: number
bazaarMinimumListingPrice?: number
chance: number
client: Client
image: string
name: string
onlyOnDay?: Day
pack: Pack
price: number
rarity: Rarity

Methods

  • _setPack - DO NOT USE THIS METHOD!!!

    Parameters

    Returns Promise<void>

  • canListAt - Check if the blook can be listed at a specific price

    Parameters

    • price: number

      The price to check

    Returns boolean

  • getArtUrl - Get the full URL of the blook art.

    Returns string

  • getBlookEmoji - Get the emoji for the blook.

    const blook = client.dataManager.getBlook("zastix");
    console.log(blook.getBlookEmoji()); // -> [zastix]

    @returns {String}

    Returns string

  • getImageUrl - Get the full URL of the blook image.

    Returns string

  • getQuantity - Get the quantity you have of this blook

    Parameters

    • force: boolean = false

      Whether to force refetch the quanity from the API

    Returns Promise<number>

  • isDay - Check if the blook is only available on a specific day

    Parameters

    • day: Day = ...

      The day to check, defaults to the current day.

    Returns boolean

  • sell - Sell an amount of this blook

    Parameters

    • quantity: number

      The quantity of blooks to sell

    • force: boolean = false

      Whether to force refetch the quanity from the API

    Returns Promise<void>