MessageCommandContext

sealed class MessageCommandContext : ApplicationCommandContext

Functions

getTargetMessage
Link copied to clipboard
suspend fun getTargetMessage(): Message
suspend fun getTargetMessage(retrievalStrategy: EntityRetrievalStrategy): Message

Properties

channelId
Link copied to clipboard
val channelId: Snowflake

The ID of the channel where this command was used.

client
Link copied to clipboard
val client: GatewayDiscordClient

The gateway this event was dispatched from.

coroutineContext
Link copied to clipboard
open override val coroutineContext: CoroutineContext
event
Link copied to clipboard
override val event: MessageInteractionEvent

The discord interaction event.

interaction
Link copied to clipboard
val interaction: Interaction

The discord interaction for this command context.

interactionResponse
Link copied to clipboard
val interactionResponse: GatewayInteractionResponse

The interaction followup handler.

targetId
Link copied to clipboard
val targetId: Snowflake
user
Link copied to clipboard
val user: User

The user that invoked this command.

Inheritors

GlobalMessageCommandContext
Link copied to clipboard
GuildMessageCommandContext
Link copied to clipboard

Sources

jvm source
Link copied to clipboard