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

The Discord configuration handler. More...

#include <discord.h>

Data Fields

char * token
 
char * base_url
 
struct {
   enum logmod_levels   level
 
   bool   quiet
 
   bool   color
 
   bool   overwrite
 
   FILE *   trace
 
   FILE *   http
 
   FILE *   ws
 
   struct {
      size_t   size
 
      char **   ids
 
   }   disable
 
log
 

Detailed Description

The Discord configuration handler.

This struct is used to store the Discord client configuration

Field Documentation

◆ token

char* discord_config::token

the bot token

◆ base_url

char* discord_config::base_url

optional override for the REST API base URL (e.g. "http://127.0.0.1:8080" for a local test server)

Note
when NULL (the default) DISCORD_API_BASE_URL is used
only read during client initialization and copied by the User-Agent layer; the client does not take ownership and will never free this pointer

◆ level

enum logmod_levels discord_config::level

minimum logging level

◆ quiet

bool discord_config::quiet

silence terminal logging

◆ color

bool discord_config::color

enable color to terminal logging

◆ overwrite

bool discord_config::overwrite

overwrite existing files

◆ trace

FILE* discord_config::trace

◆ http

FILE* discord_config::http

◆ ws

FILE* discord_config::ws

◆ size

size_t discord_config::size

◆ ids

char** discord_config::ids

◆ 

struct { ... } discord_config::disable

list of 'id' that should be ignored

◆ 

struct { ... } discord_config::log

logging directives


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