Class ApplicationCommandInteractionDataImpl
java.lang.Object
com.mewna.catnip.entity.impl.interaction.command.ApplicationCommandInteractionDataImpl
- All Implemented Interfaces:
Entity
,ApplicationCommandInteractionData
,HasName
,Snowflake
,Timestamped
,RequiresCatnip
public class ApplicationCommandInteractionDataImpl
extends Object
implements ApplicationCommandInteractionData, 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
ConstructorDescriptionApplicationCommandInteractionDataImpl
(Catnip catnip, long idAsLong, String name, List<ApplicationCommandInteractionDataOption> options) -
Method Summary
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
-
ApplicationCommandInteractionDataImpl
public ApplicationCommandInteractionDataImpl() -
ApplicationCommandInteractionDataImpl
public ApplicationCommandInteractionDataImpl(Catnip catnip, long idAsLong, String name, List<ApplicationCommandInteractionDataOption> options)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
public static ApplicationCommandInteractionDataImpl.ApplicationCommandInteractionDataImplBuilder 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. -
name
-
options
- Specified by:
options
in interfaceApplicationCommandInteractionData
-
idAsLong
- Returns:
this
.
-
name
- Returns:
this
.
-
options
public ApplicationCommandInteractionDataImpl options(List<ApplicationCommandInteractionDataOption> options) - Returns:
this
.
-