Class ArgumentInteger
java.lang.Object
org.teleight.teleightbots.commands.builder.argument.Argument<Integer>
org.teleight.teleightbots.commands.builder.argument.ArgumentInteger
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an ArgumentInteger with the specified identifier. -
Method Summary
-
Constructor Details
-
ArgumentInteger
Constructs an ArgumentInteger with the specified identifier.- Parameters:
id- the identifier of the argument
-
-
Method Details
-
parse
Parses the input string into an integer.- Specified by:
parsein classArgument<Integer>- Parameters:
input- the input string to be parsed- Returns:
- the parsed integer
- Throws:
ArgumentSyntaxException- if the input string cannot be parsed into an integer
-