var color = Math.floor(Math.random() * 16777215).toString(16);
        var hex = Number.parseInt(color, 16);
        console.log(hex);
        message.channel.send({embed: {
            color: hex, //This is the place I attempt to implement it. It doesn't accept strings.
            author: {
          name: message.author.username + "'s Profile",
          icon_url: message.author.avatarURL
        },
        description: ":white_small_square: **About:** " + message.author.bio,
        fields: [{
            name: "Client Info",
            value: ":white_small_square: **User ID** - " + "`" + message.member.id + "`" + "\n:white_small_square: **Status** - " + "`" + message.author.presence.status.toUpperCase() + "`" + " | ***Is*** " + occupation
          },
          {
            name: "Server Info",
            value: ":white_small_square: **Joined at** - "  /*+ "`" + new Date(guild.detailsOfUser(message.author.user).joinedAt).toUTCString() + "`" */+ "\n:white_small_square: **Avowed Roles** - " + ranks
          }
        ],
        timestamp: new Date(),
        footer: {
          text: message.author.username,
        }
      }
    });
    }
I have been looking around and found a forum post in which a group of people successfully created a Hexadecimal generator in one line. This works perfectly fine, however, I do not want it to be a string. I have attempted to parseInt after the line but it just returns as "undefined" and when put into a spot of a number it says it is not an integer. If anyone has any ideas on how to parse it as an Int, please tell me.
EDIT: Prior to my explanation of why I am closing this off, thank you to everyone who helped me attempt to achieve repairing this problem. I was just experimenting and realised that the .toString(16) was never actually needed and that the resulting number was a valid color. Thanks to everyone once more for helping me
 
    