commonMain.cache.data.IntegrationsAccountData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-core Show documentation
Show all versions of kord-core Show documentation
Idiomatic Kotlin Wrapper for The Discord API
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)
}
}
}