CommandSetBuilder

data class CommandSetBuilder(    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 CommandSetBuilder(    discord: Discord,     category: String,     requiredPermissions: Permissions)

Functions

Link copied to clipboard
fun command(vararg names: String, body: GuildTextCommand.() -> Unit)

Create a guild command.

Link copied to clipboard
fun dmCommand(vararg names: String, body: DmTextCommand.() -> Unit)

Create a dm command.

Link copied to clipboard
fun dmText(vararg names: String, action: DmTextCommand.() -> Unit)

Create a dm text command.

Link copied to clipboard
fun globalCommand(vararg names: String, body: GlobalTextCommand.() -> Unit)

Create a global command.

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

Create a global slash command.

Link copied to clipboard
fun globalText(vararg names: String, action: GlobalTextCommand.() -> Unit)

Create a global text command.

Link copied to clipboard
fun message(    displayText: String,     slashName: String,     description: String,     requiredPermissions: Permissions = this.requiredPermissions,     action: suspend ContextEvent<Message>.() -> Unit)

Create a message context command.

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

Create a guild slash command.

Link copied to clipboard
fun text(vararg names: String, action: GuildTextCommand.() -> Unit)

Create a guild text command.

Link copied to clipboard
fun user(    displayText: String,     slashName: String,     description: String,     requiredPermissions: Permissions = this.requiredPermissions,     action: suspend ContextEvent<User>.() -> Unit)

Create a message context command.

Properties

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