getGeneratedValueSupplier

open fun getGeneratedValueSupplier(commandPath: CommandPath, optionName: String, parameterType: ParameterType): TextGeneratedValueSupplier(source)

Returns the generated value supplier of an @GeneratedOption.

This method will only be called once per command option per guild.

Return

A TextGeneratedValueSupplier to generate the option on command execution

Parameters

commandPath

The path of the command, as set in JDATextCommandVariation

optionName

The name of the transformed command option, might not be equal to the parameter name

parameterType

The boxed type of the command option