AutoCompleteContext

class AutoCompleteContext(val event: CommandAutoCompleteInteractionEvent, val client: SlashCommandClient, val function: KFunction<*>) : CommandAutoCompleteInteraction, InteractionContext<CommandAutoCompleteInteractionEvent> , FunctionHandler

Constructors

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

Properties

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

Functions

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 getChannel(): MessageChannelUnion?
Link copied to clipboard
open fun getChannelType(): ChannelType
Link copied to clipboard
Link copied to clipboard
open override fun getCommandIdLong(): Long
Link copied to clipboard
Link copied to clipboard
open override fun getCommandType(): Command.Type
Link copied to clipboard
open override fun getFocusedOption(): AutoCompleteQuery
Link copied to clipboard
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 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 fun getMessageChannel(): MessageChannel
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open fun getOption(@Nonnull p0: String): OptionMapping?
open fun <T : Any> getOption(@Nonnull p0: String, @Nonnull p1: Function<in OptionMapping, out T>): T?
open fun <T : Any> getOption(@Nonnull p0: String, @Nullable p1: T?, @Nonnull p2: Function<in OptionMapping, out T>): T
open fun <T : Any> getOption(@Nonnull p0: String, @Nullable p1: Supplier<out T>?, @Nonnull p2: Function<in OptionMapping, out T>): T
Link copied to clipboard
open override fun getOptions(): MutableList<OptionMapping>
Link copied to clipboard
open fun getOptionsByName(@Nonnull p0: String): MutableList<OptionMapping>
Link copied to clipboard
open fun getOptionsByType(@Nonnull p0: OptionType): MutableList<OptionMapping>
Link copied to clipboard
open override fun getSubcommandGroup(): String?
Link copied to clipboard
open override fun getSubcommandName(): 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 override fun isAcknowledged(): Boolean
Link copied to clipboard
open fun isFromGuild(): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun isGuildCommand(): Boolean
Link copied to clipboard
open fun replyChoice(@Nonnull p0: String, p1: Double): AutoCompleteCallbackAction
open fun replyChoice(@Nonnull p0: String, p1: Long): AutoCompleteCallbackAction
open fun replyChoice(@Nonnull p0: String, @Nonnull p1: String): AutoCompleteCallbackAction
Link copied to clipboard
open fun replyChoiceDoubles(@Nonnull vararg p0: Double): AutoCompleteCallbackAction
open fun replyChoiceDoubles(@Nonnull p0: MutableCollection<Double>): AutoCompleteCallbackAction
Link copied to clipboard
open fun replyChoiceLongs(@Nonnull vararg p0: Long): AutoCompleteCallbackAction
open fun replyChoiceLongs(@Nonnull p0: MutableCollection<Long>): AutoCompleteCallbackAction
Link copied to clipboard
open fun replyChoices(@Nonnull vararg p0: Command.Choice): AutoCompleteCallbackAction
open override fun replyChoices(@Nonnull p0: MutableCollection<Command.Choice>): AutoCompleteCallbackAction
Link copied to clipboard
open fun replyChoiceStrings(@Nonnull vararg p0: String): AutoCompleteCallbackAction
open fun replyChoiceStrings(@Nonnull p0: MutableCollection<String>): AutoCompleteCallbackAction