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