# CategoryManager
Manage API categories methods and holds their cache
# Constructor
new CategoryManager(client);
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
client | Client | The client managing this | No |
# Properties
# cache
The group of cached category items mapped by their tokens
- Type: Group <CategoryToken, Category>
# client
The client managing this
- Type: Client
# Methods
# fetch(query)
Get all data about a category
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
query | CategoryToken | The category token | No |
# resolve(query)
Resolves a category data to a category object
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
query | CategoryResolvable | The title, name or token of category | No |
- Return: Category