Class ApplicationCommandImpl
java.lang.Object
com.mewna.catnip.entity.impl.interaction.command.ApplicationCommandImpl
- All Implemented Interfaces:
Entity
,ApplicationCommand
,HasApplication
,HasDescription
,HasGuild
,HasName
,Snowflake
,Timestamped
,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
ConstructorDescriptionApplicationCommandImpl
(Catnip catnip, long idAsLong, long applicationIdAsLong, long guildIdAsLong, String name, String description, List<ApplicationCommandOption> options, long versionAsLong) -
Method Summary
Modifier and TypeMethodDescriptionlong
applicationIdAsLong
(long applicationIdAsLong) builder()
catnip()
Returns the catnip instance associated with this entity.void
description
(String description) 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()
options()
options
(List<ApplicationCommandOption> options) long
versionAsLong
(long versionAsLong) 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.interaction.command.ApplicationCommand
version
Methods inherited from interface com.mewna.catnip.entity.partials.HasApplication
applicationId
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
-
ApplicationCommandImpl
public ApplicationCommandImpl() -
ApplicationCommandImpl
public ApplicationCommandImpl(Catnip catnip, long idAsLong, long applicationIdAsLong, long guildIdAsLong, String name, String description, List<ApplicationCommandOption> options, long versionAsLong)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
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. -
applicationIdAsLong
public long applicationIdAsLong()- Specified by:
applicationIdAsLong
in interfaceHasApplication
- Returns:
- The id of the application that this entity belongs to.
-
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
-
description
- Specified by:
description
in interfaceHasDescription
-
options
- Specified by:
options
in interfaceApplicationCommand
-
versionAsLong
public long versionAsLong()- Specified by:
versionAsLong
in interfaceApplicationCommand
-
idAsLong
- Returns:
this
.
-
applicationIdAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
name
- Returns:
this
.
-
description
- Returns:
this
.
-
options
- Returns:
this
.
-
versionAsLong
- Returns:
this
.
-