Edit Followup Message#
-
ORCAcode discord_edit_followup_message(struct discord *client, u64_snowflake_t application_id, const char interaction_token[], u64_snowflake_t message_id, struct discord_edit_followup_message_params *params, struct discord_message *ret)#
Edits a followup message for an interaction.
- Parameters:
client – the client created with discord_init()
application_id – the unique id of the application
interaction_token – the unique token of the interaction
message_id – the unique id of the message
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_followup_message_params#
Methods
Initializer:
void discord_edit_followup_message_params_init(struct discord_edit_followup_message_params *)
Cleanup:
void discord_edit_followup_message_params_cleanup(struct discord_edit_followup_message_params *)
void discord_edit_followup_message_params_list_free(struct discord_edit_followup_message_params **)
JSON Decoder:
void discord_edit_followup_message_params_from_json(char *rbuf, size_t len, struct discord_edit_followup_message_params *)
void discord_edit_followup_message_params_list_from_json(char *rbuf, size_t len, struct discord_edit_followup_message_params ***)
JSON Encoder:
void discord_edit_followup_message_params_to_json(char *wbuf, size_t len, struct discord_edit_followup_message_params *)
void discord_edit_followup_message_params_list_to_json(char *wbuf, size_t len, struct discord_edit_followup_message_params **)
Public Members
-
char *content#
name of the webhook(1-2000) chars
-
struct discord_embed **embeds#
array of up to 10 embeds objects
-
char *payload_json#
JSON encoded body of non-file params (multipart/form-data only)
-
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