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

Generated code. More...

#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>
#include "carray.h"
#include "cog-utils.h"
#include "types.h"
#include "jsmn.h"
#include "jsmn-find.h"
#include "json-build.h"
Include dependency graph for sticker.h:

Go to the source code of this file.

Data Structures

struct  discord_sticker
 
struct  discord_stickers
 
struct  discord_sticker_item
 
struct  discord_sticker_items
 
struct  discord_sticker_pack
 
struct  discord_sticker_packs
 
struct  discord_list_nitro_sticker_packs
 
struct  discord_create_guild_sticker
 
struct  discord_modify_guild_sticker
 
struct  discord_delete_guild_sticker
 

Macros

#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Enumerations

enum  discord_sticker_types { DISCORD_STICKER_STANDARD = 1 , DISCORD_STICKER_GUILD = 2 }
 
enum  discord_sticker_format_types { DISCORD_STICKER_FORMAT_PNG = 1 , DISCORD_STICKER_FORMAT_APNG = 2 , DISCORD_STICKER_FORMAT_LOTTIE = 3 }
 

Functions

void discord_sticker_init (struct discord_sticker *self)
 
void discord_sticker_cleanup (struct discord_sticker *self)
 
void discord_stickers_cleanup (struct discord_stickers *self)
 
void discord_sticker_packs_cleanup (struct discord_sticker_packs *self)
 
void discord_list_nitro_sticker_packs_init (struct discord_list_nitro_sticker_packs *self)
 
void discord_list_nitro_sticker_packs_cleanup (struct discord_list_nitro_sticker_packs *self)
 
void discord_modify_guild_sticker_init (struct discord_modify_guild_sticker *self)
 
void discord_modify_guild_sticker_cleanup (struct discord_modify_guild_sticker *self)
 
long discord_sticker_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_sticker *self)
 
size_t discord_sticker_from_json (const char buf[], size_t size, struct discord_sticker *self)
 
long discord_stickers_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_stickers *self)
 
size_t discord_stickers_from_json (const char buf[], size_t size, struct discord_stickers *self)
 
long discord_sticker_packs_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_sticker_packs *self)
 
size_t discord_sticker_packs_from_json (const char buf[], size_t size, struct discord_sticker_packs *self)
 
long discord_list_nitro_sticker_packs_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_list_nitro_sticker_packs *self)
 
size_t discord_list_nitro_sticker_packs_from_json (const char buf[], size_t size, struct discord_list_nitro_sticker_packs *self)
 
long discord_modify_guild_sticker_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_modify_guild_sticker *self)
 
size_t discord_modify_guild_sticker_from_json (const char buf[], size_t size, struct discord_modify_guild_sticker *self)
 
jsonbcode discord_sticker_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_sticker *self)
 
size_t discord_sticker_to_json (char buf[], size_t size, const struct discord_sticker *self)
 
jsonbcode discord_stickers_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_stickers *self)
 
size_t discord_stickers_to_json (char buf[], size_t size, const struct discord_stickers *self)
 
jsonbcode discord_sticker_packs_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_sticker_packs *self)
 
size_t discord_sticker_packs_to_json (char buf[], size_t size, const struct discord_sticker_packs *self)
 
jsonbcode discord_modify_guild_sticker_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_modify_guild_sticker *self)
 
size_t discord_modify_guild_sticker_to_json (char buf[], size_t size, const struct discord_modify_guild_sticker *self)
 

Detailed Description

Generated code.

Author
Cogmasters

Macro Definition Documentation

◆ JSMN_STRICT

#define JSMN_STRICT

◆ JSMN_HEADER

#define JSMN_HEADER

◆ JSONB_HEADER

#define JSONB_HEADER

Enumeration Type Documentation

◆ discord_sticker_types

Enumerator
DISCORD_STICKER_STANDARD 

an official sticker in a pack, part of Nitro or in a removed purchasable pack

DISCORD_STICKER_GUILD 

a sticker uploaded to a Boosted guild for the guild's members

◆ discord_sticker_format_types

Enumerator
DISCORD_STICKER_FORMAT_PNG 
DISCORD_STICKER_FORMAT_APNG 
DISCORD_STICKER_FORMAT_LOTTIE 

