Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <channel.h>
Data Fields | |
char * | content |
bool | tts |
struct discord_embeds * | embeds |
struct discord_allowed_mention * | allowed_mentions |
struct discord_message_reference * | message_reference |
struct discord_components * | components |
struct snowflakes * | sticker_ids |
struct discord_attachments * | attachments |
u64bitmask | flags |
Public methods
discord_create_message_from_json(const char json[], size_t len, struct discord_create_message *this)
discord_create_message_from_jsmnf(jsmnf *root, const char json[], struct discord_create_message *this)
char* discord_create_message::content |
the message contents (up to 2000 characters)
bool discord_create_message::tts |
true if this is a TTS message
struct discord_embeds* discord_create_message::embeds |
embedded rich
content (up to 6000 characters)
struct discord_allowed_mention* discord_create_message::allowed_mentions |
allowed mentions for the message
struct discord_message_reference* discord_create_message::message_reference |
include to make your message a reply
struct discord_components* discord_create_message::components |
the components to include with the message
struct snowflakes* discord_create_message::sticker_ids |
IDs of up to 3 stickers in the server to send in the message
struct discord_attachments* discord_create_message::attachments |
attachment objects with filename and description
u64bitmask discord_create_message::flags |
Message flags combined as a bitfield (only SUPPRESS_EMBEDS
can be set)