getChannelOf

inline suspend fun <T : Channel> EntitySupplier.getChannelOf(id: Snowflake): T(source)

Requests the Channel with the given id as type T.

Throws

if something went wrong while retrieving the channel.

if the channel is null.

if the returned Channel is not of type T.