Class Embed
java.lang.Object
com.zenith.discord.Embed
Mutable data class for discord embeds
Basically shadows EmbedCreateSpec while adding mutability
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Embed.Authorauthor()author(@Nullable Embed.Author author) static Embedbuilder()protected boolean@Nullable Colorcolor()color(net.dv8tion.jda.api.utils.Color color) @Nullable Stringdescription(@Nullable String description) boolean@NonNull List<Embed.Field> fields()fields(@NonNull List<Embed.Field> fields) @Nullable Embed.FileAttachmentfileAttachment(@Nullable Embed.FileAttachment fileAttachment) @Nullable Embed.Footerfooter()footer(@Nullable Embed.Footer footer) inthashCode()@Nullable Stringimage()booleanbooleanbooleanboolean@Nullable String@Nullable Instant@Nullable Stringtitle()net.dv8tion.jda.api.entities.MessageEmbedtoString()static booleantruncateEmbed(Embed embed) @Nullable Stringurl()static booleanvalidateEmbed(Embed embed)
-
Constructor Details
-
Embed
public Embed()
-
-
Method Details
-
isTitlePresent
public boolean isTitlePresent() -
isColorPresent
public boolean isColorPresent() -
isDescriptionPresent
public boolean isDescriptionPresent() -
isUrlPresent
public boolean isUrlPresent() -
addField
-
addField
-
addField
-
addField
-
-
errorColor
-
successColor
-
inQueueColor
-
color
-
color
-
toJDAEmbed
public net.dv8tion.jda.api.entities.MessageEmbed toJDAEmbed() -
builder
-
validateEmbed
-
truncateEmbed
-
title
-
description
-
url
-
timestamp
-
color
-
image
-
thumbnail
-
author
-
fields
-
fileAttachment
-
title
-
description
-
url
-
timestamp
-
image
-
thumbnail
-
author
- Returns:
this.
-
fields
- Returns:
this.
-
fileAttachment
- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-