Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <webhook.h>
Data Fields | |
u64snowflake | id |
enum discord_webhook_types | type |
u64snowflake | guild_id |
u64snowflake | channel_id |
struct discord_user * | user |
char * | name |
char * | token |
u64snowflake | application_id |
struct discord_channel * | source_channel |
char * | url |
Public methods
discord_webhook_from_json(const char json[], size_t len, struct discord_webhook *this)
discord_webhook_from_jsmnf(jsmnf *root, const char json[], struct discord_webhook *this)
u64snowflake discord_webhook::id |
the ID of the webhook
enum discord_webhook_types discord_webhook::type |
the type of the webhook
u64snowflake discord_webhook::guild_id |
the guild ID this webhook is for, if any
u64snowflake discord_webhook::channel_id |
the channel ID this webhook is for, if any
struct discord_user* discord_webhook::user |
the user this webhook was created by (not returned when getting a webhook with its token)
char* discord_webhook::name |
the default name of the webhook
char* discord_webhook::token |
the secure token of the webhook (returned for Incoming Webhooks)
u64snowflake discord_webhook::application_id |
the bot/OAuth2 application that created this webhook
struct discord_channel* discord_webhook::source_channel |
the guild of the channel that this webhook is following (returned for Channel Follower Webhooks)
char* discord_webhook::url |
the url used for executing the webhook (returned by the webhooks OAuth2 flow