deleteInventory
Commands bot to delete an inventory item.
Bot.deleteInventory(uuid);Input
Variable | Required | Description |
|---|---|---|
| yes | The inventory UUID of the item. Use the Personal Bot Control Panel to get this UUID. |
Output
Function returns a Promise with the following data:
Variable | Type | Description |
|---|---|---|
| bool | true if command completed successfully |
| string | error string if command has failed |
Examples
Bot.deleteInventory(uuid)
.then(function(result) {
if(result.success) {
console.log("The inventory item was deleted.");
} else {
console.log("Error executing deleteInventory: " + result.error);
}
});