Class EmbedImpl
java.lang.Object
com.mewna.catnip.entity.impl.message.EmbedImpl
- All Implemented Interfaces:
Embed
,Timestamped
- Since:
- 9/2/18.
- Author:
- natanbc
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.message.Embed
Embed.Author, Embed.EmbedType, Embed.Field, Embed.Footer, Embed.Image, Embed.Provider, Embed.Thumbnail, Embed.Video
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionEmbedImpl
(String title, Embed.EmbedType type, String description, String url, String timestamp, Integer color, Embed.Footer footer, Embed.Image image, Embed.Thumbnail thumbnail, Embed.Video video, Embed.Provider provider, Embed.Author author, List<? extends Embed.Field> fields) -
Method Summary
Modifier and TypeMethodDescriptionauthor()
Embed author.author
(Embed.Author author) static EmbedImpl.EmbedImplBuilder
builder()
color()
Embed color.Embed description.description
(String description) fields()
Embed fields.fields
(List<? extends Embed.Field> fields) footer()
Embed footer.footer
(Embed.Footer footer) image()
Embed image.image
(Embed.Image image) provider()
Embed provider.provider
(Embed.Provider provider) Embed thumbnail.thumbnail
(Embed.Thumbnail thumbnail) Embed timestamp.title()
Embed title.type()
Embed type.type
(Embed.EmbedType type) url()
Embed URL.video()
Embed video.video
(Embed.Video video) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
EmbedImpl
public EmbedImpl()
-
-
Method Details
-
fields
Description copied from interface:Embed
Embed fields. -
timestamp
Description copied from interface:Embed
Embed timestamp. -
builder
-
title
Description copied from interface:Embed
Embed title. -
type
Description copied from interface:Embed
Embed type. -
description
Description copied from interface:Embed
Embed description.- Specified by:
description
in interfaceEmbed
- Returns:
- Description of the embed, or null if absent.
-
url
Description copied from interface:Embed
Embed URL. -
color
Description copied from interface:Embed
Embed color. -
image
Description copied from interface:Embed
Embed image. -
thumbnail
Description copied from interface:Embed
Embed thumbnail. -
video
Description copied from interface:Embed
Embed video. -
provider
Description copied from interface:Embed
Embed provider. -
author
Description copied from interface:Embed
Embed author. -
title
- Returns:
this
.
-
type
- Returns:
this
.
-
description
- Returns:
this
.
-
url
- Returns:
this
.
-
timestamp
- Returns:
this
.
-
color
- Returns:
this
.
-
image
- Returns:
this
.
-
thumbnail
- Returns:
this
.
-
video
- Returns:
this
.
-
provider
- Returns:
this
.
-
author
- Returns:
this
.
-
fields
- Returns:
this
.
-