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

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

package dev.kord.rest.json.request

import dev.kord.common.entity.Snowflake
import dev.kord.common.entity.optional.Optional
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class DMCreateRequest(
    @SerialName("recipient_id")
    val userId: Snowflake,
)

@Serializable
public data class GroupDMCreateRequest(
    @SerialName("access_tokens")
    val tokens: List,
    val nick: Map
)

@Serializable
public data class CurrentUserModifyRequest(
    val username: Optional = Optional.Missing(),
    val avatar: Optional = Optional.Missing()
)

@Serializable
public data class UserAddDMRequest(
    @SerialName("access_token")
    val token: String,
    val nick: String
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy