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

Go to the source code of this file.

Data Structures

struct  discord_audit_log
 
struct  discord_audit_log_entry
 
struct  discord_audit_log_entries
 
struct  discord_optional_audit_entry_info
 
struct  discord_optional_audit_entry_infos
 
struct  discord_audit_log_change
 
struct  discord_audit_log_changes
 
struct  discord_get_guild_audit_log
 

Macros

#define JSMN_STRICT
 
#define JSMN_HEADER
 
#define JSONB_HEADER
 

Enumerations

enum  discord_audit_log_events {
  DISCORD_AUDIT_LOG_GUILD_UPDATE = 1 , DISCORD_AUDIT_LOG_CHANNEL_CREATE = 10 , DISCORD_AUDIT_LOG_CHANNEL_UPDATE = 11 , DISCORD_AUDIT_LOG_CHANNEL_DELETE = 12 ,
  DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_CREATE = 13 , DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_UPDATE = 14 , DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_DELETE = 15 , DISCORD_AUDIT_LOG_MEMBER_KICK = 20 ,
  DISCORD_AUDIT_LOG_MEMBER_PRUNE = 21 , DISCORD_AUDIT_LOG_MEMBER_BAN_ADD = 22 , DISCORD_AUDIT_LOG_MEMBER_BAN_REMOVE = 23 , DISCORD_AUDIT_LOG_MEMBER_UPDATE = 24 ,
  DISCORD_AUDIT_LOG_MEMBER_ROLE_UPDATE = 25 , DISCORD_AUDIT_LOG_MEMBER_MOVE = 26 , DISCORD_AUDIT_LOG_MEMBER_DISCONNECT = 27 , DISCORD_AUDIT_LOG_BOT_ADD = 28 ,
  DISCORD_AUDIT_LOG_ROLE_CREATE = 30 , DISCORD_AUDIT_LOG_ROLE_UPDATE = 31 , DISCORD_AUDIT_LOG_ROLE_DELETE = 32 , DISCORD_AUDIT_LOG_INVITE_CREATE = 40 ,
  DISCORD_AUDIT_LOG_INVITE_UPDATE = 41 , DISCORD_AUDIT_LOG_INVITE_DELETE = 42 , DISCORD_AUDIT_LOG_WEBHOOK_CREATE = 50 , DISCORD_AUDIT_LOG_WEBHOOK_UPDATE = 51 ,
  DISCORD_AUDIT_LOG_WEBHOOK_DELETE = 52 , DISCORD_AUDIT_LOG_EMOJI_CREATE = 60 , DISCORD_AUDIT_LOG_EMOJI_UPDATE = 61 , DISCORD_AUDIT_LOG_EMOJI_DELETE = 62 ,
  DISCORD_AUDIT_LOG_MESSAGE_DELETE = 72 , DISCORD_AUDIT_LOG_MESSAGE_BULK_DELETE = 73 , DISCORD_AUDIT_LOG_MESSAGE_PIN = 74 , DISCORD_AUDIT_LOG_MESSAGE_UNPIN = 75 ,
  DISCORD_AUDIT_LOG_INTEGRATION_CREATE = 80 , DISCORD_AUDIT_LOG_INTEGRATION_UPDATE = 81 , DISCORD_AUDIT_LOG_INTEGRATION_DELETE = 82 , DISCORD_AUDIT_LOG_STAGE_INSTANCE_CREATE = 83 ,
  DISCORD_AUDIT_LOG_STAGE_INSTANCE_UPDATE = 84 , DISCORD_AUDIT_LOG_STAGE_INSTANCE_DELETE = 85 , DISCORD_AUDIT_LOG_STICKER_CREATE = 90 , DISCORD_AUDIT_LOG_STICKER_UPDATE = 91 ,
  DISCORD_AUDIT_LOG_STICKER_DELETE = 92 , DISCORD_AUDIT_LOG_GUILD_SCHEDULED_EVENT_CREATE = 100 , DISCORD_AUDIT_LOG_GUILD_SCHEDULED_EVENT_UPDATE = 101 , DISCORD_AUDIT_LOG_GUILD_SCHEDULED_EVENT_DELETE = 102 ,
  DISCORD_AUDIT_LOG_THREAD_CREATE = 110 , DISCORD_AUDIT_LOG_THREAD_UPDATE = 111 , DISCORD_AUDIT_LOG_THREAD_DELETE = 112 , DISCORD_AUDIT_LOG_APPLICATION_COMMAND_PERMISSION_UPDATE = 121 ,
  DISCORD_AUDIT_LOG_AUTO_MODERATION_RULE_CREATE = 140 , DISCORD_AUDIT_LOG_AUTO_MODERATION_RULE_UPDATE = 141 , DISCORD_AUDIT_LOG_AUTO_MODERATION_RULE_DELETE = 142 , DISCORD_AUDIT_LOG_AUTO_MODERATION_BLOCK_MESSAGE = 143
}
 

Functions

void discord_audit_log_init (struct discord_audit_log *self)
 
void discord_audit_log_cleanup (struct discord_audit_log *self)
 
long discord_audit_log_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_audit_log *self)
 
