Class ChannelMentionImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.ChannelMentionImpl
- All Implemented Interfaces:
ChannelMention
,Entity
,GuildEntity
,HasGuild
,HasName
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 8/19/19.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionChannelMentionImpl
(Catnip catnip, String name, Channel.ChannelType type, long idAsLong, long guildIdAsLong) -
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) name()
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.GuildEntity
guild
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
-
ChannelMentionImpl
public ChannelMentionImpl() -
ChannelMentionImpl
public ChannelMentionImpl(Catnip catnip, String name, Channel.ChannelType type, long idAsLong, long guildIdAsLong)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
name
-
type
- Specified by:
type
in interfaceChannelMention
-
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.
-
name
- Returns:
this
.
-
type
- Returns:
this
.
-
idAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-