dist/cache/PermissionOverwriteCache.js
/**
     * Filter for permission overwrites by providing a filter function which returns true upon success and false otherwise
     * @param fn filter function to use for the filtering
     * @param channelId id of the channel that belongs to the permission overwrite
     * @param ids Array of permission overwrite ids, if omitted the permission overwrite index will be used
     * @returns returns an array of bound permission overwrite caches
     */
Filter for permission overwrites by providing a filter function which returns true upon success and false otherwise
@param fn filter function to use for the filtering
@param channelId id of the channel that belongs to the permission overwrite
@param ids Array of permission overwrite ids, if omitted the permission overwrite index will be used
@returns returns an array of bound permission overwrite caches
Filter for permission overwrites by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param channelId id of the channel that belongs to the permission overwrite @param ids Array of permission overwrite ids if omitted the permission overwrite index will be used @returns returns an array of bound permission overwrite caches
async filter(fn, channelId = this.boundChannel, ids = undefined) {
        var _a;
        const permissionOverwrites = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.filter(fn, ids, super.buildId(channelId)));
        if (!permissionOverwrites)
            return [];
        return permissionOverwrites.map(p => new PermissionOverwriteCache(this.storageEngine, this.rain, p));
    }
async filter ( fn , channelId = this . boundChannel , ids = undefined ) { var _a ; const permissionOverwrites = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . filter ( fn , ids , super . buildId ( channelId ) ) ) ; if ( ! permissionOverwrites ) return [ ] ; return permissionOverwrites . map ( p => new PermissionOverwriteCache ( this . storageEngine , this . rain , p ) ) ; }
Filter for permission overwrites by providing a filter function which returns true upon success and false otherwise
 @param fn filter function to use for the filtering
 @param channelId id of the channel that belongs to the permission overwrite
 @param ids Array of permission overwrite ids, if omitted the permission overwrite index will be used
 @returns returns an array of bound permission overwrite caches
Filter for permission overwrites by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param channelId id of the channel that belongs to the permission overwrite @param ids Array of permission overwrite ids if omitted the permission overwrite index will be used @returns returns an array of bound permission overwrite caches