public class MessageEmbedImpl extends java.lang.Object implements MessageEmbed
MessageEmbed.Provider, MessageEmbed.Thumbnail, MessageEmbed.VideoInfo| Constructor and Description |
|---|
MessageEmbedImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
MessageEmbed.Provider |
getAuthor()
The information on the creator of the embedded content.
This is typically used for Youtube stuff and will return the username of the video uploader. |
java.lang.String |
getDescription()
The description of the embedded resource.
This is provided only if Discord could find a description for the embedded resource using the provided url. Commonly, this is null. |
MessageEmbed.Provider |
getSiteProvider()
The information on site from which the embed was generated from.
If Discord did not generate any deliverable information about the site, this returns null. |
MessageEmbed.Thumbnail |
getThumbnail()
|
java.lang.String |
getTitle()
The title of the embed.
|
EmbedType |
getType()
The
EmbedType of this embed. |
java.lang.String |
getUrl()
The that was originally placed into chat that spawned this embed.
|
MessageEmbed.VideoInfo |
getVideoInfo()
The information about the video which should be displayed as an embed.
This is used when sites with HTML5 players are linked and embedded. |
int |
hashCode() |
MessageEmbedImpl |
setAuthor(MessageEmbed.Provider author) |
MessageEmbedImpl |
setDescription(java.lang.String description) |
MessageEmbedImpl |
setSiteProvider(MessageEmbed.Provider siteProvider) |
MessageEmbedImpl |
setThumbnail(MessageEmbed.Thumbnail thumbnail) |
MessageEmbedImpl |
setTitle(java.lang.String title) |
MessageEmbedImpl |
setType(EmbedType type) |
MessageEmbedImpl |
setUrl(java.lang.String url) |
MessageEmbedImpl |
setVideoInfo(MessageEmbed.VideoInfo videoInfo) |
java.lang.String |
toString() |
public java.lang.String getUrl()
MessageEmbedgetUrl in interface MessageEmbedpublic java.lang.String getTitle()
MessageEmbedEmbedType = IMAGE,
this method will return null.getTitle in interface MessageEmbedpublic java.lang.String getDescription()
MessageEmbedgetDescription in interface MessageEmbedpublic EmbedType getType()
MessageEmbedEmbedType of this embed.
WgetType in interface MessageEmbedEmbedType of this embed.public MessageEmbed.Thumbnail getThumbnail()
MessageEmbedThumbnail image to be displayed with the embed.Thumbnail was not part of this embed, this returns null.getThumbnail in interface MessageEmbedThumbnail instance containing general information on the displayable thumbnail.public MessageEmbed.Provider getSiteProvider()
MessageEmbedgetSiteProvider in interface MessageEmbedProvider containing site information.public MessageEmbed.Provider getAuthor()
MessageEmbedgetAuthor in interface MessageEmbedProvider containing author information.public MessageEmbed.VideoInfo getVideoInfo()
MessageEmbedEmbedType != VIDEO this will always return null.getVideoInfo in interface MessageEmbedVideoInfo containing the information about the video which should be embedded.public MessageEmbedImpl setUrl(java.lang.String url)
public MessageEmbedImpl setTitle(java.lang.String title)
public MessageEmbedImpl setDescription(java.lang.String description)
public MessageEmbedImpl setType(EmbedType type)
public MessageEmbedImpl setThumbnail(MessageEmbed.Thumbnail thumbnail)
public MessageEmbedImpl setSiteProvider(MessageEmbed.Provider siteProvider)
public MessageEmbedImpl setAuthor(MessageEmbed.Provider author)
public MessageEmbedImpl setVideoInfo(MessageEmbed.VideoInfo videoInfo)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object