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

commonMain.entity.application.UserCommand.kt Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show 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