CommandInteractionData

@Serializable
data class CommandInteractionData(val id: String, val name: String, val type: CommandType, val resolved: CommandInteractionDataResolved? = null, val options: List<CommandInteractionOptionResponse> = emptyList(), val customId: String? = null, val componentType: Int? = null, val values: List<Unit>? = null, val targetId: String? = null)(source)

Constructors

Link copied to clipboard
constructor(id: String, name: String, type: CommandType, resolved: CommandInteractionDataResolved? = null, options: List<CommandInteractionOptionResponse> = emptyList(), customId: String? = null, componentType: Int? = null, values: List<Unit>? = null, targetId: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "component_type")
val componentType: Int? = null
Link copied to clipboard
@SerialName(value = "custom_id")
val customId: String? = null
Link copied to clipboard
@SerialName(value = "id")
val id: String
Link copied to clipboard
@SerialName(value = "name")
val name: String
Link copied to clipboard
@SerialName(value = "options")
val options: List<CommandInteractionOptionResponse>
Link copied to clipboard
@SerialName(value = "resolved")
val resolved: CommandInteractionDataResolved? = null
Link copied to clipboard
@SerialName(value = "target_id")
val targetId: String? = null
Link copied to clipboard
@SerialName(value = "type")
val type: CommandType
Link copied to clipboard
@SerialName(value = "values")
val values: List<Unit>? = null