dist/cache/RoleCache.js
/**
     * Remove a role from the cache
     * @param id id of the role
     * @param guildId id of the guild belonging to the role
     */
Remove a role from the cache
@param id id of the role
@param guildId id of the guild belonging to the role
Remove a role from the cache @param id id of the role @param guildId id of the guild belonging to the role
async remove(id, guildId) {
        var _a, _b;
        const role = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.get(this.buildId(id, guildId)));
        if (role) {
            await this.removeFromIndex(id, guildId);
            return (_b = this.storageEngine) === null || _b === void 0 ? void 0 : _b.remove(this.buildId(id, guildId));
        }
        else {
            return undefined;
        }
    }
async remove ( id , guildId ) { var _a , _b ; const role = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . get ( this . buildId ( id , guildId ) ) ) ; if ( role ) { await this . removeFromIndex ( id , guildId ) ; return ( _b = this . storageEngine ) === null || _b === void 0 ? void 0 : _b . remove ( this . buildId ( id , guildId ) ) ; } else { return undefined ; } }
Remove a role from the cache
 @param id id of the role
 @param guildId id of the guild belonging to the role
Remove a role from the cache @param id id of the role @param guildId id of the guild belonging to the role