UnsafeCommandUserCommandContext

class UnsafeCommandUserCommandContext<M : UnsafeModalForm>(val event: UserCommandInteractionCreateEvent, val command: UserCommand<UnsafeCommandUserCommandContext<M>, M>, var interactionResponse: MessageInteractionResponseBehavior?, cache: <Error class: unknown class><Any>) : UserCommandContext<UnsafeCommandUserCommandContext<M>, M> , UnsafeCommandInteractionContext

Command context for an unsafe user command.

Constructors

Link copied to clipboard
constructor(event: UserCommandInteractionCreateEvent, command: UserCommand<UnsafeCommandUserCommandContext<M>, M>, interactionResponse: MessageInteractionResponseBehavior?, cache: <Error class: unknown class><Any>)

Properties

Link copied to clipboard
val appPermissions: Permissions?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open lateinit var channel: MessageChannelBehavior
Link copied to clipboard
Link copied to clipboard
open val commandName: Key
Link copied to clipboard
open override val event: UserCommandInteractionCreateEvent

Original interaction event object, for manual acks.

Link copied to clipboard
open val eventObj: Event
Link copied to clipboard
Link copied to clipboard
val genericEvent: ApplicationCommandInteractionCreateEvent
Link copied to clipboard
open var guild: GuildBehavior?
Link copied to clipboard
open override var interactionResponse: MessageInteractionResponseBehavior?

Response created by acknowledging the interaction. Generic.

Link copied to clipboard
open var member: MemberBehavior?
Link copied to clipboard
open override var resolvedLocale: Locale?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open lateinit var user: UserBehavior

Functions

Link copied to clipboard
open suspend override fun ackEphemeral(builder: suspend InteractionResponseCreateBuilder.() -> Unit?): EphemeralMessageInteractionResponseBehavior

Send an ephemeral ack if you haven't acknowledged the interaction yet.

Link copied to clipboard
open suspend override fun ackPublic(builder: suspend InteractionResponseCreateBuilder.() -> Unit?): PublicMessageInteractionResponseBehavior

Send a public ack if you haven't acknowledged the interaction yet.

Link copied to clipboard
open suspend override fun edit(builder: suspend InteractionResponseModifyBuilder.() -> Unit): MessageInteractionResponse

Edit the current interaction's response.

Link copied to clipboard
open suspend override fun editingPaginator(defaultGroup: Key, locale: Locale?, builder: suspend PaginatorBuilder.() -> Unit): BaseButtonPaginator

Create a paginator that edits the original interaction.

Link copied to clipboard
open suspend override fun getChannel(): MessageChannelBehavior
Link copied to clipboard
open suspend override fun getGuild(): GuildBehavior?
Link copied to clipboard
open override fun getKoin(): Koin
Link copied to clipboard
open suspend override fun getLocale(): Locale
Link copied to clipboard
open suspend override fun getMember(): MemberBehavior?
Link copied to clipboard
open suspend override fun getUser(): UserBehavior
Link copied to clipboard
open suspend override fun populate()
Link copied to clipboard
open suspend override fun respondEphemeral(builder: suspend FollowupMessageCreateBuilder.() -> Unit): EphemeralFollowupMessage

Respond to the current interaction with an ephemeral followup.

Link copied to clipboard
open suspend override fun respondingPaginator(defaultGroup: Key, locale: Locale?, builder: suspend PaginatorBuilder.() -> Unit): BaseButtonPaginator

Create a paginator that creates a public follow-up message and edits it.

Link copied to clipboard
open suspend override fun respondPublic(builder: suspend FollowupMessageCreateBuilder.() -> Unit): PublicFollowupMessage

Respond to the current interaction with a public followup.