dist/cache/ChannelCache.js
/**
     * Filter through the collection of channels and return on the first result
     * @param fn Filter function
     * @param channelMap Array of ids used for the filter
     * @returns First result bound to a channel cache
     */
Filter through the collection of channels and return on the first result
@param fn Filter function
@param channelMap Array of ids used for the filter
@returns First result bound to a channel cache
Filter through the collection of channels and return on the first result @param fn Filter function @param channelMap Array of ids used for the filter @returns First result bound to a channel cache
async find(fn, channelMap) {
        var _a;
        const channel = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.find(fn, channelMap, this.namespace));
        if (!channel)
            return null;
        return new ChannelCache(this.storageEngine, this.channelMap, this.permissionOverwrites.bindChannel(channel.id), this.recipients, this.rain, channel);
    }
async find ( fn , channelMap ) { var _a ; const channel = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . find ( fn , channelMap , this . namespace ) ) ; if ( ! channel ) return null ; return new ChannelCache ( this . storageEngine , this . channelMap , this . permissionOverwrites . bindChannel ( channel . id ) , this . recipients , this . rain , channel ) ; }
Filter through the collection of channels and return on the first result
 @param fn Filter function
 @param channelMap Array of ids used for the filter
 @returns First result bound to a channel cache
Filter through the collection of channels and return on the first result @param fn Filter function @param channelMap Array of ids used for the filter @returns First result bound to a channel cache