Caching API supported by Concord.
More...
Caching API supported by Concord.
◆ discord_cache_options
| Enumerator |
|---|
| DISCORD_CACHE_MESSAGES | |
| DISCORD_CACHE_GUILDS | |
◆ discord_cache_enable()
◆ discord_cache_get_channel_message()
Get a message from cache, only if locally available in RAM.
- Note
- When done, discord_unclaim() must be called on the message resource
- Parameters
-
| client | the client initialized with discord_init() |
| channel_id | the channel id the message is in |
| message_id | the id of the message |
- Returns
NULL if not found, or a cache'd message
- Examples
- cache.c.
◆ discord_cache_get_guild()
Get a guild from cache, only if locally available in RAM.
- Note
- When done, discord_unclaim() must be called on the guild resource
- Parameters
-
| client | the client initialized with discord_init() |
| guild_id | the id of the guild |
- Returns
NULL if not found, or a cache'd guild
- Examples
- cache.c.