deleteInventory

From SmartBots Developers Docs
Jump to: navigation, search

Commands bot to delete an inventory item.

Bot.deleteInventory(uuid);

Reference

This command accepts the following parameters:

Variable Required Description
uuid 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:
success bool true if command completed successfully
error 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);
  }
});