WelcomeScreenChannel

class WelcomeScreenChannel(val data: WelcomeScreenChannelData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : ChannelBehavior(source)

One of the channels shown in the welcome screen

Constructors

Link copied to clipboard
constructor(data: WelcomeScreenChannelData, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier)

Properties

Link copied to clipboard
Link copied to clipboard

the description shown for the channel.

Link copied to clipboard

the emoji id if the emoji is custom.

Link copied to clipboard

the emoji name if custom, the unicode character if standard, or null if no emoji is set.

Link copied to clipboard
open override val id: Snowflake

the id of the channel.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard
open val mention: String

This channel formatted as a mention as used by the Discord API.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Functions

Link copied to clipboard
open suspend fun asChannel(): Channel

Requests to get this behavior as a Channel .

Link copied to clipboard
inline suspend fun <T : Channel> ChannelBehavior.asChannelOf(): T

Requests to get the Channel represented by this ChannelBehavior.

Link copied to clipboard
inline suspend fun <T : Channel> ChannelBehavior.asChannelOfOrNull(): T?

Requests to get the Channel represented by this ChannelBehavior, returns null if the Channel isn't present.

Link copied to clipboard
open suspend fun asChannelOrNull(): Channel?

Requests to get this behavior as a Channel, returns null if the channel isn't present.

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

Link copied to clipboard
open suspend fun delete(reason: String? = null)

Requests to delete a channel (or close it if this is a dm channel).

Link copied to clipboard
open suspend fun fetchChannel(): Channel

Retrieve the Channel associated with this behaviour from the provided EntitySupplier

Link copied to clipboard
open suspend fun fetchChannelOrNull(): Channel?

Retrieve the Channel associated with this behaviour from the provided EntitySupplier returns null if the Channel isn't present.

Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): ChannelBehavior

Returns a new ChannelBehavior with the given strategy.