Class WebHookEmbed
java.lang.Object
net.joseplay.allianceutils.api.discord.webhook.WebHookEmbed
Represents a Discord webhook embed object.
Uses a fluent builder-style API for easier construction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a field to the embed.Sets the embed author.setColor(int color) Sets the embed color (decimal format, e.g., 0xFF0000).setDescription(String description) Sets the embed description.Sets the embed footer.Sets the embed main image.setThumbnail(String url) Sets the embed thumbnail image.setTimestamp(Instant instant) Sets the embed timestamp using ISO-8601 format.Sets the embed title.
-
Constructor Details
-
WebHookEmbed
public WebHookEmbed()
-
-
Method Details
-
setAuthor
Sets the embed author.- Parameters:
name- Author nameiconUrl- Author icon URLurl- Author link URL
-
setTitle
Sets the embed title. -
setDescription
Sets the embed description. -
setColor
Sets the embed color (decimal format, e.g., 0xFF0000). -
setThumbnail
Sets the embed thumbnail image. -
setImage
Sets the embed main image. -
setTimestamp
Sets the embed timestamp using ISO-8601 format. -
addField
Adds a field to the embed.- Parameters:
name- Field titlevalue- Field contentinline- Whether the field is inline
-