Class Embed

java.lang.Object
com.zenith.discord.Embed

public class Embed extends Object
Mutable data class for discord embeds Basically shadows EmbedCreateSpec while adding mutability
  • Constructor Details

    • Embed

      public Embed()
  • Method Details

    • isTitlePresent

      public boolean isTitlePresent()
    • isColorPresent

      public boolean isColorPresent()
    • isDescriptionPresent

      public boolean isDescriptionPresent()
    • isUrlPresent

      public boolean isUrlPresent()
    • addField

      public Embed addField(String name, String value, boolean inline)
    • addField

      public Embed addField(String name, Object value, boolean inline)
    • addField

      public Embed addField(String name, String value)
    • addField

      public Embed addField(String name, Object value)
    • footer

      public Embed footer(String text, String iconUrl)
    • primaryColor

      public Embed primaryColor()
    • errorColor

      public Embed errorColor()
    • successColor

      public Embed successColor()
    • inQueueColor

      public Embed inQueueColor()
    • color

      public Embed color(net.dv8tion.jda.api.utils.Color color)
    • color

      public Embed color(Color color)
    • toJDAEmbed

      public net.dv8tion.jda.api.entities.MessageEmbed toJDAEmbed()
    • builder

      public static Embed builder()
    • validateEmbed

      public static boolean validateEmbed(Embed embed)
    • truncateEmbed

      public static boolean truncateEmbed(Embed embed)
    • title

      public @Nullable String title()
    • description

      public @Nullable String description()
    • url

      public @Nullable String url()
    • timestamp

      public @Nullable Instant timestamp()
    • color

      public @Nullable Color color()
    • image

      public @Nullable String image()
    • thumbnail

      public @Nullable String thumbnail()
    • footer

      public @Nullable Embed.Footer footer()
    • author

      public @Nullable Embed.Author author()
    • fields

      public @NonNull List<Embed.Field> fields()
    • fileAttachment

      public @Nullable Embed.FileAttachment fileAttachment()
    • title

      public Embed title(@Nullable String title)
      Returns:
      this.
    • description

      public Embed description(@Nullable String description)
      Returns:
      this.
    • url

      public Embed url(@Nullable String url)
      Returns:
      this.
    • timestamp

      public Embed timestamp(@Nullable Instant timestamp)
      Returns:
      this.
    • image

      public Embed image(@Nullable String image)
      Returns:
      this.
    • thumbnail

      public Embed thumbnail(@Nullable String thumbnail)
      Returns:
      this.
    • footer

      public Embed footer(@Nullable Embed.Footer footer)
      Returns:
      this.
    • author

      public Embed author(@Nullable Embed.Author author)
      Returns:
      this.
    • fields

      public Embed fields(@NonNull List<Embed.Field> fields)
      Returns:
      this.
    • fileAttachment

      public Embed fileAttachment(@Nullable Embed.FileAttachment fileAttachment)
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object