Package-level declarations
Types
Link copied to clipboard
class EphemeralUserCommand<M : ModalForm>(extension: Extension, val modal: () -> M? = null) : UserCommand<EphemeralUserCommandContext<M>, M>
Ephemeral user command.
Link copied to clipboard
class EphemeralUserCommandContext<M : ModalForm>(val event: UserCommandInteractionCreateEvent, val command: UserCommand<EphemeralUserCommandContext<M>, M>, val interactionResponse: EphemeralMessageInteractionResponseBehavior, cache: MutableStringKeyedMap<Any>) : UserCommandContext<EphemeralUserCommandContext<M>, M> , EphemeralInteractionContext
Ephemeral-only user command context.
Link copied to clipboard
typealias InitialEphemeralUserResponseBuilder = suspend InteractionResponseCreateBuilder.(UserCommandInteractionCreateEvent) -> Unit?
Link copied to clipboard
typealias InitialPublicUserResponseBuilder = suspend InteractionResponseCreateBuilder.(UserCommandInteractionCreateEvent) -> Unit?
Link copied to clipboard
class PublicUserCommand<M : ModalForm>(extension: Extension, val modal: () -> M? = null) : UserCommand<PublicUserCommandContext<M>, M>
Public user command.
Link copied to clipboard
class PublicUserCommandContext<M : ModalForm>(val event: UserCommandInteractionCreateEvent, val command: UserCommand<PublicUserCommandContext<M>, M>, val interactionResponse: PublicMessageInteractionResponseBehavior, cache: MutableStringKeyedMap<Any>) : UserCommandContext<PublicUserCommandContext<M>, M> , PublicInteractionContext
Public-only user command context.
Link copied to clipboard
abstract class UserCommand<C : UserCommandContext<C, M>, M : ModalForm>(extension: Extension, val modal: () -> M? = null) : ApplicationCommand<UserCommandInteractionCreateEvent>
User context command, for right-click actions on users.
Link copied to clipboard
abstract class UserCommandContext<C : UserCommandContext<C, M>, M : ModalForm>(val event: UserCommandInteractionCreateEvent, val command: UserCommand<C, M>, val cache: MutableStringKeyedMap<Any>) : ApplicationCommandContext
User command context, containing everything you need for your user command's execution.