Class ThreadMembersUpdateImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.ThreadMembersUpdateImpl
- All Implemented Interfaces:
ThreadMembersUpdate
,Entity
,HasGuild
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 5/9/21.
- 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
ConstructorDescriptionThreadMembersUpdateImpl
(Catnip catnip, long idAsLong, long guildIdAsLong, int memberCount, List<ThreadChannel.ThreadMember> addedMembers, List<String> removedMembers) -
Method Summary
Modifier and TypeMethodDescriptionaddedMembers
(List<ThreadChannel.ThreadMember> addedMembers) builder()
catnip()
Returns the catnip instance associated with this entity.void
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) int
memberCount
(int memberCount) removedMembers
(List<String> removedMembers) 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.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
ThreadMembersUpdateImpl
public ThreadMembersUpdateImpl() -
ThreadMembersUpdateImpl
public ThreadMembersUpdateImpl(Catnip catnip, long idAsLong, long guildIdAsLong, int memberCount, List<ThreadChannel.ThreadMember> addedMembers, List<String> removedMembers)
-
-
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.
-
memberCount
public int memberCount()- Specified by:
memberCount
in interfaceThreadMembersUpdate
-
addedMembers
- Specified by:
addedMembers
in interfaceThreadMembersUpdate
-
removedMembers
- Specified by:
removedMembers
in interfaceThreadMembersUpdate
-
idAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
memberCount
- Returns:
this
.
-
addedMembers
- Returns:
this
.
-
removedMembers
- Returns:
this
.
-