Package tech.xigam.cch.utils
Class Argument
java.lang.Object
tech.xigam.cch.utils.Argument
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Argumentcreate(String label, String description, String reference, net.dv8tion.jda.api.interactions.commands.OptionType type, boolean required, int positionInArguments) static ArgumentcreateTrailingArgument(String label, String description, String reference, net.dv8tion.jda.api.interactions.commands.OptionType type, boolean required, int positionInArguments) static ArgumentcreateWithChoices(String label, String description, String reference, net.dv8tion.jda.api.interactions.commands.OptionType type, boolean required, int positionInArguments, String... choices) range(int min, int max) static net.dv8tion.jda.api.interactions.commands.Command.Choice[]
-
Field Details
-
label
-
description
-
reference
-
argumentType
public final net.dv8tion.jda.api.interactions.commands.OptionType argumentType -
required
public final boolean required -
position
public final int position -
choices
-
min
public int min -
max
public int max -
trailing
public boolean trailing -
completable
public boolean completable
-
-
Method Details
-
create
-
createWithChoices
-
createTrailingArgument
-
toOptions
-
toChoices
public static net.dv8tion.jda.api.interactions.commands.Command.Choice[] toChoices(Argument argument) -
range
-