Concord - C Discord API library
A Discord API wrapper library written in C
discord_cache Struct Reference

The Discord Cache control handler. More...

#include <discord-internal.h>

Data Fields

struct _discord_cache_data * data
 
void(* cleanup )(struct discord *client)
 
void(* on_shard_disconnected )(struct discord *client, const struct discord_identify *ident, bool resumable)
 
void(* on_shard_resumed )(struct discord *client, const struct discord_identify *ident)
 
void(* on_shard_reconnected )(struct discord *client, const struct discord_identify *ident)
 

Detailed Description

The Discord Cache control handler.

Field Documentation

◆ data

struct _discord_cache_data* discord_cache::data

◆ cleanup

void(* discord_cache::cleanup) (struct discord *client)

◆ on_shard_disconnected

void(* discord_cache::on_shard_disconnected) (struct discord *client, const struct discord_identify *ident, bool resumable)

gateway should call this when a shard has lost connection

◆ on_shard_resumed

void(* discord_cache::on_shard_resumed) (struct discord *client, const struct discord_identify *ident)

gateway should call this when a shard has resumed

◆ on_shard_reconnected

void(* discord_cache::on_shard_reconnected) (struct discord *client, const struct discord_identify *ident)

gateway should call this when a shard has reconnected


The documentation for this struct was generated from the following file: