v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Registers a command handler for a specific slash command in a Discord guild.

This function registers a function to handle a specific slash command in a Discord guild. It allows for the creation of custom commands with various options and permissions. The function returns a Promise that resolves when the command is successfully registered.

post/registerCommand

Request body

Response

Command successfully registered

successboolean

Indicates if the command was successfully registered

messagestring

A message confirming the registration