Context Command
class ContextCommand( val name: String, val displayText: String, var description: String, val category: String, var requiredPermissions: Permissions, val executions: MutableList<Execution<CommandEvent<*>>> = mutableListOf()) : GuildSlashCommand
Content copied to clipboard
A command that can be executed via the context menu.
Constructors
Link copied to clipboard
fun ContextCommand( name: String, displayText: String, description: String, category: String, requiredPermissions: Permissions, executions: MutableList<Execution<CommandEvent<*>>> = mutableListOf())
Content copied to clipboard
Functions
Link copied to clipboard
open fun <T : CommandEvent<*>> addExecution(argTypes: List<Argument<*, *>>, execute: suspend T.() -> Unit)
Content copied to clipboard
Link copied to clipboard
open suspend fun hasPermissionToRun( discord: Discord, author: User, guild: Guild?): Boolean
Content 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.
Properties
Link copied to clipboard
Link copied to clipboard
The list of Execution that this command can be run with.