Class ApplicationCommandOptionImpl
java.lang.Object
com.mewna.catnip.entity.impl.interaction.command.ApplicationCommandOptionImpl
- All Implemented Interfaces:
ApplicationCommandOption
,HasDescription
,HasName
- Since:
- 12/10/20.
- Author:
- amy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionApplicationCommandOptionImpl
(ApplicationCommandOptionType type, boolean defaultOption, boolean required, List<ApplicationCommandOptionChoice<?>> choices, List<ApplicationCommandOption> options, List<Channel.ChannelType> channelTypes, String description, String name) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
channelTypes
(List<Channel.ChannelType> channelTypes) choices()
choices
(List<ApplicationCommandOptionChoice<?>> choices) boolean
defaultOption
(boolean defaultOption) description
(String description) name()
options()
options
(List<ApplicationCommandOption> options) boolean
required()
required
(boolean required) type()
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.ApplicationCommandOption
toJson
-
Constructor Details
-
ApplicationCommandOptionImpl
public ApplicationCommandOptionImpl() -
ApplicationCommandOptionImpl
public ApplicationCommandOptionImpl(ApplicationCommandOptionType type, boolean defaultOption, boolean required, List<ApplicationCommandOptionChoice<?>> choices, List<ApplicationCommandOption> options, List<Channel.ChannelType> channelTypes, String description, String name)
-
-
Method Details
-
builder
-
type
- Specified by:
type
in interfaceApplicationCommandOption
-
defaultOption
public boolean defaultOption()- Specified by:
defaultOption
in interfaceApplicationCommandOption
-
required
public boolean required()- Specified by:
required
in interfaceApplicationCommandOption
-
choices
- Specified by:
choices
in interfaceApplicationCommandOption
-
options
- Specified by:
options
in interfaceApplicationCommandOption
-
channelTypes
- Specified by:
channelTypes
in interfaceApplicationCommandOption
-
description
- Specified by:
description
in interfaceHasDescription
-
name
-
type
- Returns:
this
.
-
defaultOption
- Returns:
this
.
-
required
- Returns:
this
.
-
choices
- Returns:
this
.
-
options
- Returns:
this
.
-
channelTypes
- Returns:
this
.
-
description
- Returns:
this
.
-
name
- Returns:
this
.
-