Concord - C Discord API library
A Discord API wrapper library written in C
discord-cache.h
Go to the documentation of this file.
1
7#ifndef DISCORD_CACHE_H
8#define DISCORD_CACHE_H
9
18};
19
20void discord_cache_enable(struct discord *client,
21 enum discord_cache_options options);
22
33 struct discord *client, u64snowflake channel_id, u64snowflake message_id);
34
43const struct discord_guild *discord_cache_get_guild(struct discord *client,
44 u64snowflake guild_id);
45
51#endif /* DISCORD_CACHE_H */
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
const struct discord_message * discord_cache_get_channel_message(struct discord *client, u64snowflake channel_id, u64snowflake message_id)
Get a message from cache, only if locally available in RAM.
void discord_cache_enable(struct discord *client, enum discord_cache_options options)
discord_cache_options
Definition: discord-cache.h:15
const struct discord_guild * discord_cache_get_guild(struct discord *client, u64snowflake guild_id)
Get a guild from cache, only if locally available in RAM.
@ DISCORD_CACHE_GUILDS
Definition: discord-cache.h:17
@ DISCORD_CACHE_MESSAGES
Definition: discord-cache.h:16
Definition: guild.h:88
Definition: channel.h:195
u64snowflake channel_id
Definition: channel.h:199
The Discord client handler.
Definition: discord-internal.h:1190