Create Interaction Response#

ORCAcode discord_create_interaction_response(struct discord *client, u64_snowflake_t interaction_id, const char interaction_token[], struct discord_interaction_response *params, struct discord_interaction_response *ret)#

Create a response to an Interaction from the gateway.

Parameters:
  • client – the client created with discord_init()

  • interaction_id – the unique id of the interaction

  • interaction_token – the unique token of the interaction

  • params – the request parameters

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

Returns:

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