PublicRoleSelectMenuContext
class PublicRoleSelectMenuContext<M : ModalForm>(val component: PublicRoleSelectMenu<M>, val event: SelectMenuInteractionCreateEvent, val interactionResponse: PublicMessageInteractionResponseBehavior, cache: MutableStringKeyedMap<Any>) : RoleSelectMenuContext, PublicInteractionContext
Class representing the execution context for a public-only role select (dropdown) menu.
Constructors
Link copied to clipboard
constructor(component: PublicRoleSelectMenu<M>, event: SelectMenuInteractionCreateEvent, interactionResponse: PublicMessageInteractionResponseBehavior, cache: MutableStringKeyedMap<Any>)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Current interaction response being worked with.
Link copied to clipboard
Cached locale variable, stored and retrieved by getLocale.
Link copied to clipboard
Current Sentry context, containing breadcrumbs and other goodies.
Link copied to clipboard
Configured bot settings object.
Functions
Link copied to clipboard
Link copied to clipboard
open override fun editingPaginator(defaultGroup: Key, locale: Locale?, builder: PaginatorBuilder.() -> Unit): PublicResponsePaginator
Create a paginator that edits the original interaction response.
Link copied to clipboard
Extract channel information from event data, if that context is available.
Link copied to clipboard
Extract message information from event data, if that context is available.
Link copied to clipboard
open suspend override fun respondingPaginator(defaultGroup: Key, locale: Locale?, builder: suspend PaginatorBuilder.() -> Unit): PublicFollowUpPaginator
Create a paginator that creates a follow-up message, and edits that.
Link copied to clipboard
open suspend override fun respondOpposite(builder: suspend FollowupMessageCreateBuilder.() -> Unit): EphemeralFollowupMessage
Create a follow-up response using the opposite interaction type.