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