getChannelOf

inline suspend fun <T : GuildChannel> GuildBehavior.getChannelOf(channelId: Snowflake): T(source)

Requests to get the GuildChannel represented by the channelId as type T.

Throws

if anything went wrong during the request.

if the T wasn't present.

if the channel is not of type T.

if the channel is not part of this guild.