commonMain.json.request.ScheduledEventRequests.kt Maven / Gradle / Ivy
package dev.kord.rest.json.request
import dev.kord.common.entity.GuildScheduledEventEntityMetadata
import dev.kord.common.entity.GuildScheduledEventPrivacyLevel
import dev.kord.common.entity.GuildScheduledEventStatus
import dev.kord.common.entity.ScheduledEntityType
import dev.kord.common.entity.optional.Optional
import dev.kord.common.entity.optional.OptionalSnowflake
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
public data class GuildScheduledEventCreateRequest(
@SerialName("channel_id")
val channelId: OptionalSnowflake = OptionalSnowflake.Missing,
@SerialName("entity_metadata")
val entityMetadata: Optional = Optional.Missing(),
val name: String,
@SerialName("privacy_level")
val privacyLevel: GuildScheduledEventPrivacyLevel,
@SerialName("scheduled_start_time")
val scheduledStartTime: Instant,
@SerialName("scheduled_end_time")
val scheduledEndTime: Optional = Optional.Missing(),
val description: Optional = Optional.Missing(),
@SerialName("entity_type")
val entityType: ScheduledEntityType,
val image: Optional = Optional.Missing(),
)
@Serializable
public data class ScheduledEventModifyRequest(
@SerialName("channel_id")
val channelId: OptionalSnowflake? = OptionalSnowflake.Missing,
@SerialName("entity_metadata")
val entityMetadata: Optional = Optional.Missing(),
val name: Optional = Optional.Missing(),
@SerialName("privacy_level")
val privacyLevel: Optional = Optional.Missing(),
@SerialName("scheduled_start_time")
val scheduledStartTime: Optional = Optional.Missing(),
@SerialName("scheduled_end_time")
val scheduledEndTime: Optional = Optional.Missing(),
val description: Optional = Optional.Missing(),
@SerialName("entity_type")
val entityType: Optional = Optional.Missing(),
val status: Optional = Optional.Missing(),
val image: Optional = Optional.Missing(),
)