Class ApplicationCommandInteractionImpl
java.lang.Object
com.mewna.catnip.entity.impl.interaction.command.ApplicationCommandInteractionImpl
- All Implemented Interfaces:
Entity
,ApplicationCommandInteraction
,Interaction<ApplicationCommandInteractionData>
,GuildEntity
,HasChannel
,HasGuild
,Snowflake
,Timestamped
,RequiresCatnip
public class ApplicationCommandInteractionImpl
extends Object
implements ApplicationCommandInteraction, RequiresCatnip
- Since:
- 12/10/20.
- 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
ConstructorDescriptionApplicationCommandInteractionImpl
(Catnip catnip, InteractionType type, ApplicationCommandInteractionData data, Member member, String token, long guildIdAsLong, long channelIdAsLong, long idAsLong, int version) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
long
channelIdAsLong
(long channelIdAsLong) 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
-
ApplicationCommandInteractionImpl
public ApplicationCommandInteractionImpl() -
ApplicationCommandInteractionImpl
public ApplicationCommandInteractionImpl(Catnip catnip, InteractionType type, ApplicationCommandInteractionData data, Member member, String token, long guildIdAsLong, long channelIdAsLong, long idAsLong, int version)
-
-
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<ApplicationCommandInteractionData>
-
data
- Specified by:
data
in interfaceInteraction<ApplicationCommandInteractionData>
-
member
- Specified by:
member
in interfaceInteraction<ApplicationCommandInteractionData>
-
token
- Specified by:
token
in interfaceInteraction<ApplicationCommandInteractionData>
-
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.
-
channelIdAsLong
public long channelIdAsLong()- Specified by:
channelIdAsLong
in interfaceHasChannel
-
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
version
public int version()- Specified by:
version
in interfaceInteraction<ApplicationCommandInteractionData>
-
type
- Returns:
this
.
-
data
- Returns:
this
.
-
member
- Returns:
this
.
-
token
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
channelIdAsLong
- Returns:
this
.
-
idAsLong
- Returns:
this
.
-
version
- Returns:
this
.
-