Nostrum.Api.bulk_overwrite_global_application_commands
You're seeing just the function
bulk_overwrite_global_application_commands
, go back to Nostrum.Api module for more information.
Link to this function
bulk_overwrite_global_application_commands(application_id \\ Me.get().id, commands)
View SourceSpecs
bulk_overwrite_global_application_commands(Nostrum.Struct.User.id(), [map()]) :: {:ok, [map()]} | error()
Overwrite the existing global application commands.
This action will:
- Create any command that was provided and did not already exist
- Update any command that was provided and already existed if its configuration changed
- Delete any command that was not provided but existed on Discord's end
Updates will be available in all guilds after 1 hour. Commands that do not already exist will count toward daily application command create limits.
Parameters
application_id
: Application ID for which to overwrite the commands. If not given, this will be fetched fromMe
.commands
: List of command configurations, see the linked API documentation for reference.
Return value
Updated list of global application commands. See the official reference: https://discord.com/developers/docs/interactions/slash-commands#bulk-overwrite-global-application-commands