Nostrum.Api.edit_guild_application_command
You're seeing just the function
edit_guild_application_command
, go back to Nostrum.Api module for more information.
Link to this function
edit_guild_application_command(application_id \\ Me.get().id, guild_id, command_id, command)
View SourceSpecs
edit_guild_application_command( Nostrum.Struct.User.id(), Nostrum.Struct.Guild.id(), Nostrum.Snowflake.t(), map() ) :: {:ok, map()} | error()
Update an existing guild application command.
The updated command will be available immediately.
Parameters
application_id
: Application ID for which to edit the command. If not given, this will be fetched fromMe
.guild_id
: Guild for which to update the command.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-guild-application-command