revbot.js
    Preparing search index...

    Class MessageEmbed

    Represents a message embed, which can include rich content such as titles, descriptions, URLs, and media.

    Index

    Constructors

    Methods

    • Sets the media (e.g., image or video) of the embed.

      Parameters

      • media: string | Readable | File

        The media URL, File or Stream to set.

      Returns this

      The updated MessageEmbed instance.

    • Converts the embed to a JSON object that can be sent to the API.

      Returns {
          colour?: null | string;
          description?: null | string;
          icon_url?: null | string;
          media?: null | string;
          title?: null | string;
          url?: null | string;
      }

      The JSON representation of the embed.

    • Parameters

      • client: client

        The client instance used to send the embed.

      Returns Promise<
          {
              colour?: null
              | string;
              description?: null | string;
              icon_url?: null | string;
              media?: null | string;
              title?: null | string;
              url?: null | string;
          },
      >

      SendableEmbed Converts the embed to a JSON object that can be sent to the API, including media handling.