UserCommand

interface UserCommand<in C : UserCommandContext> : ApplicationCommand<C>

Functions

execute
Link copied to clipboard
abstract suspend fun C.execute()

Called when this command is used in an interaction

Properties

request
Link copied to clipboard
abstract val request: ApplicationCommandRequest

The discord-json request body to be sent to the Discord API

Inheritors

GlobalUserCommand
Link copied to clipboard
GlobalGuildUserCommand
Link copied to clipboard
GuildUserCommand
Link copied to clipboard

Extensions

applicationCommandRequest
Link copied to clipboard
fun UserCommand<*>.applicationCommandRequest(name: String): ApplicationCommandRequest

DSL for building ApplicationCommandRequest for user commands

Sources

jvm source
Link copied to clipboard