getChannelOf

inline suspend fun <T : Channel> getChannelOf(id: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): T?(source)

Requests to get the Channel as type T through the strategy, returns null if the Channel isn't present or is not of type T.

Throws

if anything went wrong during the request.