commonMain.entity.application.UserCommand.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.application
import dev.kord.common.entity.Snowflake
import dev.kord.core.behavior.*
import dev.kord.core.cache.data.ApplicationCommandData
import dev.kord.rest.service.InteractionService
public sealed interface UserCommand : ApplicationCommand, UserCommandBehavior
public class GlobalUserCommand(override val data: ApplicationCommandData, override val service: InteractionService) :
GlobalApplicationCommand,
UserCommand,
GlobalUserCommandBehavior
public class GuildUserCommand(override val data: ApplicationCommandData, override val service: InteractionService) :
GuildApplicationCommand,
UserCommand,
GuildUserCommandBehavior {
override val guildId: Snowflake
get() = data.guildId.value!!
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy