v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Fetches all slash commands for a specific guild.

This function retrieves a list of all slash commands registered for the bot in a specified guild. It takes the guild ID as a parameter and returns a Promise that resolves to an array of slash command objects. This allows developers to inspect and manage the bot's slash commands for a particular guild.

post/fetchSlashCommands

Request body

Response

Successfully fetched slash commands

idstring

The unique identifier of the slash command

namestring

The name of the slash command

descriptionstring

A description of what the slash command does

optionsobject[]

An array of command options