IsConsumableItem

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak Globe.png  Townlong-Yak BAD.png  Blizz.gif  ProfIcons engineering.png C_Item.IsConsumableItem 12.0.0 (63854)11.2.7 (63853)5.5.2 (63832)1.15.8 (63829) + 10.2.6 / 4.4.0 / 1.15.2
AllowedWhenUntainted
GitHub Octocat.png  Townlong-Yak Globe.png  Wowprogramming.png IsConsumableItem + 2.0.1 / 1.13.2

World of Warcraft API

Returns whether an item is consumed when used.

isConsumable = IsConsumableItem(itemID or itemLink or itemName)

Arguments

item
Mixed - An item ID (number), item link or item name (string) to query

Returns

isConsumable
boolean - 1 if the item is consumed when used, nil otherwise