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

commonMain.json.request.InviteCreateRequest.kt Maven / Gradle / Ivy

package dev.kord.rest.json.request

import dev.kord.common.entity.InviteTargetType
import dev.kord.common.entity.optional.*
import dev.kord.common.serialization.DurationInSeconds
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class InviteCreateRequest(
    @SerialName("max_age")
    val maxAge: Optional = Optional.Missing(),
    @SerialName("max_uses")
    val maxUses: OptionalInt = OptionalInt.Missing,
    val temporary: OptionalBoolean = OptionalBoolean.Missing,
    val unique: OptionalBoolean = OptionalBoolean.Missing,
    @SerialName("target_type")
    val targetType: Optional = Optional.Missing(),
    @SerialName("target_user_id")
    val targetUserId: OptionalSnowflake = OptionalSnowflake.Missing,
    @SerialName("target_application_id")
    val targetApplicationId: OptionalSnowflake = OptionalSnowflake.Missing,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy