slashCommand

fun slashCommand(name: String, scope: CommandScope = defaultScope, function: KFunction<Any>?, builder: TopLevelSlashCommandBuilder.() -> Unit)(source)

Declares the supplied function as a slash command.

See the Discord docs on which paths are allowed.

Requirements

See also

@Command

@JDASlashCommand