commonMain.entity.channel.GuildChannel.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.entity.channel
import dev.kord.common.entity.Snowflake
import dev.kord.core.behavior.channel.GuildChannelBehavior
import dev.kord.core.supplier.EntitySupplyStrategy
/**
* An instance of a Discord channel associated to a [guild].
*/
public interface GuildChannel : Channel, GuildChannelBehavior {
override val guildId: Snowflake
get() = data.guildId.value!!
/**
* The name of this channel.
*/
public val name: String get() = data.name.value!!
override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildChannel
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy