Skip to content

Bank

Type: Bot

The number of bank slots available.

Type: number

The list of items in the bank.

Type: BankItem[]

The number of bank slots.

Type: number

The number of bank slots currently in use.

Type: number

Whether an item meets the quantity in the bank.

ParameterTypeOptionalDefaultDescription
keystring | numberThe name or ID of the item.
quantitynumber1The quantity of the item.

Returns: boolean

Puts an item into the bank.

ParameterTypeDescription
keystring | numberThe name or ID of the item.

Returns: Promise<void>

Puts multiple items into the bank.

ParameterTypeDescription
items(string | number)[]The list of items to deposit.

Returns: Promise<void>

Gets an item from the Bank.

ParameterTypeDescription
keystring | numberThe name or ID of the item.

Returns: BankItem | null

Whether the bank ui is open.

Returns: boolean

Opens the bank ui, and loads all items if needed.

ParameterTypeOptionalDefaultDescription
forcebooleanfalseWhether to force open the bank ui, regardless of whether it’s open.
loadItemsbooleanfalseWhether to load all items in the bank, regardless of whether they’ve been loaded.

Returns: Promise<void>

Swaps an item from the bank with an item from the inventory.

ParameterTypeDescription
bankItemstring | numberThe name or ID of the item from the Bank.
inventoryItemstring | numberThe name or ID of the item from the Inventory.

Returns: Promise<void>

Swaps multiple items between the bank and inventory.

ParameterTypeDescription
items[string | number, string | number][]A list of item pairs to swap.

Returns: Promise<void>

Takes an item out of the bank.

ParameterTypeDescription
keystring | numberThe name or ID of the item.

Returns: Promise<void>

ParameterTypeDescription
items(string | number)[]

Returns: Promise<void>