Quotable Text Parameter Resolver
interface QuotableTextParameterResolver<T : ParameterResolver<T, R>, QuotableTextParameterResolver<T, R>, R : Any> : TextParameterResolver<T, R> (source)
Parameter resolver for parameters of @JDATextCommandVariation.
This resolver is an extension of TextParameterResolver, but the regex pattern is quoted to help command parsing.
Needs to be implemented alongside a ParameterResolver subclass.
Parameters
T
Type of the implementation
R
Type of the returned resolved objects
Properties
Functions
Link copied to clipboard
Returns a help example for the supplied option.
Link copied to clipboard
open fun resolve(variation: TextCommandVariation, event: MessageReceivedEvent, args: Array<String?>): R?
Returns a resolved object from this text command.
Link copied to clipboard
open suspend fun resolveSuspend(variation: TextCommandVariation, event: MessageReceivedEvent, args: Array<String?>): R?
open suspend fun resolveSuspend(option: TextCommandOption, event: MessageReceivedEvent, args: Array<String?>): R?
Returns a resolved object from this text command.