Nostrum.Api.create_guild_application_command

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

create_guild_application_command(application_id \\ Me.get().id, guild_id, command)

View Source

Specs

create_guild_application_command(
  Nostrum.Struct.User.id(),
  Nostrum.Struct.Guild.id(),
  map()
) :: {:ok, map()} | error()

Create a guild application command on the specified guild.

The new command will be available immediately.

Parameters

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

Return value

The created command. See the official reference: https://discord.com/developers/docs/interactions/slash-commands#create-guild-application-command