All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.event.interaction.AutoCompleteInteractionCreate.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.core.event.interaction

import dev.kord.core.Kord
import dev.kord.core.entity.interaction.AutoCompleteInteraction
import dev.kord.core.entity.interaction.GlobalAutoCompleteInteraction
import dev.kord.core.entity.interaction.GuildAutoCompleteInteraction
import dev.kord.core.event.Event

/** An [Event] that fires when an [AutoCompleteInteraction] is created. */
public sealed interface AutoCompleteInteractionCreateEvent : DataInteractionCreateEvent {
    override val interaction: AutoCompleteInteraction
}

/** An [Event] that fires when a [GlobalAutoCompleteInteraction] is created. */
public class GlobalAutoCompleteInteractionCreateEvent(
    override val kord: Kord,
    override val shard: Int,
    override val interaction: GlobalAutoCompleteInteraction,
    override val customContext: Any?,
) : AutoCompleteInteractionCreateEvent

/** An [Event] that fires when a [GuildAutoCompleteInteraction] is created. */
public class GuildAutoCompleteInteractionCreateEvent(
    override val kord: Kord,
    override val shard: Int,
    override val interaction: GuildAutoCompleteInteraction,
    override val customContext: Any?,
) : AutoCompleteInteractionCreateEvent




© 2015 - 2024 Weber Informatics LLC | Privacy Policy