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

Request's return context. More...

#include <discord-response.h>

Collaboration diagram for discord_ret_guild_preview:
[legend]

Data Fields

void * data
 
void(* cleanup )(struct discord *client, void *data)
 
const void * keep
 
bool high_priority
 
void(* fail )(struct discord *client, struct discord_response *resp)
 
void(* done )(struct discord *client, struct discord_response *resp, const struct discord_guild_preview *ret)
 
struct discord_guild_previewsync
 

Detailed Description

Request's return context.

Field Documentation

◆ data

void* discord_ret_guild_preview::data

user arbitrary data to be passed to done or fail callbacks

◆ cleanup

void(* discord_ret_guild_preview::cleanup) (struct discord *client, void *data)

cleanup method to be called for data, once its no longer being referenced

◆ keep

const void* discord_ret_guild_preview::keep

Concord callback parameter the client wish to keep reference

◆ high_priority

bool discord_ret_guild_preview::high_priority

if true then request will be prioritized over already enqueued requests

◆ fail

void(* discord_ret_guild_preview::fail) (struct discord *client, struct discord_response *resp)

optional callback to be executed on a failed request

◆ done

void(* discord_ret_guild_preview::done) (struct discord *client, struct discord_response *resp, const struct discord_guild_preview *ret)

optional callback to be executed on a successful request

◆ sync

struct discord_guild_preview* discord_ret_guild_preview::sync

if an address is provided, then request will block the thread and perform on-spot. On success the response object will be written to the address, unless enabled with DISCORD_SYNC_FLAG


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