Premium

Code:

await message.channel.send({
      embeds: [
        new EmbedBuilder()
          .setColor("DarkRed")
          .setTimestamp()
          .setAuthor({
            name:
              message.member?.user?.globalName ??
              message.member?.user?.username ??
              "Unknown User",
            iconURL: message.member?.user?.displayAvatarURL() ?? "",
          })
          .setThumbnail(client.user.displayAvatarURL())
          .setDescription("You do not have a Premium subscription to OGHub."),
      ],
      components: [
        {
          type: 1,
          components: [
            {
              type: 2,
              style: 6,
              sku_id: 1270342893235605524,
            },
            {
              type: 2,
              label: "Sign-up ...",
              style: 5,
              url: "https://.../en/auth/sign-up",
            },
          ],
        },
      ],
    });


Error Code: RangeError: Buttons must have a label and/or an emoji
at validateRequiredButtonParameters .
Was this page helpful?