Multiple Arg
class MultipleArg<Input, Output>(val type: Argument<Input, Output>, val name: String = type.name, description: String = "") : WrappedArgument<Input, Output, List<Input>, List<Output>>
Accepts multiple arguments of the given type. Returns a list.
Parameters
type
The Argument that you expect to be used to create the list.
Constructors
Functions
Link copied to clipboard
Perform a nested search on this wrapped argument to check for a certain type.
Link copied to clipboard
A function called whenever an example of this type is needed.
Link copied to clipboard
Utility function to check that this Argument is an OptionalArg.
Link copied to clipboard
Make this argument optional and fall back to the default value if the conversion fails.
open fun optional(default: suspend (DiscordContext) -> List<Output>): OptionalArg<List<Input>, List<Output>, List<Output>>
Make this argument optional and fall back to the default value if the conversion fails. Exposes a CommandEvent.
Link copied to clipboard
open fun optionalNullable(default: List<Output>?): OptionalArg<List<Input>, List<Output>, List<Output>?>
Make this argument optional and fall back to the default value if the conversion fails.
open fun optionalNullable(default: suspend (DiscordContext) -> List<Output>?): OptionalArg<List<Input>, List<Output>, List<Output>?>
Make this argument optional and fall back to the default value if the conversion fails. Exposes a CommandEvent.