MessageCommand

interface MessageCommand<in C : MessageCommandContext> : 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

GlobalMessageCommand
Link copied to clipboard
GlobalGuildMessageCommand
Link copied to clipboard
GuildMessageCommand
Link copied to clipboard

Extensions

applicationCommandRequest
Link copied to clipboard

DSL for building ApplicationCommandRequest for message commands

Sources

jvm source
Link copied to clipboard