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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionApplicationCommandOptionImpl(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) booleandefaultOption(boolean defaultOption) description(String description) name()options()options(List<ApplicationCommandOption> options) booleanrequired()required(boolean required) type()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
typein interfaceApplicationCommandOption
-
defaultOption
public boolean defaultOption()- Specified by:
defaultOptionin interfaceApplicationCommandOption
-
required
public boolean required()- Specified by:
requiredin interfaceApplicationCommandOption
-
choices
- Specified by:
choicesin interfaceApplicationCommandOption
-
options
- Specified by:
optionsin interfaceApplicationCommandOption
-
channelTypes
- Specified by:
channelTypesin interfaceApplicationCommandOption
-
description
- Specified by:
descriptionin 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.
-