Context Command
class ContextCommand(val name: String, val displayText: String, val description: String, val category: String, val requiredPermissions: Permissions, val executions: MutableList<Execution<CommandEvent<*>>> = mutableListOf()) : GuildSlashCommand
A command that can be executed via the context menu.
Constructors
Link copied to clipboard
constructor(name: String, displayText: String, description: String, category: String, requiredPermissions: Permissions, executions: MutableList<Execution<CommandEvent<*>>> = mutableListOf())
Properties
Link copied to clipboard
A brief description of the command - used in documentation.
Link copied to clipboard
The text shown in the context menu.
Link copied to clipboard
The single execution of slash command.
Link copied to clipboard
The list of Execution that this command can be run with.
Link copied to clipboard
The permission level required to use this command.
Functions
Link copied to clipboard
open fun <T : CommandEvent<*>> addExecution(argTypes: List<Argument<*, *>>, execute: suspend T.() -> Unit)
Link copied to clipboard
Whether this command has permission to run with the given event.
Link copied to clipboard
Invoke this command with the given args.
Link copied to clipboard
Create a discord mention for this command.
Create a discord mention for this guild slash command.