Skip to content

Inventory

Type: Bot

The number of available slots in the player’s inventory.

Type: number

Gets items in the Inventory of the current player.

Type: InventoryItem[]

The total slots available in the player’s inventory.

Type: number

The number of used slots in the player’s inventory.

Type: number

Whether an item meets the quantity in the inventory.

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

Returns: boolean

Equips an item from the inventory.

ParameterTypeDescription
itemKeystring | numberThe name or ID of the item.

Returns: Promise<void>

Resolves for an Item in the Inventory.

ParameterTypeDescription
keystring | numberThe name or ID of the item.

Returns: InventoryItem | null