Class ReadonlyEmbed
- java.lang.Object
- 
- club.minnced.discord.webhook.send.WebhookEmbed
- 
- club.minnced.discord.webhook.receive.ReadonlyEmbed
 
 
- 
- All Implemented Interfaces:
- org.json.JSONString
 
 public class ReadonlyEmbed extends WebhookEmbed Extension ofWebhookEmbedwith additional meta-data on receivable embeds.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classReadonlyEmbed.EmbedImagePOJO containing meta-data about an embed image componentstatic classReadonlyEmbed.EmbedProviderPOJO containing meta-data for an embed providerstatic classReadonlyEmbed.EmbedVideoPOJO containing meta-data about an embed video- 
Nested classes/interfaces inherited from class club.minnced.discord.webhook.send.WebhookEmbedWebhookEmbed.EmbedAuthor, WebhookEmbed.EmbedField, WebhookEmbed.EmbedFooter, WebhookEmbed.EmbedTitle
 
- 
 - 
Field Summary- 
Fields inherited from class club.minnced.discord.webhook.send.WebhookEmbedMAX_FIELDS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ReadonlyEmbed(@Nullable OffsetDateTime timestamp, @Nullable Integer color, @Nullable String description, @Nullable ReadonlyEmbed.EmbedImage thumbnail, @Nullable ReadonlyEmbed.EmbedImage image, @Nullable WebhookEmbed.EmbedFooter footer, @Nullable WebhookEmbed.EmbedTitle title, @Nullable WebhookEmbed.EmbedAuthor author, @NotNull List<WebhookEmbed.EmbedField> fields, @Nullable ReadonlyEmbed.EmbedProvider provider, @Nullable ReadonlyEmbed.EmbedVideo video)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable ReadonlyEmbed.EmbedImagegetImage()The image of this embed.@Nullable ReadonlyEmbed.EmbedProvidergetProvider()TheReadonlyEmbed.EmbedProvider
 Used for services that are automatically embedded by discord when posting a link, this includes services like youtube or twitter.@Nullable ReadonlyEmbed.EmbedImagegetThumbnail()The thumbnail of this embed.@Nullable ReadonlyEmbed.EmbedVideogetVideo()The video of this embed.@NotNull WebhookEmbedreduced()Reduces this embed to a simplerWebhookEmbedinstance that can be used for sending, this is done implicitly when trying to send an instance of a readonly-embed.StringtoJSONString()StringtoString()JSON representation of this embed.- 
Methods inherited from class club.minnced.discord.webhook.send.WebhookEmbedgetAuthor, getColor, getDescription, getFields, getFooter, getImageUrl, getThumbnailUrl, getTimestamp, getTitle
 
- 
 
- 
- 
- 
Constructor Detail- 
ReadonlyEmbedpublic ReadonlyEmbed(@Nullable @Nullable OffsetDateTime timestamp, @Nullable @Nullable Integer color, @Nullable @Nullable String description, @Nullable @Nullable ReadonlyEmbed.EmbedImage thumbnail, @Nullable @Nullable ReadonlyEmbed.EmbedImage image, @Nullable @Nullable WebhookEmbed.EmbedFooter footer, @Nullable @Nullable WebhookEmbed.EmbedTitle title, @Nullable @Nullable WebhookEmbed.EmbedAuthor author, @NotNull @NotNull List<WebhookEmbed.EmbedField> fields, @Nullable @Nullable ReadonlyEmbed.EmbedProvider provider, @Nullable @Nullable ReadonlyEmbed.EmbedVideo video)
 
- 
 - 
Method Detail- 
getProvider@Nullable public @Nullable ReadonlyEmbed.EmbedProvider getProvider() TheReadonlyEmbed.EmbedProvider
 Used for services that are automatically embedded by discord when posting a link, this includes services like youtube or twitter.- Returns:
- Possibly-null embed provider
 
 - 
getThumbnail@Nullable public @Nullable ReadonlyEmbed.EmbedImage getThumbnail() The thumbnail of this embed.- Returns:
- Possibly-null ReadonlyEmbed.EmbedImagefor the thumbnail
 
 - 
getImage@Nullable public @Nullable ReadonlyEmbed.EmbedImage getImage() The image of this embed.- Returns:
- Possibly-null ReadonlyEmbed.EmbedImagefor the image
 
 - 
getVideo@Nullable public @Nullable ReadonlyEmbed.EmbedVideo getVideo() The video of this embed.
 This is a whitelisted feature only available for services like youtube and is only populated for link embeds.- Returns:
- Possibly-null ReadonlyEmbed.EmbedVideo
 
 - 
reduced@NotNull public @NotNull WebhookEmbed reduced() Reduces this embed to a simplerWebhookEmbedinstance that can be used for sending, this is done implicitly when trying to send an instance of a readonly-embed.- Overrides:
- reducedin class- WebhookEmbed
- Returns:
- The reduced embed instance
 
 - 
toStringpublic String toString() JSON representation of this embed.
 Note that received embeds look different compared to sent ones.- Overrides:
- toStringin class- WebhookEmbed
- Returns:
- The JSON representation
 
 - 
toJSONStringpublic String toJSONString() - Specified by:
- toJSONStringin interface- org.json.JSONString
- Overrides:
- toJSONStringin class- WebhookEmbed
 
 
- 
 
-