Nostrum.Api.edit_global_application_command

You're seeing just the function edit_global_application_command, go back to Nostrum.Api module for more information.
Link to this function

edit_global_application_command(application_id \\ Me.get().id, command_id, command)

View Source

Specs

edit_global_application_command(
  Nostrum.Struct.User.id(),
  Nostrum.Snowflake.t(),
  map()
) :: {:ok, map()} | error()

Update an existing global application command.

The updated command will be available on all guilds in around an hour.

Parameters

  • application_id: Application ID for which to edit the command. If not given, this will be fetched from Me.
  • command_id: The current snowflake of the command.
  • command: Command configuration, see the linked API documentation for reference.

Return value

The updated command. See the official reference: https://discord.com/developers/docs/interactions/slash-commands#edit-global-application-command