7#ifndef DISCORD_WEBHOOK_H
8#define DISCORD_WEBHOOK_H
79 const char webhook_token[],
110 const char webhook_token[],
138 const char webhook_token[],
151 const char webhook_token[],
167 const char webhook_token[],
185 const char webhook_token[],
202 const char webhook_token[],
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:158
Definition: webhook.h:111
Definition: webhook.h:101
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:1182