public class EmbedObject extends Object
| Constructor and Description |
|---|
EmbedObject(String token,
String message)
Constructs an object with a message token and a message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addField(String name,
String value,
boolean inLine)
Add a field to the embed object.
|
EmbedObject |
setAuthor(String name,
String url,
String icon)
Set the author for the embed object.
|
EmbedObject |
setColor(String color)
Set the color for the embed object.
|
EmbedObject |
setDescription(String text)
Set the description for the embed object.
|
EmbedObject |
setFooter(String text,
String icon)
Set the footer for the embed object.
|
EmbedObject |
setImage(String url)
Set the image URL for the embed object.
|
EmbedObject |
setThumbnail(String url)
Set the thumbnail for the embed object.
|
EmbedObject |
setTitle(String text)
Set the title for the embed object.
|
EmbedObject |
setUrl(String text)
Set the URL for the embed object.
|
public EmbedObject setTitle(String text)
text - a textpublic EmbedObject setDescription(String text)
text - a textpublic EmbedObject setUrl(String text)
text - a textpublic EmbedObject setThumbnail(String url)
url - an urlpublic EmbedObject setImage(String url)
url - an urlpublic EmbedObject setFooter(String text, String icon)
text - a texticon - an icon urlpublic EmbedObject setColor(String color)
color - a colorpublic EmbedObject setAuthor(String name, String url, String icon)
name - a texturl - an urlicon - an url iconCopyright © 2023. All rights reserved.