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

#include <webhook.h>

Collaboration diagram for discord_execute_webhook:
[legend]

Data Fields

bool wait
 
u64snowflake thread_id
 
char * content
 
char * username
 
char * avatar_url
 
bool tts
 
struct discord_embedsembeds
 
struct discord_allowed_mentionallowed_mentions
 
struct discord_componentscomponents
 
struct discord_attachmentsattachments
 
u64bitmask flags
 

Detailed Description

Field Documentation

◆ wait

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)

◆ thread_id

u64snowflake discord_execute_webhook::thread_id

send a message to the specified thread within a webhook's channel; the thread will automatically be unarchived

◆ content

char* discord_execute_webhook::content

the message contents (up to 2000 characters)

Examples
webhook.c.

◆ username

char* discord_execute_webhook::username

override the default username of the webhook

◆ avatar_url

char* discord_execute_webhook::avatar_url

override the default avatar of the webhook

◆ tts

bool discord_execute_webhook::tts

true if this is a TTS message

◆ embeds

struct discord_embeds* discord_execute_webhook::embeds

embedded rich content

◆ allowed_mentions

struct discord_allowed_mention* discord_execute_webhook::allowed_mentions

allowed mentions for the message

◆ components

struct discord_components* discord_execute_webhook::components

the components to include with the message

◆ attachments

struct discord_attachments* discord_execute_webhook::attachments

attachment objects with filename and description

◆ flags

u64bitmask discord_execute_webhook::flags

Message flags combined as a bitfield (only SUPPRESS_EMBEDS can be set)


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