Class MessageEmbedUpdateImpl
java.lang.Object
com.mewna.catnip.entity.impl.message.MessageEmbedUpdateImpl
- All Implemented Interfaces:
Entity
,MessageEmbedUpdate
,GuildEntity
,HasChannel
,HasGuild
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 10/9/18.
- Author:
- amy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionMessageEmbedUpdateImpl
(Catnip catnip, long idAsLong, long guildIdAsLong, long channelIdAsLong, List<Embed> embeds) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
long
channelIdAsLong
(long channelIdAsLong) embeds()
long
The id of the guild this entity is from.guildIdAsLong
(long guildIdAsLong) long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) 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.GuildEntity
guild
Methods inherited from interface com.mewna.catnip.entity.partials.HasChannel
channelId
Methods inherited from interface com.mewna.catnip.entity.message.MessageEmbedUpdate
channel
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
MessageEmbedUpdateImpl
public MessageEmbedUpdateImpl() -
MessageEmbedUpdateImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
guildIdAsLong
public long guildIdAsLong()Description copied from interface:HasGuild
The id of the guild this entity is from.- Specified by:
guildIdAsLong
in interfaceHasGuild
- Returns:
- Long representing the guild ID.
-
channelIdAsLong
public long channelIdAsLong()- Specified by:
channelIdAsLong
in interfaceHasChannel
-
embeds
- Specified by:
embeds
in interfaceMessageEmbedUpdate
-
idAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
channelIdAsLong
- Returns:
this
.
-
embeds
- Returns:
this
.
-