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

commonMain.entity.interaction.GlobalInteraction.kt Maven / Gradle / Ivy

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