commonMain.cache.data.PermissionOverwriteData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kord-core-jvm Show documentation
Show all versions of kord-core-jvm Show documentation
Idiomatic Kotlin Wrapper for The Discord API
package dev.kord.core.cache.data
import dev.kord.common.entity.Overwrite
import dev.kord.common.entity.*
import kotlinx.serialization.Serializable
@Serializable
public data class PermissionOverwriteData(
val id: Snowflake,
val type: OverwriteType,
val allowed: Permissions,
val denied: Permissions
) {
public companion object {
public fun from(entity: Overwrite): PermissionOverwriteData = with(entity) {
PermissionOverwriteData(id, type, allow, deny)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy