dist/cache/ChannelCache.js
/**
     * Filter through the collection of channels
     * @param fn Filter function
     * @param channelMap Array of ids used for the filter
     * @returns array of channel caches with bound results
     */
Filter through the collection of channels
@param fn Filter function
@param channelMap Array of ids used for the filter
@returns array of channel caches with bound results
Filter through the collection of channels @param fn Filter function @param channelMap Array of ids used for the filter @returns array of channel caches with bound results
async filter(fn, channelMap) {
        var _a;
        const channels = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.filter(fn, channelMap, this.namespace)) || [];
        return channels.map(c => new ChannelCache(this.storageEngine, this.channelMap, this.permissionOverwrites.bindChannel(c.id), this.recipients, this.rain, c));
    }
async filter ( fn , channelMap ) { var _a ; const channels = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . filter ( fn , channelMap , this . namespace ) ) || [ ] ; return channels . map ( c => new ChannelCache ( this . storageEngine , this . channelMap , this . permissionOverwrites . bindChannel ( c . id ) , this . recipients , this . rain , c ) ) ; }
Filter through the collection of channels
 @param fn Filter function
 @param channelMap Array of ids used for the filter
 @returns array of channel caches with bound results
Filter through the collection of channels @param fn Filter function @param channelMap Array of ids used for the filter @returns array of channel caches with bound results