Class SelectInteractionImpl
java.lang.Object
com.mewna.catnip.entity.impl.interaction.component.SelectInteractionImpl
- All Implemented Interfaces:
Entity
,SelectInteraction
,Interaction<SelectInteractionData>
,GuildEntity
,HasChannel
,HasGuild
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 7/12/21.
- Author:
- amy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionSelectInteractionImpl
(Catnip catnip, InteractionType type, SelectInteractionData data, Member member, String token, int version, long channelIdAsLong, long guildIdAsLong, long idAsLong) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
long
channelIdAsLong
(long channelIdAsLong) data()
data
(SelectInteractionData data) 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) member()
token()
type()
type
(InteractionType type) int
version()
version
(int version) 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.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
SelectInteractionImpl
public SelectInteractionImpl() -
SelectInteractionImpl
public SelectInteractionImpl(Catnip catnip, InteractionType type, SelectInteractionData data, Member member, String token, int version, long channelIdAsLong, long guildIdAsLong, long idAsLong)
-
-
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 interfaceInteraction<SelectInteractionData>
-
data
- Specified by:
data
in interfaceInteraction<SelectInteractionData>
-
member
- Specified by:
member
in interfaceInteraction<SelectInteractionData>
-
token
- Specified by:
token
in interfaceInteraction<SelectInteractionData>
-
version
public int version()- Specified by:
version
in interfaceInteraction<SelectInteractionData>
-
channelIdAsLong
public long channelIdAsLong()- Specified by:
channelIdAsLong
in interfaceHasChannel
-
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.
-
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
type
- Returns:
this
.
-
data
- Returns:
this
.
-
member
- Returns:
this
.
-
token
- Returns:
this
.
-
version
- Returns:
this
.
-
channelIdAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
idAsLong
- Returns:
this
.
-