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

create_global_application_command(application_id \\ Me.get().id, command)

View Source


create_global_application_command(, map()) ::
  {:ok, map()} | error()

Create a new global application command.

The new command will be available on all guilds in around an hour. If you want to test commands, use create_guild_application_command/2 instead, as commands will become available instantly there. If an existing command with the same name exists, it will be overwritten.


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

Return value

The created command. See the official reference:


  %{name: "edit", description: "ed, man! man, ed", options: []}