getChannelOfOrNull

inline suspend fun <T : TopGuildChannel> getChannelOfOrNull(): T?(source)

Requests the channel this event will be hosted in, if it is of type T, returns null if entityType is External, the channel is not present or not of type T.

Throws

if anything went wrong during the request.