Concord - C Discord API library
A Discord API wrapper library written in C
webhook.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 webhook.h:

Go to the source code of this file.

Data Structures

struct  discord_webhook
 
struct  discord_webhooks
 
struct  discord_create_webhook
 
struct  discord_modify_webhook
 
struct  discord_delete_webhook
 
struct  discord_modify_webhook_with_token
 
struct  discord_execute_webhook
 
struct  discord_get_webhook_message
 
struct  discord_edit_webhook_message
 
struct  discord_delete_webhook_message
 

Macros

#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Enumerations

enum  discord_webhook_types { DISCORD_WEBHOOK_INCOMING = 1 , DISCORD_WEBHOOK_CHANNEL_FOLLOWER = 2 , DISCORD_WEBHOOK_APPLICATION = 3 }
 

Functions

void discord_webhook_init (struct discord_webhook *self)
 
void discord_webhook_cleanup (struct discord_webhook *self)
 
void discord_webhooks_cleanup (struct discord_webhooks *self)
 
void discord_create_webhook_init (struct discord_create_webhook *self)
 
void discord_create_webhook_cleanup (struct discord_create_webhook *self)
 
void discord_modify_webhook_init (struct discord_modify_webhook *self)
 
void discord_modify_webhook_cleanup (struct discord_modify_webhook *self)
 
void discord_modify_webhook_with_token_init (struct discord_modify_webhook_with_token *self)
 
void discord_modify_webhook_with_token_cleanup (struct discord_modify_webhook_with_token *self)
 
void discord_execute_webhook_init (struct discord_execute_webhook *self)
 
void discord_execute_webhook_cleanup (struct discord_execute_webhook *self)
 
void discord_edit_webhook_message_init (struct discord_edit_webhook_message *self)
 
void discord_edit_webhook_message_cleanup (struct discord_edit_webhook_message *self)
 
long discord_webhook_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_webhook *self)
 
size_t discord_webhook_from_json (const char buf[], size_t size, struct discord_webhook *self)
 
long discord_webhooks_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_webhooks *self)
 
size_t discord_webhooks_from_json (const char buf[], size_t size, struct discord_webhooks *self)
 
long discord_create_webhook_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_create_webhook *self)
 
size_t discord_create_webhook_from_json (const char buf[], size_t size, struct discord_create_webhook *self)
 
long discord_modify_webhook_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_modify_webhook *self)
 
size_t discord_modify_webhook_from_json (const char buf[], size_t size, struct discord_modify_webhook *self)
 
long discord_modify_webhook_with_token_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_modify_webhook_with_token *self)
 
size_t discord_modify_webhook_with_token_from_json (const char buf[], size_t size, struct discord_modify_webhook_with_token *self)
 
long discord_execute_webhook_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_execute_webhook *self)
 
size_t discord_execute_webhook_from_json (const char buf[], size_t size, struct discord_execute_webhook *self)
 
long discord_edit_webhook_message_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_edit_webhook_message *self)
 
size_t discord_edit_webhook_message_from_json (const char buf[], size_t size, struct discord_edit_webhook_message *self)
 
jsonbcode discord_webhook_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_webhook *self)
 
size_t discord_webhook_to_json (char buf[], size_t size, const struct discord_webhook *self)
 
jsonbcode discord_webhooks_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_webhooks *self)
 
size_t discord_webhooks_to_json (char buf[], size_t size, const struct discord_webhooks *self)
 
jsonbcode discord_create_webhook_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_create_webhook *self)
 
size_t discord_create_webhook_to_json (char buf[], size_t size, const struct discord_create_webhook *self)
 
jsonbcode discord_modify_webhook_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_modify_webhook *self)
 
size_t discord_modify_webhook_to_json (char buf[], size_t size, const struct discord_modify_webhook *self)
 
jsonbcode discord_modify_webhook_with_token_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_modify_webhook_with_token *self)
 
size_t discord_modify_webhook_with_token_to_json (char buf[], size_t size, const struct discord_modify_webhook_with_token *self)
 
jsonbcode discord_execute_webhook_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_execute_webhook *self)
 
size_t discord_execute_webhook_to_json (char buf[], size_t size, const struct discord_execute_webhook *self)
 
jsonbcode discord_edit_webhook_message_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_edit_webhook_message *self)
 
