User Profile System

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.7 kB
16
Indexable
Never
let height = "";
      const heightRoles = member.roles.cache.filter((role) =>
        [
          "4'5\" - 4'8\"",
          "4'9\" - 5'2\"",
          "5'3\" - 5'6\"",
          "5'7\" - 6'0\"",
          "6'1\" - 6'5\"",
          "6'6+\"",
        ].includes(role.name)
      );
      if (heightRoles.size > 0) {
        height = heightRoles.map((role) => role.toString()).join(", ");
      } else {
        height = "None";
      }

      const Embed1 = new EmbedBuilder()
        .setColor("Green")
        .setTitle(`${user.username} Profile`)
        .setDescription(
          "This is a profile system where people can get to know you a bit better and easier."
        )
        .addFields(
          { name: "Age", value: age },
          { name: "Gender", value: gender, inline: true },
          { name: "Verified", value: verify, inline: true },
          { name: "Orientation", value: "Orientation", inline: true },
          { name: "Pronouns", value: pronouns, inline: true },
          { name: "Height", value: height },
          { name: "Dating Status", value: "Dating Status" },
          { name: "Location", value: "Location" },
          { name: "DM Status", value: dmStatus },
          { name: "About me", value: "About me" },
          { name: "Looking for", value: "Looking for" }
          //{ name: "Hobbies", value: hobbies }
        )
        .setTimestamp()
        .setFooter({ text: "Some footer text here" });

      await interaction
        .reply({
          content: `${user.username}`,
          embeds: [Embed1],
        })
        .catch(console.error);
    }
  },
};