get<E> method

E? get<E>(
  1. Snowflake id
)

Allows to get channel and cast to E in one operation.

Implementation

E? get<E>(Snowflake id) => _cache[id] as E?;