Class MessageApplicationImpl
java.lang.Object
com.mewna.catnip.entity.impl.message.MessageApplicationImpl
- All Implemented Interfaces:
Message.MessageApplication
,HasDescription
,HasIcon
,HasName
- Since:
- 8/5/19.
- Author:
- amy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
coverImage
(String coverImage) description
(String description) icon()
iconUrl
(ImageOptions options) id()
name()
-
Constructor Details
-
MessageApplicationImpl
public MessageApplicationImpl() -
MessageApplicationImpl
-
-
Method Details
-
iconUrl
- Specified by:
iconUrl
in interfaceHasIcon
- Returns:
- The icon's CDN URL, with the specified options applied. Will be
null if
HasIcon.icon()
is null, except in the case of aUser
.
-
builder
-
id
- Specified by:
id
in interfaceMessage.MessageApplication
- Returns:
- The application's id.
-
coverImage
- Specified by:
coverImage
in interfaceMessage.MessageApplication
- Returns:
- The application's cover image. Shown in embeds. May be null.
-
description
- Specified by:
description
in interfaceHasDescription
-
icon
-
name
-
id
- Returns:
this
.
-
coverImage
- Returns:
this
.
-
description
- Returns:
this
.
-
icon
- Returns:
this
.
-
name
- Returns:
this
.
-