Create Followup Message#

ORCAcode discord_create_followup_message(struct discord *client, u64_snowflake_t application_id, const char interaction_token[], struct discord_create_followup_message_params *params, struct discord_webhook *ret)#

Create 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

  • params – request parameters

  • ret – if successful, a discord_webhook that should be free’d with discord_webhook_cleanup()

Returns:

ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary

struct discord_create_followup_message_params#

Methods

  • Initializer:

    • void discord_create_followup_message_params_init(struct discord_create_followup_message_params *)

  • Cleanup:

    • void discord_create_followup_message_params_cleanup(struct discord_create_followup_message_params *)

    • void discord_create_followup_message_params_list_free(struct discord_create_followup_message_params **)

  • JSON Decoder:

    • void discord_create_followup_message_params_from_json(char *rbuf, size_t len, struct discord_create_followup_message_params *)

    • void discord_create_followup_message_params_list_from_json(char *rbuf, size_t len, struct discord_create_followup_message_params ***)

  • JSON Encoder:

    • void discord_create_followup_message_params_to_json(char *wbuf, size_t len, struct discord_create_followup_message_params *)

    • void discord_create_followup_message_params_list_to_json(char *wbuf, size_t len, struct discord_create_followup_message_params **)

Public Members

bool wait#

cannot unescape an ill-formed string waits for server confirmation of message send before response, and returns the created message body (defaults to false; when false a message that i

u64_snowflake_t thread_id#

Send a message to the specified thread withing a webhook’s channel. The thread will automatically be unarchived

char *content#

the message contents (up to 2000 characters)

char *username#

override the default username of the webhook

char *avatar_url#

override the default avatar of the webhook

bool tts#

true if this is a TTS message

struct discord_attachment **attachments#

attached files to keep

struct discord_embed *embeds#

embedded rich content

char *payload_json#

JSON encoded body of non-file params

struct discord_allowed_mentions *allowed_mentions#

allowed mentions for the message

struct discord_component **components#

the components to include with the message

int flags#

can be set to 64 to send a ephemeral message