size_t discord_audit_log_from_json (const char buf[], size_t size, struct discord_audit_log *self)
 
jsonbcode discord_audit_log_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_audit_log *self)
 
size_t discord_audit_log_to_json (char buf[], size_t size, const struct discord_audit_log *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_audit_log_events

Enumerator
DISCORD_AUDIT_LOG_GUILD_UPDATE 
DISCORD_AUDIT_LOG_CHANNEL_CREATE 
DISCORD_AUDIT_LOG_CHANNEL_UPDATE 
DISCORD_AUDIT_LOG_CHANNEL_DELETE 
DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_CREATE 
DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_UPDATE 
DISCORD_AUDIT_LOG_CHANNEL_OVERWRITE_DELETE 
DISCORD_AUDIT_LOG_MEMBER_KICK 
DISCORD_AUDIT_LOG_MEMBER_PRUNE 
DISCORD_AUDIT_LOG_MEMBER_BAN_ADD 
DISCORD_AUDIT_LOG_MEMBER_BAN_REMOVE 
DISCORD_AUDIT_LOG_MEMBER_UPDATE 
DISCORD_AUDIT_LOG_MEMBER_ROLE_UPDATE 
DISCORD_AUDIT_LOG_MEMBER_MOVE 
DISCORD_AUDIT_LOG_MEMBER_DISCONNECT 
DISCORD_AUDIT_LOG_BOT_ADD 
DISCORD_AUDIT_LOG_ROLE_CREATE 
DISCORD_AUDIT_LOG_ROLE_UPDATE 
DISCORD_AUDIT_LOG_ROLE_DELETE 
DISCORD_AUDIT_LOG_INVITE_CREATE 
DISCORD_AUDIT_LOG_INVITE_UPDATE 
DISCORD_AUDIT_LOG_INVITE_DELETE 
DISCORD_AUDIT_LOG_WEBHOOK_CREATE 
DISCORD_AUDIT_LOG_WEBHOOK_UPDATE 
DISCORD_AUDIT_LOG_WEBHOOK_DELETE 
DISCORD_AUDIT_LOG_EMOJI_CREATE 
DISCORD_AUDIT_LOG_EMOJI_UPDATE 
DISCORD_AUDIT_LOG_EMOJI_DELETE 
DISCORD_AUDIT_LOG_MESSAGE_DELETE 
DISCORD_AUDIT_LOG_MESSAGE_BULK_DELETE 
DISCORD_AUDIT_LOG_MESSAGE_PIN 
DISCORD_AUDIT_LOG_MESSAGE_UNPIN 
DISCORD_AUDIT_LOG_INTEGRATION_CREATE 
DISCORD_AUDIT_LOG_INTEGRATION_UPDATE 
DISCORD_AUDIT_LOG_INTEGRATION_DELETE 
DISCORD_AUDIT_LOG_STAGE_INSTANCE_CREATE 
DISCORD_AUDIT_LOG_STAGE_INSTANCE_UPDATE 
DISCORD_AUDIT_LOG_STAGE_INSTANCE_DELETE 
DISCORD_AUDIT_LOG_STICKER_CREATE 
DISCORD_AUDIT_LOG_STICKER_UPDATE 
DISCORD_AUDIT_LOG_STICKER_DELETE 
DISCORD_AUDIT_LOG_GUILD_SCHEDULED_EVENT_CREATE 
DISCORD_AUDIT_LOG_GUILD_SCHEDULED_EVENT_UPDATE 
DISCORD_AUDIT_LOG_GUILD_SCHEDULED_EVENT_DELETE 
DISCORD_AUDIT_LOG_THREAD_CREATE 
DISCORD_AUDIT_LOG_THREAD_UPDATE 
DISCORD_AUDIT_LOG_THREAD_DELETE 
DISCORD_AUDIT_LOG_APPLICATION_COMMAND_PERMISSION_UPDATE 
DISCORD_AUDIT_LOG_AUTO_MODERATION_RULE_CREATE 
DISCORD_AUDIT_LOG_AUTO_MODERATION_RULE_UPDATE 
DISCORD_AUDIT_LOG_AUTO_MODERATION_RULE_DELETE 
DISCORD_AUDIT_LOG_AUTO_MODERATION_BLOCK_MESSAGE 

Function Documentation

◆ discord_audit_log_init()

void discord_audit_log_init ( struct discord_audit_log self)

◆ discord_audit_log_cleanup()

void discord_audit_log_cleanup ( struct discord_audit_log self)

◆ discord_audit_log_from_jsmnf()

long discord_audit_log_from_jsmnf ( jsmnf_pair *  root,
const char *  js,
struct discord_audit_log self 
)

◆ discord_audit_log_from_json()

size_t discord_audit_log_from_json ( const char  buf[],
size_t  size,
struct discord_audit_log self 
)

◆ discord_audit_log_to_jsonb()

jsonbcode discord_audit_log_to_jsonb ( jsonb b,
char  buf[],
size_t  size,
const struct discord_audit_log self 
)

◆ discord_audit_log_to_json()

size_t discord_audit_log_to_json ( char  buf[],
size_t  size,
const struct discord_audit_log self 
)