v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Registers a global command handler for Discord slash commands.

This function registers a function to handle a specific global slash command in Discord. It takes a command handler object as a parameter and returns a Promise that resolves when the command is successfully registered. The function allows developers to define custom global commands that can be used across all guilds where the bot is present.

post/registerGlobalCommand

Request body

Response

Command registered successfully

successboolean

Indicates if the command was registered successfully

messagestring

A message confirming the registration