TempInventory
Properties
Section titled “Properties”Type: Bot
items Getter
Section titled “items ”A list of items in the temp inventory.
Type: TempInventoryItem[]
Methods
Section titled “Methods”contains
Section titled “contains”Whether an item meets the quantity in the temp inventory.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| itemKey | string | number | The name or ID of the item. | ||
| quantity | number | ✓ | 1 | The quantity of the item. |
Returns: boolean
Gets an item from the temp inventory.
| Parameter | Type | Description |
|---|---|---|
| itemKey | string | number | The name or ID of the item. |
Returns: TempInventoryItem | null