ItemEndpoint#
- class corkus.endpoints.ItemEndpoint#
- async get_all(timeout=None)#
List all available items.
Note
This endpoint sends a lot of data. That means this function will take noticeably longer to execute than the other.
- async search_by_type(type, timeout=None)#
Search for the items using their type (
Item.type
).Warning
This function does not accept crafted items:
ItemType.SCROLL
,ItemType.POTION
andItemType.FOOD
. Providing them will raisecorkus.errors.InvalidInputError