A B C D E F G I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addArgument(Argument) - Method in class me.s3ns3iw00.jcommands.Command
-
Adds an argument to the command
- addArgument(Argument...) - Method in class me.s3ns3iw00.jcommands.Command
-
Adds arguments to the command
- addArgument(InputArgument) - Method in class me.s3ns3iw00.jcommands.argument.type.ConstantArgument
-
Adds an argument to the argument
- addArgument(InputArgument...) - Method in class me.s3ns3iw00.jcommands.argument.type.ConstantArgument
-
Adds arguments to the argument
- addArgument(ConstantArgument) - Method in class me.s3ns3iw00.jcommands.argument.type.GroupArgument
-
Adds a
ConstantArgument
to the argument - addArgument(ConstantArgument...) - Method in class me.s3ns3iw00.jcommands.argument.type.GroupArgument
-
Adds a list of
ConstantArgument
to the argument - addArgument(T) - Method in class me.s3ns3iw00.jcommands.argument.SubArgument
-
Adds an argument to the argument
- addAutocomplete(Autocomplete) - Method in class me.s3ns3iw00.jcommands.argument.AutocompletableInputArgument
- addChoice(String, long) - Method in class me.s3ns3iw00.jcommands.argument.type.ComboArgument
-
Adds a choice
- addChoice(String, String) - Method in class me.s3ns3iw00.jcommands.argument.type.ComboArgument
-
Adds a choice
- addConcatenator(Concatenator, Argument...) - Method in class me.s3ns3iw00.jcommands.Command
-
Adds a concatenator to the command Every argument in the list must belong to this command, otherwise the concatenation won't proceed
- addPermissions(PermissionType...) - Method in class me.s3ns3iw00.jcommands.Command
-
Adds permissions that will be applied on the command Users will need these permissions in the specific channel to use the command
- apply(T) - Method in class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidator
-
Checks whether the given value is valid
- Argument<O> - Class in me.s3ns3iw00.jcommands.argument
-
Represents an argument
- Argument(String, String, SlashCommandOptionType) - Constructor for class me.s3ns3iw00.jcommands.argument.Argument
-
Default constructor
- ArgumentMismatchEvent - Class in me.s3ns3iw00.jcommands.event.type
-
An event that is provided by
ArgumentMismatchEventListener
- ArgumentMismatchEvent(Command, User, CommandResponder, Argument) - Constructor for class me.s3ns3iw00.jcommands.event.type.ArgumentMismatchEvent
- ArgumentMismatchEventListener - Interface in me.s3ns3iw00.jcommands.event.listener
-
A listener that gets triggered when an argument is not valid
- ArgumentPredicate<T> - Interface in me.s3ns3iw00.jcommands.argument.validator
-
A functional interface that stores a predicate for
ArgumentValidation
- ArgumentResult - Class in me.s3ns3iw00.jcommands.argument
-
This class converts a value into the given type with parsing string values and using
ArgumentResultConverter
- ArgumentResult(Class<?>, Object) - Constructor for class me.s3ns3iw00.jcommands.argument.ArgumentResult
-
Default constructor
- ArgumentResult(Class<?>, Object, ArgumentResultConverter) - Constructor for class me.s3ns3iw00.jcommands.argument.ArgumentResult
-
Default constructor
- ArgumentResultConverter<F,T> - Interface in me.s3ns3iw00.jcommands.argument.converter
-
Converter interface
- arguments(Argument...) - Method in class me.s3ns3iw00.jcommands.builder.CommandBuilder
- ArgumentValidation<T> - Class in me.s3ns3iw00.jcommands.argument.validator
-
A validation builder that is contained by
ArgumentValidator
- ArgumentValidation(ArgumentValidator<T>, Predicate<T>) - Constructor for class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidation
-
Constructs the validation
- ArgumentValidator<T> - Class in me.s3ns3iw00.jcommands.argument.validator
-
A
Function
that validates the argument's value by specific validation aspects - ArgumentValidator() - Constructor for class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidator
- ASCENDING - me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SortType
- AttachmentArgument<O> - Class in me.s3ns3iw00.jcommands.argument.type
-
An argument that only accepts
Attachment
input - AttachmentArgument(String, String, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.type.AttachmentArgument
- AutocompletableInputArgument<I,O> - Class in me.s3ns3iw00.jcommands.argument
-
The autocompletable version of
InputArgument
- AutocompletableInputArgument(String, String, SlashCommandOptionType) - Constructor for class me.s3ns3iw00.jcommands.argument.AutocompletableInputArgument
-
Constructs the argument with the default requirements
- AutocompletableInputArgument(String, String, SlashCommandOptionType, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.AutocompletableInputArgument
-
Runs the default constructor and specifies the result type of the value, that the input will be converted to
- Autocomplete - Class in me.s3ns3iw00.jcommands.argument.autocomplete
-
Represents an autocomplete Returns exactly the same list of
Choice
- Autocomplete(Choice...) - Constructor for class me.s3ns3iw00.jcommands.argument.autocomplete.Autocomplete
- AutocompleteState - Class in me.s3ns3iw00.jcommands.argument.autocomplete
- AutocompleteState(Command, TextChannel, User, Argument, Optional<?>, Map<Argument, Optional<?>>) - Constructor for class me.s3ns3iw00.jcommands.argument.autocomplete.AutocompleteState
B
- build() - Static method in class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidator
-
Instantiates the class statically
C
- ChannelArgument<O> - Class in me.s3ns3iw00.jcommands.argument.type
-
An argument that has a regex that only accepts
ServerChannel
input - ChannelArgument(String, String, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.type.ChannelArgument
- Choice - Class in me.s3ns3iw00.jcommands.argument.util
-
A helper data class that stores data for creating a
SlashCommandOptionChoice
- Choice(String, Object) - Constructor for class me.s3ns3iw00.jcommands.argument.util.Choice
-
Default constructor
- ComboArgument - Class in me.s3ns3iw00.jcommands.argument.type
-
Represents an
InputArgument
that has multiple choices, and they are the only valid values for the user to pick The values are key value pairs The key isString
and the value can beString
orLong
- ComboArgument(String, String, SlashCommandOptionType) - Constructor for class me.s3ns3iw00.jcommands.argument.type.ComboArgument
-
Constructs the argument with the default requirements
- Command - Class in me.s3ns3iw00.jcommands
-
A class that represents a command
- Command(String, String) - Constructor for class me.s3ns3iw00.jcommands.Command
-
Default constructor
- CommandActionEvent - Class in me.s3ns3iw00.jcommands.event.type
-
An event that is provided by
CommandActionEventListener
- CommandActionEvent(Command, User, CommandResponder, TextChannel, ArgumentResult[]) - Constructor for class me.s3ns3iw00.jcommands.event.type.CommandActionEvent
- CommandActionEventListener - Interface in me.s3ns3iw00.jcommands.event.listener
-
A listener that gets triggered when on every usage of a command
- CommandBuilder<B extends CommandBuilder<B>> - Class in me.s3ns3iw00.jcommands.builder
-
Useful class that makes
Command
creations more comfortable - CommandBuilder() - Constructor for class me.s3ns3iw00.jcommands.builder.CommandBuilder
- CommandBuilder.ConcatenatorBuilder - Class in me.s3ns3iw00.jcommands.builder
-
A nested class that unifies parameters of
Command.addConcatenator(Concatenator, Argument...)
forCommandBuilder.concatenators(ConcatenatorBuilder...)
- CommandEvent - Class in me.s3ns3iw00.jcommands.event
-
The base class of every event that contains the minimum information that is provided with events
- CommandEvent(Command, User, CommandResponder) - Constructor for class me.s3ns3iw00.jcommands.event.CommandEvent
- CommandHandler - Class in me.s3ns3iw00.jcommands
-
The main class of the API
- CommandHandler() - Constructor for class me.s3ns3iw00.jcommands.CommandHandler
- CommandResponder - Class in me.s3ns3iw00.jcommands
-
A class that takes methods out from
SlashCommandInteraction
that are to respond to a command - CommandResponder(SlashCommandInteraction) - Constructor for class me.s3ns3iw00.jcommands.CommandResponder
- concatenate(Object...) - Method in class me.s3ns3iw00.jcommands.argument.concatenation.Concatenator
-
Concatenates the arguments using subclass implementation
- concatenate(Object...) - Method in class me.s3ns3iw00.jcommands.argument.concatenation.type.StringConcatenator
-
Concatenates arguments into
String
separated with the specified delimiter - concatenate(Object...) - Method in class me.s3ns3iw00.jcommands.argument.concatenation.type.TypeConcatenator
-
Returns result of
TypeConcatenator.createInstance(Class, Object...)
- Concatenator<C,R> - Class in me.s3ns3iw00.jcommands.argument.concatenation
-
Concatenates the arguments' result to a type of value that based on the concatenation process The process is implemented by subclasses overriding
Concatenator.concatenate(Object...)
method - Concatenator(Class<R>) - Constructor for class me.s3ns3iw00.jcommands.argument.concatenation.Concatenator
-
Constructs the class with the default requirements
- ConcatenatorBuilder(Concatenator, Argument...) - Constructor for class me.s3ns3iw00.jcommands.builder.CommandBuilder.ConcatenatorBuilder
- concatenators(CommandBuilder.ConcatenatorBuilder...) - Method in class me.s3ns3iw00.jcommands.builder.CommandBuilder
-
Calls
Command.addConcatenator(Concatenator, Argument...)
on every element of the list - ConditionalAutocomplete - Class in me.s3ns3iw00.jcommands.argument.autocomplete.type
-
A type of
Autocomplete
that returns a list ofChoice
based on conditions - ConditionalAutocomplete(ConditionalAutocomplete.ConditionResult) - Constructor for class me.s3ns3iw00.jcommands.argument.autocomplete.type.ConditionalAutocomplete
- ConditionalAutocomplete.ConditionResult - Interface in me.s3ns3iw00.jcommands.argument.autocomplete.type
-
Functional interface that returns the list of
Choice
based on theAutocompleteState
- ConstantArgument - Class in me.s3ns3iw00.jcommands.argument.type
-
Only accepts inputs that are exactly the same as its name
- ConstantArgument(String, String) - Constructor for class me.s3ns3iw00.jcommands.argument.type.ConstantArgument
- CONTAINS - me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
- convertResult(ArgumentResultConverter<C, R>) - Method in class me.s3ns3iw00.jcommands.argument.concatenation.Concatenator
- convertResult(ArgumentResultConverter<I, O>) - Method in class me.s3ns3iw00.jcommands.argument.InputArgument
- convertTo(F) - Method in interface me.s3ns3iw00.jcommands.argument.converter.ArgumentResultConverter
- convertTo(String) - Method in class me.s3ns3iw00.jcommands.argument.converter.type.URLConverter
D
- DESCENDING - me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SortType
- disableInDMs() - Method in class me.s3ns3iw00.jcommands.builder.type.GlobalCommandBuilder
- disableInDMs() - Method in class me.s3ns3iw00.jcommands.type.GlobalCommand
-
Disables the command in DMs
E
- enableInDMs() - Method in class me.s3ns3iw00.jcommands.builder.type.GlobalCommandBuilder
- enableInDMs() - Method in class me.s3ns3iw00.jcommands.type.GlobalCommand
-
Enables the command in DMs
- ENDS_WITH - me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
F
- followUp() - Method in class me.s3ns3iw00.jcommands.CommandResponder
-
Creates a followup message builder to send the final result of late response
G
- get() - Method in class me.s3ns3iw00.jcommands.argument.ArgumentResult
-
Runs the process method and returns its result
- getActionListener() - Method in class me.s3ns3iw00.jcommands.Command
-
Gets the action listener
- getApi() - Static method in class me.s3ns3iw00.jcommands.CommandHandler
- getArgument() - Method in class me.s3ns3iw00.jcommands.event.type.ArgumentMismatchEvent
- getArguments() - Method in class me.s3ns3iw00.jcommands.argument.SubArgument
- getArguments() - Method in class me.s3ns3iw00.jcommands.Command
- getArguments() - Method in class me.s3ns3iw00.jcommands.event.type.CommandActionEvent
- getArgumentValidator() - Method in class me.s3ns3iw00.jcommands.argument.InputArgument
- getArgumentValues() - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.AutocompleteState
- getAutocompletes() - Method in class me.s3ns3iw00.jcommands.argument.AutocompletableInputArgument
- getChannel() - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.AutocompleteState
- getChannel() - Method in class me.s3ns3iw00.jcommands.event.type.CommandActionEvent
-
Gets the channel where the action has been happened
- getChoice() - Method in class me.s3ns3iw00.jcommands.argument.util.Choice
-
Constructs the
SlashCommandOptionChoice
instance - getChoice(Object) - Method in class me.s3ns3iw00.jcommands.argument.type.ComboArgument
-
Returns the choice based on value
- getChoices(AutocompleteState) - Method in interface me.s3ns3iw00.jcommands.argument.autocomplete.type.ConditionalAutocomplete.ConditionResult
- getCommand() - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.AutocompleteState
- getCommand() - Method in class me.s3ns3iw00.jcommands.builder.CommandBuilder
- getCommand() - Method in class me.s3ns3iw00.jcommands.builder.type.GlobalCommandBuilder
- getCommand() - Method in class me.s3ns3iw00.jcommands.builder.type.ServerCommandBuilder
- getCommand() - Method in class me.s3ns3iw00.jcommands.event.CommandEvent
- getCommandOption() - Method in class me.s3ns3iw00.jcommands.argument.Argument
- getCommandOption() - Method in class me.s3ns3iw00.jcommands.argument.AutocompletableInputArgument
- getCommandOption() - Method in class me.s3ns3iw00.jcommands.argument.InputArgument
- getCommandOption() - Method in class me.s3ns3iw00.jcommands.argument.type.ComboArgument
- getCommandOption() - Method in class me.s3ns3iw00.jcommands.argument.type.ConstantArgument
- getCommandOption() - Method in class me.s3ns3iw00.jcommands.argument.type.GroupArgument
- getCommands() - Static method in class me.s3ns3iw00.jcommands.CommandHandler
- getCommands(Server) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
- getConcatenators() - Method in class me.s3ns3iw00.jcommands.Command
- getCurrentArgument() - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.AutocompleteState
- getCurrentValue() - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.AutocompleteState
- getDefaultPermissions() - Method in class me.s3ns3iw00.jcommands.Command
- getDescription() - Method in class me.s3ns3iw00.jcommands.argument.Argument
- getDescription() - Method in class me.s3ns3iw00.jcommands.Command
- getEvent() - Method in class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidation
- getKey() - Method in class me.s3ns3iw00.jcommands.argument.util.Choice
- getMismatchListener() - Method in class me.s3ns3iw00.jcommands.argument.Argument
-
Deprecated.
- getName() - Method in class me.s3ns3iw00.jcommands.argument.Argument
- getName() - Method in class me.s3ns3iw00.jcommands.Command
- getPredicate() - Method in interface me.s3ns3iw00.jcommands.argument.validator.ArgumentPredicate
- getPredicate() - Method in class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidation
- getPredicate() - Method in class me.s3ns3iw00.jcommands.argument.validator.type.NumberPredicate
- getPredicate() - Method in class me.s3ns3iw00.jcommands.argument.validator.type.RegexPredicate
- getPredicate() - Method in class me.s3ns3iw00.jcommands.argument.validator.type.StringLengthPredicate
- getResponder() - Method in class me.s3ns3iw00.jcommands.event.CommandEvent
- getResult(AutocompleteState) - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.Autocomplete
- getResult(AutocompleteState) - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.type.ConditionalAutocomplete
- getResult(AutocompleteState) - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete
- getResultConverter() - Method in class me.s3ns3iw00.jcommands.argument.concatenation.Concatenator
- getResultConverter() - Method in class me.s3ns3iw00.jcommands.argument.InputArgument
- getResultType() - Method in class me.s3ns3iw00.jcommands.argument.Argument
- getResultType() - Method in class me.s3ns3iw00.jcommands.argument.concatenation.Concatenator
- getResultType() - Method in class me.s3ns3iw00.jcommands.argument.InputArgument
- getResultType() - Method in class me.s3ns3iw00.jcommands.argument.type.ComboArgument
- getResultType() - Method in class me.s3ns3iw00.jcommands.argument.type.ConstantArgument
- getResultType() - Method in class me.s3ns3iw00.jcommands.argument.type.GroupArgument
- getSender() - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.AutocompleteState
- getSender() - Method in class me.s3ns3iw00.jcommands.event.CommandEvent
- getType() - Method in class me.s3ns3iw00.jcommands.argument.Argument
- getType() - Method in enum me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
- getValue() - Method in class me.s3ns3iw00.jcommands.argument.util.Choice
- getValueAsLong() - Method in class me.s3ns3iw00.jcommands.argument.util.Choice
- getValueAsString() - Method in class me.s3ns3iw00.jcommands.argument.util.Choice
- GlobalCommand - Class in me.s3ns3iw00.jcommands.type
-
A
Command
that will be registered on all the servers where the bot on and also can be available in dms - GlobalCommand(String, String) - Constructor for class me.s3ns3iw00.jcommands.type.GlobalCommand
-
Default constructor
- GlobalCommandBuilder - Class in me.s3ns3iw00.jcommands.builder.type
-
Useful class that makes
GlobalCommand
creations more comfortable - GlobalCommandBuilder(String, String) - Constructor for class me.s3ns3iw00.jcommands.builder.type.GlobalCommandBuilder
- GREATER_THAN - me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
- greaterThan(long) - Static method in class me.s3ns3iw00.jcommands.argument.validator.type.NumberPredicate
-
Constructs the validation with only a maximum
- GroupArgument - Class in me.s3ns3iw00.jcommands.argument.type
-
Represents an argument with
SlashCommandOptionType.SUB_COMMAND_GROUP
type that only can containConstantArgument
This is for groupingSlashCommandOptionType.SUB_COMMAND
options becauseSlashCommandOptionType.SUB_COMMAND
cannot be nested - GroupArgument(String, String) - Constructor for class me.s3ns3iw00.jcommands.argument.type.GroupArgument
I
- ignoreCase() - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete
-
Ignores the case of characters in string values
- InputArgument<I,O> - Class in me.s3ns3iw00.jcommands.argument
-
Represents argument that can have multiple value depends on the user input and the restrictions of the argument These arguments can be optional
- InputArgument(String, String, SlashCommandOptionType) - Constructor for class me.s3ns3iw00.jcommands.argument.InputArgument
-
Constructs the argument with the default requirements
- InputArgument(String, String, SlashCommandOptionType, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.InputArgument
-
Runs the default constructor and specifies the result type of the value, that the input will be converted to
- isCommandExist(String) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Determines that a command with the given name is already exist or not
- isCommandExist(Server, String) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Determines that a command with the given name is already exist or not on the specified server
- isEnabledInDMs() - Method in class me.s3ns3iw00.jcommands.type.GlobalCommand
-
Checks if the command is enabled in DMs
- isNsfw() - Method in class me.s3ns3iw00.jcommands.Command
- isOnlyForAdministrators() - Method in class me.s3ns3iw00.jcommands.Command
- isOptional() - Method in class me.s3ns3iw00.jcommands.argument.InputArgument
L
- LESS_THAN - me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
- lessThan(long) - Static method in class me.s3ns3iw00.jcommands.argument.validator.type.NumberPredicate
-
Constructs the validation with only a minimum
- limit(int) - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete
-
Limits the number of result
- longerThan(int) - Static method in class me.s3ns3iw00.jcommands.argument.validator.type.StringLengthPredicate
-
Constructs the validation with only a maximum length
M
- me.s3ns3iw00.jcommands - package me.s3ns3iw00.jcommands
- me.s3ns3iw00.jcommands.argument - package me.s3ns3iw00.jcommands.argument
- me.s3ns3iw00.jcommands.argument.autocomplete - package me.s3ns3iw00.jcommands.argument.autocomplete
- me.s3ns3iw00.jcommands.argument.autocomplete.type - package me.s3ns3iw00.jcommands.argument.autocomplete.type
- me.s3ns3iw00.jcommands.argument.concatenation - package me.s3ns3iw00.jcommands.argument.concatenation
- me.s3ns3iw00.jcommands.argument.concatenation.type - package me.s3ns3iw00.jcommands.argument.concatenation.type
- me.s3ns3iw00.jcommands.argument.converter - package me.s3ns3iw00.jcommands.argument.converter
- me.s3ns3iw00.jcommands.argument.converter.type - package me.s3ns3iw00.jcommands.argument.converter.type
- me.s3ns3iw00.jcommands.argument.type - package me.s3ns3iw00.jcommands.argument.type
- me.s3ns3iw00.jcommands.argument.util - package me.s3ns3iw00.jcommands.argument.util
- me.s3ns3iw00.jcommands.argument.validator - package me.s3ns3iw00.jcommands.argument.validator
- me.s3ns3iw00.jcommands.argument.validator.type - package me.s3ns3iw00.jcommands.argument.validator.type
- me.s3ns3iw00.jcommands.builder - package me.s3ns3iw00.jcommands.builder
- me.s3ns3iw00.jcommands.builder.type - package me.s3ns3iw00.jcommands.builder.type
- me.s3ns3iw00.jcommands.event - package me.s3ns3iw00.jcommands.event
- me.s3ns3iw00.jcommands.event.listener - package me.s3ns3iw00.jcommands.event.listener
- me.s3ns3iw00.jcommands.event.type - package me.s3ns3iw00.jcommands.event.type
- me.s3ns3iw00.jcommands.type - package me.s3ns3iw00.jcommands.type
- MentionArgument<O> - Class in me.s3ns3iw00.jcommands.argument.type
-
An argument that has a regex that only accepts
User
input - MentionArgument(String, String, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.type.MentionArgument
- minCharToSearch(int) - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete
-
Sets the minimum number of character that the expression's length have to be
N
- notInRage(int, int) - Static method in class me.s3ns3iw00.jcommands.argument.validator.type.StringLengthPredicate
-
Constructs the validation with a range
- notInRage(long, long) - Static method in class me.s3ns3iw00.jcommands.argument.validator.type.NumberPredicate
-
Constructs the validation with a range
- notValidFor(String) - Static method in class me.s3ns3iw00.jcommands.argument.validator.type.RegexPredicate
-
Constructs an instance of the class statically
- NumberArgument<O> - Class in me.s3ns3iw00.jcommands.argument.type
-
An argument that only accepts
Long
input inside long's range - NumberArgument(String, String, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.type.NumberArgument
- NumberPredicate - Class in me.s3ns3iw00.jcommands.argument.validator.type
-
An
ArgumentPredicate
that can be used on arguments withLong
input type
It validates the input with an inclusive range - NumberPredicate(long, long) - Constructor for class me.s3ns3iw00.jcommands.argument.validator.type.NumberPredicate
O
- onAction(CommandActionEventListener) - Method in class me.s3ns3iw00.jcommands.builder.CommandBuilder
- onAction(CommandActionEvent) - Method in interface me.s3ns3iw00.jcommands.event.listener.CommandActionEventListener
- onArgumentMismatch(ArgumentMismatchEvent) - Method in interface me.s3ns3iw00.jcommands.event.listener.ArgumentMismatchEventListener
P
- permissions(PermissionType...) - Method in class me.s3ns3iw00.jcommands.builder.CommandBuilder
R
- RegexPredicate - Class in me.s3ns3iw00.jcommands.argument.validator.type
-
A regex validation predicate that is true when the input does not match the specified regex
- RegexPredicate(String) - Constructor for class me.s3ns3iw00.jcommands.argument.validator.type.RegexPredicate
- registerArgumentConverter(Class<?>, ArgumentResultConverter) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Deprecated.
- registerCommand(GlobalCommandBuilder) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Calls the
CommandHandler.registerCommand(GlobalCommand)
method with the command contained by theGlobalCommandBuilder
class - registerCommand(ServerCommandBuilder, Server...) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Calls the
CommandHandler.registerCommand(ServerCommand, Server...)
method with the command contained by theServerCommandBuilder
class - registerCommand(GlobalCommand) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Registers command globally That means the command will be available in all the servers where the bot on, and also can be available in dms Sets up permissions with discord's default permission system
- registerCommand(ServerCommand, Server...) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Registers the command for the listener on the specified servers and sets up permissions with discord's default permission system
- respondLater() - Method in class me.s3ns3iw00.jcommands.CommandResponder
-
Creates an updater that listens for the response In this case a waiting message can be sent to the user NOTE: Late responses need to be sent within 15 minutes, otherwise Discord drops it
- respondLaterEphemeral() - Method in class me.s3ns3iw00.jcommands.CommandResponder
-
Creates an ephemeral updater that listens for the response In this case a waiting message can be sent to the user NOTE: Late responses need to be sent within 15 minutes, otherwise Discord drops it
- respondNow() - Method in class me.s3ns3iw00.jcommands.CommandResponder
-
Creates a responder to respond immediately to the command
- respondWithModal(String, String, List<HighLevelComponent>) - Method in class me.s3ns3iw00.jcommands.CommandResponder
-
Creates a responder to respond with a modal to the command
- respondWithModal(String, String, HighLevelComponent...) - Method in class me.s3ns3iw00.jcommands.CommandResponder
-
Creates a responder to respond with a modal to the command
- RoleArgument<O> - Class in me.s3ns3iw00.jcommands.argument.type
-
An argument that only accepts role as input and returns a
Role
- RoleArgument(String, String, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.type.RoleArgument
S
- SearchAutocomplete - Class in me.s3ns3iw00.jcommands.argument.autocomplete.type
-
A type of
Autocomplete
that takes a datasource and returns a list ofChoice
based on user input, like a search bar The minimum number of characters for searching can be limited, the result can be sorted, its number can be limited - SearchAutocomplete(SearchAutocomplete.SearchType, List<Object>) - Constructor for class me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete
-
Default constructor
- SearchAutocomplete.SearchType - Enum in me.s3ns3iw00.jcommands.argument.autocomplete.type
-
An enum that stores the possible search types with the corresponding
SlashCommandOptionType
- SearchAutocomplete.SortType - Enum in me.s3ns3iw00.jcommands.argument.autocomplete.type
-
An enum that stores the possible sort types
- ServerCommand - Class in me.s3ns3iw00.jcommands.type
-
A
Command
that only can be registered on servers - ServerCommand(String, String) - Constructor for class me.s3ns3iw00.jcommands.type.ServerCommand
-
Default constructor
- ServerCommandBuilder - Class in me.s3ns3iw00.jcommands.builder.type
-
Useful class that makes
ServerCommand
creations more comfortable - ServerCommandBuilder(String, String) - Constructor for class me.s3ns3iw00.jcommands.builder.type.ServerCommandBuilder
- setApi(DiscordApi) - Static method in class me.s3ns3iw00.jcommands.CommandHandler
-
Initiates the command listener
- setNsfw() - Method in class me.s3ns3iw00.jcommands.Command
-
Sets the command age-restricted NOTE: this cannot be updated for now, so it only takes effect at the creation of the command
- setOnAction(CommandActionEventListener) - Method in class me.s3ns3iw00.jcommands.Command
-
Sets the action listener
- setOnlyForAdministrators() - Method in class me.s3ns3iw00.jcommands.Command
-
Sets the command available only for administrators by default
- setOnMismatch(ArgumentMismatchEventListener) - Method in class me.s3ns3iw00.jcommands.argument.Argument
-
Deprecated.
- setOptional() - Method in class me.s3ns3iw00.jcommands.argument.InputArgument
- shorterThan(int) - Static method in class me.s3ns3iw00.jcommands.argument.validator.type.StringLengthPredicate
-
Constructs the validation with only a minimum length
- sort(SearchAutocomplete.SortType) - Method in class me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete
-
Sorts the result by
SearchAutocomplete.SortType
- STARTS_WITH - me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
- StringArgument<O> - Class in me.s3ns3iw00.jcommands.argument.type
-
An argument that only accepts
String
input - StringArgument(String, String, Class<O>) - Constructor for class me.s3ns3iw00.jcommands.argument.type.StringArgument
- StringConcatenator<R> - Class in me.s3ns3iw00.jcommands.argument.concatenation.type
-
Represents a type of
Concatenator
that concatenates the arguments' result to aString
separated with a delimiter - StringConcatenator(String, Class<R>) - Constructor for class me.s3ns3iw00.jcommands.argument.concatenation.type.StringConcatenator
- StringLengthPredicate - Class in me.s3ns3iw00.jcommands.argument.validator.type
-
An
ArgumentPredicate
that can be used on arguments withString
input type
It validates the length of the input with an inclusive range - StringLengthPredicate(int, int) - Constructor for class me.s3ns3iw00.jcommands.argument.validator.type.StringLengthPredicate
- SubArgument<T extends Argument,R> - Class in me.s3ns3iw00.jcommands.argument
-
Represents a sub argument Classes that extends this class can have arguments
- SubArgument(String, String, SlashCommandOptionType) - Constructor for class me.s3ns3iw00.jcommands.argument.SubArgument
-
Constructs the argument with the default requirements
T
- thenRespond(ArgumentMismatchEventListener) - Method in class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidation
-
Creates the
ArgumentMismatchEventListener
that gets triggered - TypeConcatenator<C,R> - Class in me.s3ns3iw00.jcommands.argument.concatenation.type
-
Represents a type of
Concatenator
- TypeConcatenator(Class<R>) - Constructor for class me.s3ns3iw00.jcommands.argument.concatenation.type.TypeConcatenator
U
- URLArgument - Class in me.s3ns3iw00.jcommands.argument.type
-
An argument that only accepts
String
input that is a valid URL (can be parsed toURL
) - URLArgument(String, String) - Constructor for class me.s3ns3iw00.jcommands.argument.type.URLArgument
- URLConverter - Class in me.s3ns3iw00.jcommands.argument.converter.type
-
Converts to
URL
from the given value that is expectedly is a validURL
. - URLConverter() - Constructor for class me.s3ns3iw00.jcommands.argument.converter.type.URLConverter
V
- valueOf(String) - Static method in enum me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SortType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SearchType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum me.s3ns3iw00.jcommands.argument.autocomplete.type.SearchAutocomplete.SortType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- when(Predicate<T>) - Method in class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidator
-
Creates a validation
- when(ArgumentPredicate<T>) - Method in class me.s3ns3iw00.jcommands.argument.validator.ArgumentValidator
-
Creates a validation with
ArgumentPredicate
- whenAboveMaxSize(int) - Method in class me.s3ns3iw00.jcommands.argument.type.AttachmentArgument
-
Creates a size validation that limits maximum allowed size for the attachment in bytes
- whenAboveMaxSizeInMB(double) - Method in class me.s3ns3iw00.jcommands.argument.type.AttachmentArgument
-
Creates a size validation that limits maximum allowed size for the attachment in megabytes
The size will be converted to bytes (multiplying by 1000 two times) and explicit converted to integer, therefore the maximum value could be 2147.483647 - whenInvalidExtension(Set<String>) - Method in class me.s3ns3iw00.jcommands.argument.type.AttachmentArgument
-
Creates an extension validation
- whenInvalidUrl() - Method in class me.s3ns3iw00.jcommands.argument.type.URLArgument
-
Returns the validation to be able to set the response that will be sent when the input is not valid for the regex
- whenNotInRange(int, int) - Method in class me.s3ns3iw00.jcommands.argument.type.StringArgument
-
Creates an inclusive range validation
- whenNotInRange(long, long) - Method in class me.s3ns3iw00.jcommands.argument.type.NumberArgument
-
Creates an inclusive range validation
All Classes All Packages