commonMain.event.interaction.ApplicationCommandCreate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-core Show documentation
Show all versions of kord-core Show documentation
Idiomatic Kotlin Wrapper for The Discord API
package dev.kord.core.event.interaction
import dev.kord.core.Kord
import dev.kord.core.entity.application.*
import dev.kord.core.event.Event
public sealed interface ApplicationCommandCreateEvent : Event {
public val command: GuildApplicationCommand
}
public class ChatInputCommandCreateEvent(
override val command: GuildChatInputCommand,
override val kord: Kord,
override val shard: Int,
override val customContext: Any?,
) : ApplicationCommandCreateEvent
public class UserCommandCreateEvent(
override val command: GuildUserCommand,
override val kord: Kord,
override val shard: Int,
override val customContext: Any?,
) : ApplicationCommandCreateEvent
public class MessageCommandCreateEvent(
override val command: GuildMessageCommand,
override val kord: Kord,
override val shard: Int,
override val customContext: Any?,
) : ApplicationCommandCreateEvent
public class UnknownApplicationCommandCreateEvent(
override val command: UnknownGuildApplicationCommand,
override val kord: Kord,
override val shard: Int,
override val customContext: Any?,
) : ApplicationCommandCreateEvent