Function Documentation

◆ discord_sticker_init()

void discord_sticker_init ( struct discord_sticker self)

◆ discord_sticker_cleanup()

void discord_sticker_cleanup ( struct discord_sticker self)

◆ discord_stickers_cleanup()

void discord_stickers_cleanup ( struct discord_stickers self)

◆ discord_sticker_packs_cleanup()

void discord_sticker_packs_cleanup ( struct discord_sticker_packs self)

◆ discord_list_nitro_sticker_packs_init()

void discord_list_nitro_sticker_packs_init ( struct discord_list_nitro_sticker_packs self)

◆ discord_list_nitro_sticker_packs_cleanup()

void discord_list_nitro_sticker_packs_cleanup ( struct discord_list_nitro_sticker_packs self)

◆ discord_modify_guild_sticker_init()

void discord_modify_guild_sticker_init ( struct discord_modify_guild_sticker self)

◆ discord_modify_guild_sticker_cleanup()

void discord_modify_guild_sticker_cleanup ( struct discord_modify_guild_sticker self)

◆ discord_sticker_from_jsmnf()

long discord_sticker_from_jsmnf ( jsmnf_pair root,
const char *  js,
struct discord_sticker self 
)

◆ discord_sticker_from_json()

size_t discord_sticker_from_json ( const char  buf[],
size_t  size,
struct discord_sticker self 
)

◆ discord_stickers_from_jsmnf()

long discord_stickers_from_jsmnf ( jsmnf_pair root,
const char *  js,
struct discord_stickers self 
)

◆ discord_stickers_from_json()

size_t discord_stickers_from_json ( const char  buf[],
size_t  size,
struct discord_stickers self 
)

◆ discord_sticker_packs_from_jsmnf()

long discord_sticker_packs_from_jsmnf ( jsmnf_pair root,
const char *  js,
struct discord_sticker_packs self 
)

◆ discord_sticker_packs_from_json()

size_t discord_sticker_packs_from_json ( const char  buf[],
size_t  size,
struct discord_sticker_packs self 
)

◆ discord_list_nitro_sticker_packs_from_jsmnf()

long discord_list_nitro_sticker_packs_from_jsmnf ( jsmnf_pair root,
const char *  js,
struct discord_list_nitro_sticker_packs self 
)

◆ discord_list_nitro_sticker_packs_from_json()

size_t discord_list_nitro_sticker_packs_from_json ( const char  buf[],
size_t  size,
struct discord_list_nitro_sticker_packs self 
)

◆ discord_modify_guild_sticker_from_jsmnf()

long discord_modify_guild_sticker_from_jsmnf ( jsmnf_pair root,
const char *  js,
struct discord_modify_guild_sticker self 
)

◆ discord_modify_guild_sticker_from_json()

size_t discord_modify_guild_sticker_from_json ( const char  buf[],
size_t  size,
struct discord_modify_guild_sticker self 
)

◆ discord_sticker_to_jsonb()

jsonbcode discord_sticker_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_sticker self 
)

◆ discord_sticker_to_json()

size_t discord_sticker_to_json ( char  buf[],
size_t  size,
const struct discord_sticker self 
)

◆ discord_stickers_to_jsonb()

jsonbcode discord_stickers_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_stickers self 
)

◆ discord_stickers_to_json()

size_t discord_stickers_to_json ( char  buf[],
size_t  size,
const struct discord_stickers self 
)

◆ discord_sticker_packs_to_jsonb()

jsonbcode discord_sticker_packs_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_sticker_packs self 
)

◆ discord_sticker_packs_to_json()

size_t discord_sticker_packs_to_json ( char  buf[],
size_t  size,
const struct discord_sticker_packs self 
)

◆ discord_modify_guild_sticker_to_jsonb()

jsonbcode discord_modify_guild_sticker_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_modify_guild_sticker self 
)

◆ discord_modify_guild_sticker_to_json()

size_t discord_modify_guild_sticker_to_json ( char  buf[],
size_t  size,
const struct discord_modify_guild_sticker self 
)