Edit Webhook Message#
-
ORCAcode discord_edit_webhook_message(struct discord *client, u64_snowflake_t webhook_id, const char webhook_token[], u64_snowflake_t message_id, struct discord_edit_webhook_message_params *params, struct discord_message *ret)#
Edits a previously-sent webhook message from the same token.
- Parameters:
client – the client created with discord_init()
webhook_id – the webhook itself
webhook_token – the webhook token
message_id – the message the webhook belongs to
params – request parameters
ret – if successful, a discord_message that should be free’d with
discord_message_cleanup()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_edit_webhook_message_params#
Methods
Initializer:
void discord_edit_webhook_message_params_init(struct discord_edit_webhook_message_params *)
Cleanup:
void discord_edit_webhook_message_params_cleanup(struct discord_edit_webhook_message_params *)
void discord_edit_webhook_message_params_list_free(struct discord_edit_webhook_message_params **)
JSON Decoder:
void discord_edit_webhook_message_params_from_json(char *rbuf, size_t len, struct discord_edit_webhook_message_params *)
void discord_edit_webhook_message_params_list_from_json(char *rbuf, size_t len, struct discord_edit_webhook_message_params ***)
JSON Encoder:
void discord_edit_webhook_message_params_to_json(char *wbuf, size_t len, struct discord_edit_webhook_message_params *)
void discord_edit_webhook_message_params_list_to_json(char *wbuf, size_t len, struct discord_edit_webhook_message_params **)
Public Members
-
char *content#
name of the webhook(1-2000) chars
-
struct discord_embed **embeds#
array of up to 10 embeds objects
-
struct discord_allowed_mentions *allowed_mentions#
allowed mentions for the message
-
struct discord_attachment **attachments#
attached files to keep
-
struct discord_component **components#
the components to include with the message