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

commonMain.cache.data.IntegrationsAccountData.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.core.cache.data

import dev.kord.common.entity.DiscordIntegrationsAccount
import kotlinx.serialization.Serializable

@Serializable
public data class IntegrationsAccountData(
    val id: String,
    val name: String,
) {
    public companion object {
        public fun from(entity: DiscordIntegrationsAccount): IntegrationsAccountData = with(entity) {
            IntegrationsAccountData(id, name)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy