dscrd
Discord C library
Data Fields
Webhook_s Struct Reference

Webhook structure. More...

#include <dscrd.h>

Collaboration diagram for Webhook_s:
Collaboration graph
[legend]

Data Fields

char id [21]
 id of the webhook More...
 
uint8_t _type
 
char guild_id [21]
 guild id of webhook More...
 
char channel_id [21]
 channel id for this webhook More...
 
DiscordUser user
 user object the user this webhook was created by (not returned when getting a webhook with its token) More...
 
DiscordUseruser_p
 same as user but pointer More...
 
char * name
 the default name of the webhook (optional) More...
 
char * avatar
 the default avatar of the webhook (optional) More...
 
char token [128]
 the secure token of the webhook More...
 
bool use_token
 prefer to use token instead of auth More...
 
DiscordClientdiscord_client
 DiscordClient of the Webhook. More...
 

Detailed Description

Webhook structure.

See also
Webhook_s for detailed element documentation.

Field Documentation

◆ _type

uint8_t _type

◆ avatar

char* avatar

the default avatar of the webhook (optional)

◆ channel_id

char channel_id[21]

channel id for this webhook

◆ discord_client

DiscordClient* discord_client

DiscordClient of the Webhook.

◆ guild_id

char guild_id[21]

guild id of webhook

◆ id

char id[21]

id of the webhook

◆ name

char* name

the default name of the webhook (optional)

◆ token

char token[128]

the secure token of the webhook

◆ use_token

bool use_token

prefer to use token instead of auth

◆ user

user object the user this webhook was created by (not returned when getting a webhook with its token)

◆ user_p

DiscordUser* user_p

same as user but pointer


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