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

#include <webhook.h>

Collaboration diagram for discord_webhook:
[legend]

Data Fields

u64snowflake id
 
enum discord_webhook_types type
 
u64snowflake guild_id
 
u64snowflake channel_id
 
struct discord_useruser
 
char * name
 
char * token
 
u64snowflake application_id
 
struct discord_channelsource_channel
 
char * url
 

Detailed Description

Field Documentation

◆ id

u64snowflake discord_webhook::id

the ID of the webhook

◆ type

enum discord_webhook_types discord_webhook::type

the type of the webhook

◆ guild_id

u64snowflake discord_webhook::guild_id

the guild ID this webhook is for, if any

◆ channel_id

u64snowflake discord_webhook::channel_id

the channel ID this webhook is for, if any

◆ user

struct discord_user* discord_webhook::user

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

◆ name

char* discord_webhook::name

the default name of the webhook

◆ token

char* discord_webhook::token

the secure token of the webhook (returned for Incoming Webhooks)

◆ application_id

u64snowflake discord_webhook::application_id

the bot/OAuth2 application that created this webhook

◆ source_channel

struct discord_channel* discord_webhook::source_channel

the guild of the channel that this webhook is following (returned for Channel Follower Webhooks)

◆ url

char* discord_webhook::url

the url used for executing the webhook (returned by the webhooks OAuth2 flow


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