CommandContext
Types
Link copied to clipboard
class CommandDelegate<T>(val name: String, var responseContext: ResponseContext<*>? = null, finder: (List<CommandInteractionOptionResponse>, CommandInteractionDataResolved?) -> T)
Functions
Link copied to clipboard
fun attachmentParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<Attachment?>
Link copied to clipboard
fun booleanParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<Boolean?>
Link copied to clipboard
Link copied to clipboard
fun channelParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<String?>
Link copied to clipboard
fun floatParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<Float?>
Link copied to clipboard
fun intParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<Int?>
Link copied to clipboard
fun mentionableParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<String?>
Link copied to clipboard
fun roleParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<String?>
Link copied to clipboard
fun stringParameter(name: String, description: String, vararg choices: CommandOption.CommandOptionChoice, autocomplete: Boolean = false, optional: Boolean = false): CommandContext.CommandDelegate<String?>
Link copied to clipboard
fun userParameter(name: String, description: String, optional: Boolean = false): CommandContext.CommandDelegate<String?>