Create a new TowerStats client.
Your TowerStats API key.
OptionalcacheConfig:
Partial<CacheConfig>
Cache config for this client.
The API routes to use. Defaults to the official TowerStats API routes.
Check a user's badges.
The Roblox user ID.
An array of badge IDs to check if the user owns them.
An array of checked badge objects specifying whether the user owns that badge or not. (If they do, it includes the date of which they earned the badge.)
Check which badges a user owns for a specific universe. NOTE: This method is not cached due to the badge list being unknown.
The Roblox user ID.
The Roblox universe ID.
An array of owned badges. Note that it does NOT include unowned badges.
Get the TowerStats API key provided to the client.
The API key.
Get a user's followers list.
The Roblox user ID.
An array of Roblox user IDs.
Get a user's following list.
The Roblox user ID.
An array of Roblox user IDs.
Swap the current API key with a different one.
TowerStats API client.