getChannelById

abstract fun getChannelById(channelId: Long): GuildChannel?(source)
open fun getChannelById(channelId: String): GuildChannel?(source)

The channel by its id.

Return

The channel, or null if it doesn't exist.

Parameters

channelId

The id of the channel.