commonMain.entity.DiscordSelectDefaultValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-common-jvm Show documentation
Show all versions of kord-common-jvm Show documentation
Idiomatic Kotlin Wrapper for The Discord API
The newest version!
@file:Generate(
STRING_KORD_ENUM, name = "SelectDefaultValueType",
docUrl = "https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure",
entries = [
Entry("User", stringValue = "user"),
Entry("Role", stringValue = "role"),
Entry("Channel", stringValue = "channel"),
],
)
package dev.kord.common.entity
import dev.kord.ksp.Generate
import dev.kord.ksp.Generate.EntityType.STRING_KORD_ENUM
import dev.kord.ksp.Generate.Entry
import kotlinx.serialization.Serializable
@Serializable
public data class DiscordSelectDefaultValue(
val id: Snowflake,
val type: SelectDefaultValueType,
)