public final class Embed
extends java.lang.Object
| Constructor and Description |
|---|
Embed() |
| Modifier and Type | Method and Description |
|---|---|
Embed |
addField(Field field)
Adds a new field to the embed.
|
Embed |
addField(java.lang.String name,
java.lang.Number value,
boolean inline)
Adds a new field to the embed.
|
Embed |
addField(java.lang.String name,
java.lang.String value,
boolean inline)
Adds a new field to the embed.
|
Author |
getAuthor()
Gets the author info of the embed.
|
int |
getColor()
Gets the color to display for the embed.
|
java.lang.String |
getDescription()
Gets the description text for the embed.
|
java.util.List<Field> |
getFields()
Gets all the field info for the embed.
|
Footer |
getFooter()
Gets the footer info for the embed.
|
Image |
getImage()
Gets the image info for the embed.
|
Thumbnail |
getThumbnail()
Gets the thumbnail info for the embed.
|
java.time.OffsetDateTime |
getTimestamp()
Gets the embed timestamp info.
|
java.lang.String |
getTitle()
Gets the title of the embed.
|
java.lang.String |
getUrl()
Gets the URL of the embed.
|
Embed |
setAuthor(Author author)
Sets the authorship info for the embed.
|
Embed |
setColor(int color)
Sets the color of the embed.
|
Embed |
setDescription(java.lang.String description)
Sets the description text for the embed.
|
Embed |
setFooter(Footer footer)
Sets the footer info for the embed.
|
Embed |
setImage(Image image)
Sets the image info for the embed.
|
Embed |
setImage(java.lang.String url)
Sets the image URL of the embed.
|
Embed |
setThumbnail(java.lang.String url)
Sets the thumbnail URL for the embed.
|
Embed |
setThumbnail(Thumbnail thumbnail)
Sets the thumbnail info for the embed.
|
Embed |
setTimestamp()
Sets the embed timestamp to the current system time..
|
Embed |
setTimestamp(java.time.OffsetDateTime timestamp)
Sets the embed timestamp.
|
Embed |
setTimestamp(java.time.temporal.TemporalAccessor timestamp)
Sets the embed timestamp.
|
Embed |
setTitle(java.lang.String title)
Sets the title of the embed.
|
Embed |
setUrl(java.lang.String url)
Sets the URL for the embed to link to.
|
@Nullable public java.lang.String getTitle()
public Embed setTitle(@Nullable java.lang.String title)
title - The title of the embed.@Nullable public java.lang.String getUrl()
public Embed setUrl(@Nullable java.lang.String url)
title has also been set this will
create a hyperlink.url - The URL for the embed to link to.@Nullable public java.lang.String getDescription()
public Embed setDescription(@Nullable java.lang.String description)
description - The description text for the embed.public int getColor()
public Embed setColor(int color)
color - The color of the embed as a packed RGB integer.@Nullable public Author getAuthor()
public Embed setAuthor(@Nullable Author author)
author - The new authorship info.@Nullable public java.util.List<Field> getFields()
public Embed addField(java.lang.String name, java.lang.Number value, boolean inline)
name - The name of the field.value - The value of the field.inline - Whether or not the field should be linline with other fields.public Embed addField(java.lang.String name, java.lang.String value, boolean inline)
name - The name of the field.value - The value of the field.inline - Whether or not the field should be inline with other fields.public Embed addField(Field field)
field - The new field to add to the embed.@Nullable public Thumbnail getThumbnail()
public Embed setThumbnail(java.lang.String url)
url - The thumbnail URL to use.public Embed setThumbnail(@Nullable Thumbnail thumbnail)
thumbnail - The thumbnail info for the embed.@Nullable public Image getImage()
public Embed setImage(java.lang.String url)
url - The image URL for the embed.public Embed setImage(@Nullable Image image)
image - The new image info for the embed.@Nullable public Footer getFooter()
public Embed setFooter(@Nullable Footer footer)
footer - The footer info for the embed.@Nullable public java.time.OffsetDateTime getTimestamp()
public Embed setTimestamp(@Nullable java.time.temporal.TemporalAccessor timestamp)
timestamp - The embed timestamp.public Embed setTimestamp()
public Embed setTimestamp(@Nullable java.time.OffsetDateTime timestamp)
timestamp - The embed timestamp.