SubCommandSetBuilder

data class SubCommandSetBuilder(    val discord: Discord,     val category: String,     requiredPermissions: Permissions)

DSL used to build a set of commands.

Parameters

discord

The discord instance.

category

The category these commands will be under.

Constructors

Link copied to clipboard
fun SubCommandSetBuilder(    discord: Discord,     category: String,     requiredPermissions: Permissions)

Functions

Link copied to clipboard
fun sub(    name: String,     description: String = "",     requiredPermissions: Permissions = this.requiredPermissions,     action: GuildSlashCommand.() -> Unit)

Create a slash subcommand.

Properties

Link copied to clipboard
val category: String
Link copied to clipboard
val discord: Discord