dscrd
Discord C library
Data Fields
DiscordMessage_s Struct Reference

#include <dscrd.h>

Collaboration diagram for DiscordMessage_s:
Collaboration graph
[legend]

Data Fields

char id [21]
 message ID More...
 
uint8_t _type
 reserved More...
 
char channel_id [21]
 channel ID More...
 
DiscordUserauthor
 author More...
 
char * content
 contents of the message More...
 
char * timestamp
 when this message was sent More...
 
char * edited_timestamp
 when this message was edited (or null if never) More...
 
bool tts
 whether this was a TTS message More...
 
bool mention_everyone
 whether this message mentions everyone More...
 
DiscordUser ** mentions
 users specifically mentioned in the message More...
 
char nonce [21]
 roles specifically mentioned in this message More...
 
bool pinned
 whether this message is pinned More...
 
char webhook_id [21]
 if the message is generated by a webhook, this is the webhook's id More...
 
int type
 type of message More...
 
DiscordClientdiscord_client
 

Field Documentation

◆ _type

uint8_t _type

reserved

◆ author

DiscordUser* author

author

◆ channel_id

char channel_id[21]

channel ID

◆ content

char* content

contents of the message

◆ discord_client

DiscordClient* discord_client

◆ edited_timestamp

char* edited_timestamp

when this message was edited (or null if never)

◆ id

char id[21]

message ID

◆ mention_everyone

bool mention_everyone

whether this message mentions everyone

◆ mentions

DiscordUser** mentions

users specifically mentioned in the message

◆ nonce

char nonce[21]

roles specifically mentioned in this message

array of attachment objects any attached files reactions to the message used for validating a message was sent

◆ pinned

bool pinned

whether this message is pinned

◆ timestamp

char* timestamp

when this message was sent

◆ tts

bool tts

whether this was a TTS message

◆ type

int type

type of message

◆ webhook_id

char webhook_id[21]

if the message is generated by a webhook, this is the webhook's id


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