getChannel

open suspend fun getChannel(channelId: Snowflake): GuildChannel(source)

Requests to get the TopGuildChannel represented by the channelId.

Throws

if anything went wrong during the request.

if the channel is not a TopGuildChannel.

if the channel is not part of this guild.