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

commonMain.entity.Data.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.common.entity

import dev.kord.common.entity.optional.Optional
import dev.kord.common.entity.optional.OptionalSnowflake
import dev.kord.common.serialization.InstantInEpochSeconds
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class DiscordPinsUpdateData(
    @SerialName("guild_id")
    val guildId: OptionalSnowflake = OptionalSnowflake.Missing,
    @SerialName("channel_id")
    val channelId: Snowflake,
    @SerialName("last_pin_timestamp")
    val lastPinTimestamp: Optional = Optional.Missing(),
)

@Serializable
public data class DiscordTyping(
    @SerialName("channel_id")
    val channelId: Snowflake,
    @SerialName("guild_id")
    val guildId: OptionalSnowflake = OptionalSnowflake.Missing,
    @SerialName("user_id")
    val userId: Snowflake,
    val timestamp: InstantInEpochSeconds,
    val member: Optional = Optional.Missing()
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy