dist/cache/RoleCache.js
/**
     * Filter for roles by providing a filter function which returns true upon success and false otherwise
     * @param fn filter function to use for the filtering
     * @param guildId id of the guild belonging to the roles
     * @param ids array of role ids that should be used for the filtering
     * @returns array of bound role caches
     */
Filter for roles by providing a filter function which returns true upon success and false otherwise
@param fn filter function to use for the filtering
@param guildId id of the guild belonging to the roles
@param ids array of role ids that should be used for the filtering
@returns array of bound role caches
Filter for roles by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param guildId id of the guild belonging to the roles @param ids array of role ids that should be used for the filtering @returns array of bound role caches
async filter(fn, guildId = this.boundGuild, ids = undefined) {
        var _a;
        const roles = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.filter(fn, ids, super.buildId(guildId)));
        if (!roles)
            return [];
        return roles.map(r => new RoleCache(this.storageEngine, this.rain, r));
    }
async filter ( fn , guildId = this . boundGuild , ids = undefined ) { var _a ; const roles = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . filter ( fn , ids , super . buildId ( guildId ) ) ) ; if ( ! roles ) return [ ] ; return roles . map ( r => new RoleCache ( this . storageEngine , this . rain , r ) ) ; }
Filter for roles by providing a filter function which returns true upon success and false otherwise
 @param fn filter function to use for the filtering
 @param guildId id of the guild belonging to the roles
 @param ids array of role ids that should be used for the filtering
 @returns array of bound role caches
Filter for roles by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param guildId id of the guild belonging to the roles @param ids array of role ids that should be used for the filtering @returns array of bound role caches