dist/cache/PermissionOverwriteCache.js
/**
     * Update a permission overwrite entry in the cache
     * @param id id of the permission overwrite
     * @param channelId id of the channel that belongs to the permission overwrite
     * @param data updated permission overwrite data, will be merged with the old data
     * @returns returns a bound permission overwrite cache
     */
Update a permission overwrite entry in the cache
@param id id of the permission overwrite
@param channelId id of the channel that belongs to the permission overwrite
@param data updated permission overwrite data, will be merged with the old data
@returns returns a bound permission overwrite cache
Update a permission overwrite entry in the cache @param id id of the permission overwrite @param channelId id of the channel that belongs to the permission overwrite @param data updated permission overwrite data will be merged with the old data @returns returns a bound permission overwrite cache
async update(id, channelId = this.boundChannel, data) {
        var _a;
        if (this.boundObject) {
            this.bindObject(data);
        }
        await super.addToIndex(id, channelId);
        await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.upsert(this.buildId(id, channelId), this.structurize(data)));
        if (this.boundObject)
            return this;
        return new PermissionOverwriteCache(this.storageEngine, this.rain, data);
    }
async update ( id , channelId = this . boundChannel , data ) { var _a ; if ( this . boundObject ) { this . bindObject ( data ) ; } await super . addToIndex ( id , channelId ) ; await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . upsert ( this . buildId ( id , channelId ) , this . structurize ( data ) ) ) ; if ( this . boundObject ) return this ; return new PermissionOverwriteCache ( this . storageEngine , this . rain , data ) ; }
Update a permission overwrite entry in the cache
 @param id id of the permission overwrite
 @param channelId id of the channel that belongs to the permission overwrite
 @param data updated permission overwrite data, will be merged with the old data
 @returns returns a bound permission overwrite cache
Update a permission overwrite entry in the cache @param id id of the permission overwrite @param channelId id of the channel that belongs to the permission overwrite @param data updated permission overwrite data will be merged with the old data @returns returns a bound permission overwrite cache