Package-level declarations

Types

Link copied to clipboard
class EphemeralMessageCommand<M : ModalForm>(extension: Extension, val modal: () -> M? = null) : MessageCommand<EphemeralMessageCommandContext<M>, M>

Ephemeral message command.

Link copied to clipboard
class EphemeralMessageCommandContext<M : ModalForm>(val event: MessageCommandInteractionCreateEvent, val command: MessageCommand<EphemeralMessageCommandContext<M>, M>, val interactionResponse: EphemeralMessageInteractionResponseBehavior, cache: MutableStringKeyedMap<Any>) : MessageCommandContext<EphemeralMessageCommandContext<M>, M> , EphemeralInteractionContext

Ephemeral-only message command context.

Link copied to clipboard
typealias InitialEphemeralMessageResponseBuilder = suspend InteractionResponseCreateBuilder.(MessageCommandInteractionCreateEvent) -> Unit?
Link copied to clipboard
typealias InitialPublicMessageResponseBuilder = suspend InteractionResponseCreateBuilder.(MessageCommandInteractionCreateEvent) -> Unit?
Link copied to clipboard
abstract class MessageCommand<C : MessageCommandContext<C, M>, M : ModalForm>(extension: Extension, val modal: () -> M? = null) : ApplicationCommand<MessageCommandInteractionCreateEvent>

Message context command, for right-click actions on messages.

Link copied to clipboard
abstract class MessageCommandContext<C : MessageCommandContext<C, M>, M : ModalForm>(val event: MessageCommandInteractionCreateEvent, val command: MessageCommand<C, M>, val cache: MutableStringKeyedMap<Any>) : ApplicationCommandContext

Message command context, containing everything you need for your message command's execution.

Link copied to clipboard
class PublicMessageCommand<M : ModalForm>(extension: Extension, val modal: () -> M? = null) : MessageCommand<PublicMessageCommandContext<M>, M>

Public message command.

Link copied to clipboard
class PublicMessageCommandContext<M : ModalForm>(val event: MessageCommandInteractionCreateEvent, val command: MessageCommand<PublicMessageCommandContext<M>, M>, val interactionResponse: PublicMessageInteractionResponseBehavior, cache: MutableStringKeyedMap<Any>) : MessageCommandContext<PublicMessageCommandContext<M>, M> , PublicInteractionContext

Public-only message command context.