v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Deletes a slash command from a specific guild.

This function removes a previously registered slash command from a specified guild in Discord. It requires both the guild ID and the command ID to identify and delete the specific command. The operation is asynchronous and returns a Promise that resolves when the deletion is complete.

post/deleteSlashCommand

Request body

Response

Slash command successfully deleted

messagestring

Example response

{
  "message": "Slash command deleted successfully"
}