getChannelOrNull

open suspend fun getChannelOrNull(channelId: Snowflake): GuildChannel?(source)

Requests to get the GuildChannel represented by the channelId, returns null if the GuildChannel isn't present.

Throws

if anything went wrong during the request.

if the channel is not a TopGuildChannel.

if the channel is not part of this guild.