Package com.aliucord.wrappers.embeds
Class MessageEmbedWrapper
-
- All Implemented Interfaces:
public final class MessageEmbedWrapper
Wraps the obfuscated MessageEmbed class to provide nice method names and require only one central update if method names change after an update
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MessageEmbedWrapper.Companion
-
Field Summary
Fields Modifier and Type Field Description private final AuthorWrapper
author
private final EmbedAuthor
rawAuthor
private final Integer
color
private final String
description
private final List<FieldWrapper>
fields
private final List<EmbedField>
rawFields
private final FooterWrapper
footer
private final EmbedFooter
rawFooter
private final ThumbnailWrapper
thumbnail
private final EmbedThumbnail
rawThumbnail
private final ImageWrapper
image
private final EmbedImage
rawImage
private final VideoWrapper
video
private final EmbedVideo
rawVideo
private final ProviderWrapper
provider
private final EmbedProvider
rawProvider
private final UtcDateTime
timestamp
private final String
title
private final EmbedType
type
private final String
url
public final static MessageEmbedWrapper.Companion
Companion
-
Constructor Summary
Constructors Constructor Description MessageEmbedWrapper(MessageEmbed embed)
-
Method Summary
Modifier and Type Method Description final AuthorWrapper
getAuthor()
final EmbedAuthor
getRawAuthor()
final Integer
getColor()
final String
getDescription()
final List<FieldWrapper>
getFields()
final List<EmbedField>
getRawFields()
final FooterWrapper
getFooter()
final EmbedFooter
getRawFooter()
final ThumbnailWrapper
getThumbnail()
final EmbedThumbnail
getRawThumbnail()
final ImageWrapper
getImage()
final EmbedImage
getRawImage()
final VideoWrapper
getVideo()
final EmbedVideo
getRawVideo()
final ProviderWrapper
getProvider()
final EmbedProvider
getRawProvider()
final UtcDateTime
getTimestamp()
final String
getTitle()
final EmbedType
getType()
final String
getUrl()
final MessageEmbed
raw()
Returns the raw (obfuscated) MessageEmbed Object associated with this wrapper final static AuthorWrapper
getAuthor(MessageEmbed embed)
final static List<FieldWrapper>
getFields(MessageEmbed embed)
final static FooterWrapper
getFooter(MessageEmbed embed)
final static ImageWrapper
getImage(MessageEmbed embed)
final static ProviderWrapper
getProvider(MessageEmbed embed)
final static ThumbnailWrapper
getThumbnail(MessageEmbed embed)
final static VideoWrapper
getVideo(MessageEmbed embed)
-
-
Method Detail
-
getAuthor
final AuthorWrapper getAuthor()
-
getRawAuthor
final EmbedAuthor getRawAuthor()
-
getDescription
final String getDescription()
-
getFields
final List<FieldWrapper> getFields()
-
getRawFields
final List<EmbedField> getRawFields()
-
getFooter
final FooterWrapper getFooter()
-
getRawFooter
final EmbedFooter getRawFooter()
-
getThumbnail
final ThumbnailWrapper getThumbnail()
-
getRawThumbnail
final EmbedThumbnail getRawThumbnail()
-
getImage
final ImageWrapper getImage()
-
getRawImage
final EmbedImage getRawImage()
-
getVideo
final VideoWrapper getVideo()
-
getRawVideo
final EmbedVideo getRawVideo()
-
getProvider
final ProviderWrapper getProvider()
-
getRawProvider
final EmbedProvider getRawProvider()
-
getTimestamp
final UtcDateTime getTimestamp()
-
getType
final EmbedType getType()
-
raw
final MessageEmbed raw()
Returns the raw (obfuscated) MessageEmbed Object associated with this wrapper
-
getAuthor
final static AuthorWrapper getAuthor(MessageEmbed embed)
-
getFields
final static List<FieldWrapper> getFields(MessageEmbed embed)
-
getFooter
final static FooterWrapper getFooter(MessageEmbed embed)
-
getImage
final static ImageWrapper getImage(MessageEmbed embed)
-
getProvider
final static ProviderWrapper getProvider(MessageEmbed embed)
-
getThumbnail
final static ThumbnailWrapper getThumbnail(MessageEmbed embed)
-
getVideo
final static VideoWrapper getVideo(MessageEmbed embed)
-
-
-
-