size_t discord_edit_webhook_message_to_json (char buf[], size_t size, const struct discord_edit_webhook_message *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_webhook_types

Enumerator
DISCORD_WEBHOOK_INCOMING 

Incoming Webhooks can post messages to channels with a generated token

DISCORD_WEBHOOK_CHANNEL_FOLLOWER 

Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels

DISCORD_WEBHOOK_APPLICATION 

Application webhooks are webhooks used with Interactions

Function Documentation

◆ discord_webhook_init()

void discord_webhook_init ( struct discord_webhook self)

◆ discord_webhook_cleanup()

void discord_webhook_cleanup ( struct discord_webhook self)

◆ discord_webhooks_cleanup()

void discord_webhooks_cleanup ( struct discord_webhooks self)

◆ discord_create_webhook_init()

void discord_create_webhook_init ( struct discord_create_webhook self)

◆ discord_create_webhook_cleanup()

void discord_create_webhook_cleanup ( struct discord_create_webhook self)

◆ discord_modify_webhook_init()

void discord_modify_webhook_init ( struct discord_modify_webhook self)

◆ discord_modify_webhook_cleanup()

void discord_modify_webhook_cleanup ( struct discord_modify_webhook self)

◆ discord_modify_webhook_with_token_init()

void discord_modify_webhook_with_token_init ( struct discord_modify_webhook_with_token self)

◆ discord_modify_webhook_with_token_cleanup()

void discord_modify_webhook_with_token_cleanup ( struct discord_modify_webhook_with_token self)

◆ discord_execute_webhook_init()

void discord_execute_webhook_init ( struct discord_execute_webhook self)

◆ discord_execute_webhook_cleanup()

void discord_execute_webhook_cleanup ( struct discord_execute_webhook self)

◆ discord_edit_webhook_message_init()

void discord_edit_webhook_message_init ( struct discord_edit_webhook_message self)

◆ discord_edit_webhook_message_cleanup()

void discord_edit_webhook_message_cleanup ( struct discord_edit_webhook_message self)

◆ discord_webhook_from_jsmnf()

long discord_webhook_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_webhook self 
)

◆ discord_webhook_from_json()

size_t discord_webhook_from_json ( const char  buf[],
size_t  size,
struct discord_webhook self 
)

◆ discord_webhooks_from_jsmnf()

long discord_webhooks_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_webhooks self 
)

◆ discord_webhooks_from_json()

size_t discord_webhooks_from_json ( const char  buf[],
size_t  size,
struct discord_webhooks self 
)

◆ discord_create_webhook_from_jsmnf()

long discord_create_webhook_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_create_webhook self 
)

◆ discord_create_webhook_from_json()

size_t discord_create_webhook_from_json ( const char  buf[],
size_t  size,
struct discord_create_webhook self 
)

◆ discord_modify_webhook_from_jsmnf()

long discord_modify_webhook_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_modify_webhook self 
)

◆ discord_modify_webhook_from_json()

size_t discord_modify_webhook_from_json ( const char  buf[],
size_t  size,
struct discord_modify_webhook self 
)

◆ discord_modify_webhook_with_token_from_jsmnf()

long discord_modify_webhook_with_token_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_modify_webhook_with_token self 
)

◆ discord_modify_webhook_with_token_from_json()

size_t discord_modify_webhook_with_token_from_json ( const char  buf[],
size_t  size,
struct discord_modify_webhook_with_token self 
)

◆ discord_execute_webhook_from_jsmnf()

long discord_execute_webhook_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_execute_webhook self 
)

◆ discord_execute_webhook_from_json()

size_t discord_execute_webhook_from_json ( const char  buf[],
size_t  size,
struct discord_execute_webhook self 
)

◆ discord_edit_webhook_message_from_jsmnf()

long discord_edit_webhook_message_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_edit_webhook_message self 
)

◆ discord_edit_webhook_message_from_json()

size_t discord_edit_webhook_message_from_json ( const char  buf[],
size_t  size,
struct discord_edit_webhook_message self 
)

◆ discord_webhook_to_jsonb()

jsonbcode discord_webhook_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_webhook self 
)

◆ discord_webhook_to_json()

size_t discord_webhook_to_json ( char  buf[],
size_t  size,
const struct discord_webhook self 
)

◆ discord_webhooks_to_jsonb()

jsonbcode discord_webhooks_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_webhooks self 
)

◆ discord_webhooks_to_json()

size_t discord_webhooks_to_json ( char  buf[],
size_t  size,
const struct discord_webhooks self 
)

◆ discord_create_webhook_to_jsonb()

jsonbcode discord_create_webhook_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_create_webhook self 
)

◆ discord_create_webhook_to_json()

size_t discord_create_webhook_to_json ( char  buf[],
size_t  size,
const struct discord_create_webhook self 
)

◆ discord_modify_webhook_to_jsonb()

jsonbcode discord_modify_webhook_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_modify_webhook self 
)

◆ discord_modify_webhook_to_json()

size_t discord_modify_webhook_to_json ( char  buf[],
size_t  size,
const struct discord_modify_webhook self 
)

◆ discord_modify_webhook_with_token_to_jsonb()

jsonbcode discord_modify_webhook_with_token_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_modify_webhook_with_token self 
)

◆ discord_modify_webhook_with_token_to_json()

size_t discord_modify_webhook_with_token_to_json ( char  buf[],
size_t  size,
const struct discord_modify_webhook_with_token self 
)

◆ discord_execute_webhook_to_jsonb()

jsonbcode discord_execute_webhook_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_execute_webhook self 
)

◆ discord_execute_webhook_to_json()

size_t discord_execute_webhook_to_json ( char  buf[],
size_t  size,
const struct discord_execute_webhook self 
)

◆ discord_edit_webhook_message_to_jsonb()

jsonbcode discord_edit_webhook_message_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_edit_webhook_message self 
)

◆ discord_edit_webhook_message_to_json()

size_t discord_edit_webhook_message_to_json ( char  buf[],
size_t  size,
const struct discord_edit_webhook_message self 
)