Command Set Builder
data class CommandSetBuilder( val discord: Discord, val category: String, requiredPermissions: Permissions)
Content copied to clipboard
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)
Content copied to clipboard
Functions
Link copied to clipboard
Create a guild command.
Link copied to clipboard
Create a dm command.
Link copied to clipboard
Create a dm text command.
Link copied to clipboard
Content copied to clipboard
Create a global command.
Link copied to clipboard
fun globalSlash( name: String, description: String = "", requiredPermissions: Permissions = this.requiredPermissions, action: GlobalSlashCommand.() -> Unit)
Content copied to clipboard
Create a global slash command.
Link copied to clipboard
fun globalText(vararg names: String, action: GlobalTextCommand.() -> Unit)
Content copied to clipboard
Create a global text command.
Link copied to clipboard
Create a guild text command.