ModalContext

class ModalContext(val event: ModalInteractionEvent, val client: SlashCommandClient, val matcher: Matcher, val function: KFunction<*>) : ModalInteraction, DeferrableInteraction, InteractionContext<ModalInteractionEvent> , FunctionHandler

Constructors

Link copied to clipboard
constructor(event: ModalInteractionEvent, client: SlashCommandClient, matcher: Matcher, function: KFunction<*>)

Properties

Link copied to clipboard
open override val client: SlashCommandClient
Link copied to clipboard
open override val event: ModalInteractionEvent
Link copied to clipboard
open override val function: KFunction<*>
Link copied to clipboard
open val interaction: Interaction
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun acknowledge(ephemeral: Boolean)

Automatically detect if the interaction is already acknowledge and if not will acknowledge it.

Link copied to clipboard
open suspend override fun acknowledgeAsync(ephemeral: Boolean): Deferred<Unit>
Link copied to clipboard
inline suspend fun <E : GenericEvent> InteractionContext<*>.await(timeout: Duration, crossinline filter: suspend (event: E) -> Boolean): E?
Link copied to clipboard
open override fun deferEdit(): MessageEditCallbackAction
Link copied to clipboard
open override fun deferReply(): ReplyCallbackAction
open fun deferReply(p0: Boolean): ReplyCallbackAction
Link copied to clipboard
open fun editComponents(@Nonnull vararg p0: LayoutComponent): MessageEditCallbackAction
open fun editComponents(@Nonnull p0: MutableCollection<out LayoutComponent>): MessageEditCallbackAction
Link copied to clipboard
open fun editMessage(@Nonnull p0: String): MessageEditCallbackAction
open fun editMessage(@Nonnull p0: MessageEditData): MessageEditCallbackAction
Link copied to clipboard
open fun editMessageAttachments(@Nonnull vararg p0: AttachedFile): MessageEditCallbackAction
open fun editMessageAttachments(@Nonnull p0: MutableCollection<out AttachedFile>): MessageEditCallbackAction
Link copied to clipboard
open fun editMessageEmbeds(@Nonnull vararg p0: MessageEmbed): MessageEditCallbackAction
open fun editMessageEmbeds(@Nonnull p0: MutableCollection<out MessageEmbed>): MessageEditCallbackAction
Link copied to clipboard
open fun editMessageFormat(@Nonnull p0: String, @Nonnull vararg p1: Any): MessageEditCallbackAction
Link copied to clipboard
open override fun getChannel(): MessageChannelUnion
Link copied to clipboard
open fun getChannelType(): ChannelType
Link copied to clipboard
open override fun getGuild(): Guild?
Link copied to clipboard
open override fun getGuildChannel(): GuildMessageChannelUnion
Link copied to clipboard
open fun getGuildLocale(): DiscordLocale
Link copied to clipboard
open override fun getHook(): InteractionHook
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open override fun getIdLong(): Long
Link copied to clipboard
open override fun getJDA(): JDA
Link copied to clipboard
open override fun getMember(): Member?
Link copied to clipboard
open override fun getMessage(): Message?
Link copied to clipboard
open fun getMessageChannel(): MessageChannel
Link copied to clipboard
open override fun getModalId(): String
Link copied to clipboard
Link copied to clipboard
open override fun getToken(): String
Link copied to clipboard
open fun getType(): InteractionType
Link copied to clipboard
open override fun getTypeRaw(): Int
Link copied to clipboard
open override fun getUser(): User
Link copied to clipboard
open override fun getUserLocale(): DiscordLocale
Link copied to clipboard
open fun getValue(@Nonnull p0: String): ModalMapping?
Link copied to clipboard
open override fun getValues(): MutableList<ModalMapping>
Link copied to clipboard
open override fun isAcknowledged(): Boolean
Link copied to clipboard
open fun isFromGuild(): Boolean
Link copied to clipboard
open fun reply(@Nonnull p0: String): ReplyCallbackAction
open fun reply(@Nonnull p0: MessageCreateData): ReplyCallbackAction
Link copied to clipboard
open fun replyComponents(@Nonnull p0: MutableCollection<out LayoutComponent>): ReplyCallbackAction
open fun replyComponents(@Nonnull p0: LayoutComponent, @Nonnull vararg p1: LayoutComponent): ReplyCallbackAction
Link copied to clipboard
open fun replyEmbeds(@Nonnull p0: MutableCollection<out MessageEmbed>): ReplyCallbackAction
open fun replyEmbeds(@Nonnull p0: MessageEmbed, @Nonnull vararg p1: MessageEmbed): ReplyCallbackAction
Link copied to clipboard
open fun replyFiles(@Nonnull vararg p0: FileUpload): ReplyCallbackAction
open fun replyFiles(@Nonnull p0: MutableCollection<out FileUpload>): ReplyCallbackAction
Link copied to clipboard
open fun replyFormat(@Nonnull p0: String, @Nonnull vararg p1: Any): ReplyCallbackAction