GlobalUserCommandContext
class GlobalUserCommandContext(event: UserInteractionEvent, scope: CoroutineScope) : UserCommandContext, GlobalCommandContext
Content copied to clipboard
The context for an interaction with an ApplicationCommand that could have been used in a DM.
Constructors
GlobalUserCommandContext
Link copied to clipboard
fun GlobalUserCommandContext(event: UserInteractionEvent, scope: CoroutineScope)
Content copied to clipboard
Functions
getChannel
Link copied to clipboard
The channel that this command was used in.
getTargetUser
Link copied to clipboard
open suspend fun getTargetUser(retrievalStrategy: EntityRetrievalStrategy): User
Content copied to clipboard
Properties
client
Link copied to clipboard
coroutineContext
Link copied to clipboard
event
Link copied to clipboard
interaction
Link copied to clipboard
interactionResponse
Link copied to clipboard
Sources
jvm source
Link copied to clipboard