Optional Arg
class OptionalArg<I, O, O2>(val name: String, val type: Argument<I, O>, default: suspend DiscordContext.() -> O2) : WrappedArgument<I, O, I, O2>
An optional argument with a default value.
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
Accept multiple inputs of this Argument.
Link copied to clipboard
Make this argument optional and fall back to the default value if the conversion fails.
Make this argument optional and fall back to the default value if the conversion fails. Exposes a CommandEvent.
Link copied to clipboard
Make this argument optional and fall back to the default value if the conversion fails.
Make this argument optional and fall back to the default value if the conversion fails. Exposes a CommandEvent.