v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Fetches all global slash commands for the bot.

This function retrieves a list of all global slash commands registered for the bot. It returns a Promise that resolves to an array of slash command objects. This allows developers to easily access and manage the bot's global slash commands.

post/fetchGlobalSlashCommands

Request body

Response

Successful response

idstring

Unique identifier for the slash command

namestring

Name of the slash command

descriptionstring

Description of the slash command

optionsobject[]

Array of command options