Class EmojiUpdateImpl
java.lang.Object
com.mewna.catnip.entity.impl.guild.EmojiUpdateImpl
- All Implemented Interfaces:
Entity
,EmojiUpdate
,GuildEntity
,HasGuild
,RequiresCatnip
- Since:
- 10/9/18.
- Author:
- amy
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEmojiUpdateImpl
(Catnip catnip, long guildIdAsLong, List<Emoji.CustomEmoji> emojis) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
emojis()
emojis
(List<Emoji.CustomEmoji> emojis) long
The id of the guild this entity is from.guildIdAsLong
(long guildIdAsLong) 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
-
Constructor Details
-
EmojiUpdateImpl
public EmojiUpdateImpl() -
EmojiUpdateImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
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.
-
emojis
- Specified by:
emojis
in interfaceEmojiUpdate
- Returns:
- A non-
null
, possibly-empty list of the guild's emojis.
-
guildIdAsLong
- Returns:
this
.
-
emojis
- Returns:
this
.
-