dist/cache/VoiceStateCache.js
/**
     * Update a VoiceState entry in the cache
     * @param id discord id of the user
     * @param guildId guild id
     * @param data updated data of the VoiceState, it will be merged with the old data
     */
Update a VoiceState entry in the cache
@param id discord id of the user
@param guildId guild id
@param data updated data of the VoiceState, it will be merged with the old data
Update a VoiceState entry in the cache @param id discord id of the user @param guildId guild id @param data updated data of the VoiceState it will be merged with the old data
async update(id, guildId, data) {
        var _a;
        if (this.boundObject) {
            this.bindObject(data);
        }
        delete data.member;
        if (!data.guild_id)
            data.guild_id = guildId;
        await this.addToIndex(id);
        await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.upsert(this.buildId(id, guildId), this.structurize(data)));
        if (this.boundObject)
            return this;
        return new VoiceStateCache(this.storageEngine, this.rain, data);
    }
async update ( id , guildId , data ) { var _a ; if ( this . boundObject ) { this . bindObject ( data ) ; } delete data . member ; if ( ! data . guild_id ) data . guild_id = guildId ; await this . addToIndex ( id ) ; await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . upsert ( this . buildId ( id , guildId ) , this . structurize ( data ) ) ) ; if ( this . boundObject ) return this ; return new VoiceStateCache ( this . storageEngine , this . rain , data ) ; }
Update a VoiceState entry in the cache
 @param id discord id of the user
 @param guildId guild id
 @param data updated data of the VoiceState, it will be merged with the old data
Update a VoiceState entry in the cache @param id discord id of the user @param guildId guild id @param data updated data of the VoiceState it will be merged with the old data