asChannelOf

inline suspend fun <T : Channel> ChannelBehavior.asChannelOf(): T(source)

Requests to get the Channel represented by this ChannelBehavior.

Throws

RequestException

if anything went wrong during the request.

if the Channel wasn't present.

if the channel is not of type T.