Class ApplicationCommandInteractionDataOptionImpl
java.lang.Object
com.mewna.catnip.entity.impl.interaction.command.ApplicationCommandInteractionDataOptionImpl
- All Implemented Interfaces:
Entity
,ApplicationCommandInteractionDataOption
,HasName
,RequiresCatnip
public class ApplicationCommandInteractionDataOptionImpl
extends Object
implements ApplicationCommandInteractionDataOption, RequiresCatnip
- Since:
- 12/10/20.
- Author:
- amy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionApplicationCommandInteractionDataOptionImpl
(Catnip catnip, String name, ApplicationCommandOptionType type, ApplicationCommandOptionChoice<?> value, List<ApplicationCommandInteractionDataOption> options) -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationCommandInteractionDataOptionImpl.ApplicationCommandInteractionDataOptionImplBuilder
builder()
catnip()
Returns the catnip instance associated with this entity.void
name()
options()
type()
value()
value
(ApplicationCommandOptionChoice<?> value)
-
Constructor Details
-
ApplicationCommandInteractionDataOptionImpl
public ApplicationCommandInteractionDataOptionImpl() -
ApplicationCommandInteractionDataOptionImpl
public ApplicationCommandInteractionDataOptionImpl(Catnip catnip, String name, ApplicationCommandOptionType type, ApplicationCommandOptionChoice<?> value, List<ApplicationCommandInteractionDataOption> options)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
public static ApplicationCommandInteractionDataOptionImpl.ApplicationCommandInteractionDataOptionImplBuilder builder() -
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
name
-
type
- Specified by:
type
in interfaceApplicationCommandInteractionDataOption
-
value
- Specified by:
value
in interfaceApplicationCommandInteractionDataOption
-
options
- Specified by:
options
in interfaceApplicationCommandInteractionDataOption
-
name
- Returns:
this
.
-
type
- Returns:
this
.
-
value
- Returns:
this
.
-
options
public ApplicationCommandInteractionDataOptionImpl options(List<ApplicationCommandInteractionDataOption> options) - Returns:
this
.
-