dist/cache/GuildCache.js
/**
     * Filter through the collection of guilds
     * @param fn Filter function
     * @returns array of bound guild caches
     */
Filter through the collection of guilds
@param fn Filter function
@returns array of bound guild caches
Filter through the collection of guilds @param fn Filter function @returns array of bound guild caches
async filter(fn) {
        var _a;
        const guilds = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.filter(fn, undefined, this.namespace));
        if (!guilds)
            return [];
        return guilds.map(g => new GuildCache(this.storageEngine, this.channels, this.roles.bindGuild(g.id), this.members.bindGuild(g.id), this.emojis.bindGuild(g.id), this.presences.bindGuild(g.id), this.guildChannelMap.bindGuild(g.id), this.rain, g));
    }
async filter ( fn ) { var _a ; const guilds = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . filter ( fn , undefined , this . namespace ) ) ; if ( ! guilds ) return [ ] ; return guilds . map ( g => new GuildCache ( this . storageEngine , this . channels , this . roles . bindGuild ( g . id ) , this . members . bindGuild ( g . id ) , this . emojis . bindGuild ( g . id ) , this . presences . bindGuild ( g . id ) , this . guildChannelMap . bindGuild ( g . id ) , this . rain , g ) ) ; }
Filter through the collection of guilds
 @param fn Filter function
 @returns array of bound guild caches
Filter through the collection of guilds @param fn Filter function @returns array of bound guild caches