InteractionBuilder

class InteractionBuilder(applicationId: String, dispatcher: EventDispatcher, botContext: BotContext, existingCommands: List<Command>)(source)

Constructors

Link copied to clipboard
constructor(applicationId: String, dispatcher: EventDispatcher, botContext: BotContext, existingCommands: List<Command>)

Functions

Link copied to clipboard
fun commandGroup(name: String, description: String, guildId: String? = null, permissions: Permissions = Permissions.ALL, builder: CommandGroupBuilder.() -> Unit)

An extension of slashCommand which allows multiple slash commands to be loosely grouped

Link copied to clipboard
fun messageCommand(name: String, guildId: String? = null, permissions: Permissions = Permissions.ALL, callback: suspend ResponseContext<ApplicationCommand>.() -> Unit)

A command available in the context menu of a message

Link copied to clipboard
fun slashCommand(name: String, description: String, guildId: String? = null, permissions: Permissions = Permissions.ALL, build: CommandContext<ApplicationCommand>.() -> Unit)

A chat based command, prefixed with a /

Link copied to clipboard
fun userCommand(name: String, guildId: String? = null, permissions: Permissions = Permissions.ALL, callback: suspend ResponseContext<ApplicationCommand>.() -> Unit)

A command available in the context menu of a user