dist/cache/EmojiCache.js
/**
     * Update a emoji
     * @param id id of the emoji (this does not refer to the name of the emoji)
     * @param guildId id of the guild this emoji belongs to
     * @param data new data of the emoji, that will get merged with the old data
     * @returns returns a bound EmojiCache
     */
Update a emoji
@param id id of the emoji (this does not refer to the name of the emoji)
@param guildId id of the guild this emoji belongs to
@param data new data of the emoji, that will get merged with the old data
@returns returns a bound EmojiCache
Update a emoji @param id id of the emoji ( this does not refer to the name of the emoji ) @param guildId id of the guild this emoji belongs to @param data new data of the emoji that will get merged with the old data @returns returns a bound EmojiCache
async update(id, guildId = this.boundGuild, data) {
        var _a;
        if (this.boundObject) {
            this.bindObject(data);
        }
        await this.addToIndex(id, guildId);
        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 EmojiCache(this.storageEngine, this.rain, data);
    }
async update ( id , guildId = this . boundGuild , data ) { var _a ; if ( this . boundObject ) { this . bindObject ( data ) ; } await this . addToIndex ( id , guildId ) ; 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 EmojiCache ( this . storageEngine , this . rain , data ) ; }
Update a emoji
 @param id id of the emoji (this does not refer to the name of the emoji)
 @param guildId id of the guild this emoji belongs to
 @param data new data of the emoji, that will get merged with the old data
 @returns returns a bound EmojiCache
Update a emoji @param id id of the emoji ( this does not refer to the name of the emoji ) @param guildId id of the guild this emoji belongs to @param data new data of the emoji that will get merged with the old data @returns returns a bound EmojiCache