Concord - C Discord API library
A Discord API wrapper library written in C
discord-cache.h File Reference

Caching of Discord resources. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  discord_cache_options { DISCORD_CACHE_MESSAGES = 1 << 0 , DISCORD_CACHE_GUILDS = 1 << 1 }
 

Functions

void discord_cache_enable (struct discord *client, enum discord_cache_options options)
 
const struct discord_messagediscord_cache_get_channel_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id)
 Get a message from cache, only if locally available in RAM. More...
 
const struct discord_guilddiscord_cache_get_guild (struct discord *client, u64snowflake guild_id)
 Get a guild from cache, only if locally available in RAM. More...
 

Detailed Description

Caching of Discord resources.

Author
Cogmasters