Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <webhook.h>
Data Fields | |
bool | wait |
u64snowflake | thread_id |
char * | content |
char * | username |
char * | avatar_url |
bool | tts |
struct discord_embeds * | embeds |
struct discord_allowed_mention * | allowed_mentions |
struct discord_components * | components |
struct discord_attachments * | attachments |
u64bitmask | flags |
Public methods
discord_execute_webhook_from_json(const char json[], size_t len, struct discord_execute_webhook *this)
discord_execute_webhook_from_jsmnf(jsmnf *root, const char json[], struct discord_execute_webhook *this)
bool discord_execute_webhook::wait |
waits for server confirmation of message send before response, and returns the created message body (defaults to false
; when false
a message that is not saved does not return an error)
u64snowflake discord_execute_webhook::thread_id |
send a message to the specified thread within a webhook's channel; the thread will automatically be unarchived
char* discord_execute_webhook::content |
the message contents (up to 2000 characters)
char* discord_execute_webhook::username |
override the default username of the webhook
char* discord_execute_webhook::avatar_url |
override the default avatar of the webhook
bool discord_execute_webhook::tts |
true if this is a TTS message
struct discord_embeds* discord_execute_webhook::embeds |
embedded rich
content
struct discord_allowed_mention* discord_execute_webhook::allowed_mentions |
allowed mentions for the message
struct discord_components* discord_execute_webhook::components |
the components to include with the message
struct discord_attachments* discord_execute_webhook::attachments |
attachment objects with filename and description
u64bitmask discord_execute_webhook::flags |
Message flags combined as a bitfield (only SUPPRESS_EMBEDS
can be set)