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

commonMain.entity.channel.GuildChannel.kt Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
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