commonMain.entity.interaction.GlobalInteraction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-core-jvm Show documentation
Show all versions of kord-core-jvm Show documentation
Idiomatic Kotlin Wrapper for The Discord API
The newest version!
package dev.kord.core.entity.interaction
import dev.kord.core.behavior.interaction.GlobalInteractionBehavior
import dev.kord.core.entity.User
import dev.kord.core.supplier.EntitySupplyStrategy
/** An [Interaction] that took place in a global context (e.g. a DM). */
public sealed interface GlobalInteraction : Interaction, GlobalInteractionBehavior {
override val user: User get() = User(data.user.value!!, kord)
override fun withStrategy(strategy: EntitySupplyStrategy<*>): GlobalInteraction
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy