Registers a slash command for a Discord bot in a specific guild.
This function creates and registers a new slash command for a Discord bot within a specified guild. It allows for the definition of the command's name, description, options, and permissions. The function returns a Promise that resolves to the registered command object.
post/registerSlashCommand
Request body
Response
Successfully registered the slash command