Class DeletedThreadImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.DeletedThreadImpl
- All Implemented Interfaces:
DeletedThread
,Entity
,HasGuild
,HasParentChannel
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 5/9/21.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionDeletedThreadImpl
(Catnip catnip, Channel.ChannelType type, long idAsLong, long guildIdAsLong, long parentIdAsLong) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
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) long
parentIdAsLong
(long parentIdAsLong) type()
type
(Channel.ChannelType type) 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.HasParentChannel
parentId
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
-
DeletedThreadImpl
public DeletedThreadImpl() -
DeletedThreadImpl
public DeletedThreadImpl(Catnip catnip, Channel.ChannelType type, long idAsLong, long guildIdAsLong, long parentIdAsLong)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
type
- Specified by:
type
in interfaceDeletedThread
-
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.
-
parentIdAsLong
public long parentIdAsLong()- Specified by:
parentIdAsLong
in interfaceHasParentChannel
- Returns:
- The id of the
Category
that is the parent of this channel. A value of0
means no parent.
-
type
- Returns:
this
.
-
idAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
parentIdAsLong
- Returns:
this
.
-