Interface Embed
-
public interface EmbedThis interface represents an embed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Optional<EmbedAuthor>getAuthor()Gets the author of the embed.Optional<Color>getColor()Gets the color of the embed.Optional<String>getDescription()Gets the description of the embed.List<EmbedField>getFields()Gets the fields of the embed.Optional<EmbedFooter>getFooter()Gets the footer of the embed.Optional<EmbedImage>getImage()Gets the image of the embed.Optional<EmbedProvider>getProvider()Gets the provider of the embed.Optional<EmbedThumbnail>getThumbnail()Gets the thumbnail of the embed.Optional<Instant>getTimestamp()Gets the timestamp of the embed.Optional<String>getTitle()Gets the title of the embed.StringgetType()Gets the type of the embed.Optional<URL>getUrl()Gets the url of the embed.Optional<EmbedVideo>getVideo()Gets the video of the embed.default EmbedBuildertoBuilder()Creates a builder, based on the embed.
-
-
-
Method Detail
-
getType
String getType()
Gets the type of the embed. (always "rich" for webhook embeds)- Returns:
- The type of the embed.
-
getDescription
Optional<String> getDescription()
Gets the description of the embed.- Returns:
- The description of the embed.
-
getTimestamp
Optional<Instant> getTimestamp()
Gets the timestamp of the embed.- Returns:
- The timestamp of the embed.
-
getFooter
Optional<EmbedFooter> getFooter()
Gets the footer of the embed.- Returns:
- The footer of the embed.
-
getImage
Optional<EmbedImage> getImage()
Gets the image of the embed.- Returns:
- The image of the embed.
-
getThumbnail
Optional<EmbedThumbnail> getThumbnail()
Gets the thumbnail of the embed.- Returns:
- The thumbnail of the embed.
-
getVideo
Optional<EmbedVideo> getVideo()
Gets the video of the embed.- Returns:
- The video of the embed.
-
getProvider
Optional<EmbedProvider> getProvider()
Gets the provider of the embed.- Returns:
- The provider of the embed.
-
getAuthor
Optional<EmbedAuthor> getAuthor()
Gets the author of the embed.- Returns:
- The author of the embed.
-
getFields
List<EmbedField> getFields()
Gets the fields of the embed.- Returns:
- The fields of the embed.
-
toBuilder
default EmbedBuilder toBuilder()
Creates a builder, based on the embed. You can use this method, if you want to resend an embed, you received as a message.- Returns:
- A builder with the values of this embed.
-
-