addSlashCommand

@CheckReturnValue
abstract fun addSlashCommand(name: String, description: String): ISlashCommandBuilder(source)

Adds a slash command to the builder

Return

The ISlashCommandBuilder object that was added

Parameters

name

The name of the slash command

description

The description of the slash command


@CheckReturnValue
abstract fun addSlashCommand(slash: SlashCommandBuilder): ISlashCommandBuilder(source)

Adds a new Slash Command to the builder

Parameters

slash

The Slash Command to add