Bulk Overwrite Global Application Command

ORCAcode discord_bulk_overwrite_global_application_command(struct discord *client, u64_snowflake_t application_id, struct discord_application_command **params, struct discord_application_command ***ret)

Overwrite existing global application commands.

Note

Updates will be available in all guilds after 1 hour

Warning

Will overwrite all types of application commands: slash commands, user commands, and message commands

Parameters
  • client – the client created with discord_init()

  • application_id – the unique id of the parent application

  • params – the request parameters, a list of application commands

  • ret – if successful, a null-terminated list of discord_application_command, that should be free’d with discord_application_command_list_free()

Returns

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