cachedChannels property
List<GuildChannel>
get
cachedChannels
Return a list of channels in the client's cache that are in this guild.
Implementation
List<GuildChannel> get cachedChannels => manager.client.channels.cache.values
.whereType<GuildChannel>()
.where((element) => element.guildId == id)
.toList();