channel property

DmChannel get channel
inherited

Get channel of this T

Implementation

T get channel => _guildId != null
  ? ioc.use<MineralClient>().guilds.cache.getOrFail(_guildId).channels.cache.getOrFail(_channelId) as T
  : ioc.use<MineralClient>().dmChannels.cache.getOrFail(_channelId) as T;