API¶
- class cookie.CookieAPI(api_key=None, httpx_client=None)¶
A class to interact with the Cookie API.
- Parameters:
- get_guild_stats(guild_id, days=14)¶
Get the history of the guild member count for the provided number of days.
- Parameters:
- Raises:
NoGuildAccess: – You don’t have access to that guild.
- Return type:
- get_user_stats(user_id)¶
Get the user’s level stats.
- get_member_stats(user_id, guild_id)¶
Get the member’s level stats.
- Parameters:
- Raises:
NotFound: – The user was not found.
- Return type:
- get_member_activity(user_id, guild_id, days=14)¶
Get the member’s activity for the provided number of days.
- Parameters:
- Raises:
NotFound: – The user was not found.
- Return type:
- get_guild_activity(guild_id, days=14)¶
Get the guild’s activity for the provided number of days.
- Parameters:
- Raises:
NoGuildAccess: – You don’t have access to that guild.
- Return type:
- get_guild_image(guild_id, days=14)¶
Get the guild’s activity image for the provided number of days.