getTopChannel

fun GuildChannelBehavior.getTopChannel(): TopGuildChannelBehavior?

Get the corresponding top guild channel for the given channel.

  • If this is a thread channel, return the parent channel.

  • If this is a top guild channel, return it.

  • Otherwise, return null.