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