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

#include <channel.h>

Collaboration diagram for discord_create_message:
[legend]

Data Fields

char * content
 
bool tts
 
struct discord_embedsembeds
 
struct discord_allowed_mentionallowed_mentions
 
struct discord_message_referencemessage_reference
 
struct discord_componentscomponents
 
struct snowflakessticker_ids
 
struct discord_attachmentsattachments
 
u64bitmask flags
 

Detailed Description

Field Documentation

◆ content

char* discord_create_message::content

the message contents (up to 2000 characters)

Examples
audit-log.c, ban.c, channel.c, components.c, embed.c, emoji.c, guild-template.c, guild.c, invite.c, pin.c, and reaction.c.

◆ tts

bool discord_create_message::tts

true if this is a TTS message

◆ embeds

struct discord_embeds* discord_create_message::embeds

embedded rich content (up to 6000 characters)

Examples
embed.c.

◆ allowed_mentions

struct discord_allowed_mention* discord_create_message::allowed_mentions

allowed mentions for the message

◆ message_reference

struct discord_message_reference* discord_create_message::message_reference

include to make your message a reply

◆ components

struct discord_components* discord_create_message::components

the components to include with the message

Examples
components.c.

◆ sticker_ids

struct snowflakes* discord_create_message::sticker_ids

IDs of up to 3 stickers in the server to send in the message

◆ attachments

struct discord_attachments* discord_create_message::attachments

attachment objects with filename and description

◆ flags

u64bitmask discord_create_message::flags

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


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