Concord - C Discord API library
A Discord API wrapper library written in C
webhook.h
Go to the documentation of this file.
1
7#ifndef DISCORD_WEBHOOK_H
8#define DISCORD_WEBHOOK_H
9
26 u64snowflake channel_id,
27 struct discord_create_webhook *params,
28 struct discord_ret_webhook *ret);
29
40 u64snowflake channel_id,
41 struct discord_ret_webhooks *ret);
42
53 u64snowflake guild_id,
54 struct discord_ret_webhooks *ret);
55
65 u64snowflake webhook_id,
66 struct discord_ret_webhook *ret);
67
78 u64snowflake webhook_id,
79 const char webhook_token[],
80 struct discord_ret_webhook *ret);
81
93 u64snowflake webhook_id,
94 struct discord_modify_webhook *params,
95 struct discord_ret_webhook *ret);
96
108 struct discord *client,
109 u64snowflake webhook_id,
110 const char webhook_token[],
112 struct discord_ret_webhook *ret);
113
123 u64snowflake webhook_id,
124 struct discord_delete_webhook *params,
125 struct discord_ret *ret);
126
137 u64snowflake webhook_id,
138 const char webhook_token[],
139 struct discord_ret *ret);
140
150 u64snowflake webhook_id,
151 const char webhook_token[],
152 struct discord_execute_webhook *params,
153 struct discord_ret *ret);
154
166 u64snowflake webhook_id,
167 const char webhook_token[],
168 u64snowflake message_id,
169 struct discord_ret_message *ret);
170
183 struct discord *client,
184 u64snowflake webhook_id,
185 const char webhook_token[],
186 u64snowflake message_id,
187 struct discord_edit_webhook_message *params,
188 struct discord_ret_message *ret);
189
201 u64snowflake webhook_id,
202 const char webhook_token[],
203 u64snowflake message_id,
204 struct discord_ret *ret);
205
211#endif /* DISCORD_WEBHOOK_H */
CCORDcode
Definition: error.h:12
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
CCORDcode discord_get_webhook_message(struct discord *client, u64snowflake webhook_id, const char webhook_token[], u64snowflake message_id, struct discord_ret_message *ret)
Get previously-sent webhook message from the same token.
CCORDcode discord_create_webhook(struct discord *client, u64snowflake channel_id, struct discord_create_webhook *params, struct discord_ret_webhook *ret)
Create a new webhook.
CCORDcode discord_get_webhook_with_token(struct discord *client, u64snowflake webhook_id, const char webhook_token[], struct discord_ret_webhook *ret)
CCORDcode discord_execute_webhook(struct discord *client, u64snowflake webhook_id, const char webhook_token[], struct discord_execute_webhook *params, struct discord_ret *ret)
CCORDcode discord_edit_webhook_message(struct discord *client, u64snowflake webhook_id, const char webhook_token[], u64snowflake message_id, struct discord_edit_webhook_message *params, struct discord_ret_message *ret)
Edits a previously-sent webhook message from the same token.
CCORDcode discord_delete_webhook_message(struct discord *client, u64snowflake webhook_id, const char webhook_token[], u64snowflake message_id, struct discord_ret *ret)
Deletes a message that was created by the webhook.
CCORDcode discord_modify_webhook(struct discord *client, u64snowflake webhook_id, struct discord_modify_webhook *params, struct discord_ret_webhook *ret)
Modify a webhook.
CCORDcode discord_modify_webhook_with_token(struct discord *client, u64snowflake webhook_id, const char webhook_token[], struct discord_modify_webhook_with_token *params, struct discord_ret_webhook *ret)
CCORDcode discord_get_channel_webhooks(struct discord *client, u64snowflake channel_id, struct discord_ret_webhooks *ret)
Get webhooks from a given channel.
CCORDcode discord_delete_webhook_with_token(struct discord *client, u64snowflake webhook_id, const char webhook_token[], struct discord_ret *ret)
CCORDcode discord_get_guild_webhooks(struct discord *client, u64snowflake guild_id, struct discord_ret_webhooks *ret)
Get webhooks from a given guild webhook objects.
CCORDcode discord_delete_webhook(struct discord *client, u64snowflake webhook_id, struct discord_delete_webhook *params, struct discord_ret *ret)
CCORDcode discord_get_webhook(struct discord *client, u64snowflake webhook_id, struct discord_ret_webhook *ret)
Get the new webhook object for the given id.
Definition: webhook.h:71
Definition: webhook.h:96
Definition: webhook.h:158
Definition: webhook.h:111
Definition: webhook.h:101
Definition: webhook.h:83
Request's return context.
Definition: discord-response.h:86
Request's return context.
Definition: discord-response.h:162
Request's return context.
Definition: discord-response.h:163
Request's return context.
Definition: discord-response.h:54
The Discord client handler.
Definition: discord-internal.h:1190