Optional
default?: DefaultValueSupplier | anyDefault value if no input or did not cast correctly. If using a flag match, setting the default value to a non-void value inverses the result.
Optional
description?: string | any | any[]The description of the argument
Optional
flag?: string | string[] | nullThe string(s) to use as the flag for flag or option match.
Optional
id?: string | nullID of the argument for use in the args object. This does nothing inside an ArgumentGenerator.
Optional
index?: number | nullIndex of phrase to start from. Applicable to phrase, text, content, rest, or separate match only. Ignored when used with the unordered option.
Optional
limit?: numberAmount of phrases to match when matching more than one. Applicable to text, content, rest, or separate match only.
Optional
match?: ArgumentMatchStringMethod to match text. Defaults to 'phrase'.
Optional
modifyOtherwise?: OtherwiseContentModifier | nullFunction to modify otherwise content.
Optional
multipleFlags?: booleanWhether or not to have flags process multiple inputs. For option flags, this works like the separate match; the limit option will also work here. For flags, this will count the number of occurrences.
Optional
otherwise?: MessageSendResolvable | OtherwiseContentSupplier | nullText sent if argument parsing fails. This overrides the default
option and all prompt options.
Optional
prompt?: ArgumentPromptOptions | boolean | nullPrompt options for when user does not provide input.
Optional
type?: ArgumentType | ArgumentTypeCasterType to cast to.
Optional
unordered?: boolean | number | number[]Marks the argument as unordered. Each phrase is evaluated in order until one matches (no input at all means no evaluation). Passing in a number forces evaluation from that index onwards. Passing in an array of numbers forces evaluation on those indices only. If there is a match, that index is considered used and future unordered args will not check that index again. If there is no match, then the prompting or default value is used. Applicable to phrase match only.
Options for how an argument parses text.