Text Parameter Resolver
interface TextParameterResolver<T : ParameterResolver<T, R>, TextParameterResolver<T, R>, R : Any> : IParameterResolver<T> (source)
Parameter resolver for parameters of @JDATextCommandVariation.
Needs to be implemented alongside a ParameterResolver subclass.
Parameters
T
Type of the implementation
R
Type of the returned resolved objects
Inheritors
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.