UnsafeSlashCommand
class UnsafeSlashCommand<A : Arguments, M : UnsafeModalForm>(extension: Extension, val arguments: () -> A? = null, val modal: () -> M? = null, val parentCommand: SlashCommand<*, *, *>? = null, val parentGroup: SlashGroup? = null) : SlashCommand<UnsafeCommandSlashCommandContext<A, M>, A, M>
Like a standard slash command, but with less safety features.
Constructors
Link copied to clipboard
constructor(extension: Extension, arguments: () -> A? = null, modal: () -> M? = null, parentCommand: SlashCommand<*, *, *>? = null, parentGroup: SlashGroup? = null)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Initial response type. Change this to decide what happens when this slash command is executed.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend fun firstSentryBreadcrumb(context: UnsafeCommandSlashCommandContext<A, M>, commandObj: SlashCommand<*, *, *>)
Link copied to clipboard
open suspend fun handleError(context: UnsafeCommandSlashCommandContext<A, M>, t: Throwable, commandObj: SlashCommand<*, *, *>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun respondText(context: UnsafeCommandSlashCommandContext<A, M>, message: Key, failureType: FailureReason<*>)
Link copied to clipboard
open suspend override fun runChecks(event: ChatInputCommandInteractionCreateEvent, cache: MutableStringKeyedMap<Any>): Boolean
Link copied to clipboard
open suspend fun runStandardChecks(event: ChatInputCommandInteractionCreateEvent, cache: MutableStringKeyedMap<Any>): Boolean
Link copied to clipboard
fun <T : Arguments, M : UnsafeModalForm> SlashCommand<*, *, *>.unsafeSubCommand(commandObj: UnsafeSlashCommand<T, M>): UnsafeSlashCommand<T, M>
Function for registering a custom unsafe slash command object, for subcommands.
suspend fun SlashCommand<*, *, *>.unsafeSubCommand(body: suspend UnsafeSlashCommand<Arguments, UnsafeModalForm>.() -> Unit): UnsafeSlashCommand<Arguments, UnsafeModalForm>
DSL function for easily registering an unsafe subcommand, without arguments.
suspend fun <T : Arguments> SlashCommand<*, *, *>.unsafeSubCommand(arguments: () -> T, body: suspend UnsafeSlashCommand<T, UnsafeModalForm>.() -> Unit): UnsafeSlashCommand<T, UnsafeModalForm>
DSL function for easily registering an unsafe subcommand, with arguments.