case class ChoiceParam[Orig, A, F[_]] extends Param[Orig, A, F] with Product with Serializable

A parameter that allows multiple choices for the user.

Orig

The type the parameter originally has.

A

The type the parameter has after a bit of processing.

F

The context of the parameter, either Id or Option currently.

Source
params.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChoiceParam
  2. Serializable
  3. Product
  4. Equals
  5. Param
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val autocomplete: Option[(String) => Seq[Orig]]
  6. val choices: Map[String, Orig]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. val contramap: (A) => Orig
  9. val description: String
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. val fTransformer: FTransformer[F]
    Definition Classes
    ChoiceParamParam
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def imap[B](map: (A) => B)(contramap: (B) => A): ChoiceParam[Orig, B, F]

    imap the parameter.

    imap the parameter.

    Definition Classes
    ChoiceParamParam
  14. def imapWithResolve[B](map: (A, ApplicationCommandInteractionDataResolved) => Option[B])(contramap: (B) => A): ChoiceParam[Orig, B, F]

    imap the parameter with the resolved data.

    imap the parameter with the resolved data.

    Definition Classes
    ChoiceParamParam
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val makeOptionChoice: (String, Orig) => ApplicationCommandOptionChoice
  17. val map: (Orig, ApplicationCommandInteractionDataResolved) => Option[A]
  18. val maxValue: Option[Either[Int, Double]]
  19. val minValue: Option[Either[Int, Double]]
  20. val name: String

    Name of the parameter.

    Name of the parameter.

    Definition Classes
    ChoiceParamParam
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def noAutocomplete: ChoiceParam[Orig, A, F]
  23. def notRequired: ChoiceParam[Orig, A, Option]

    Sets the parameter as optional.

  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  26. val processAutoComplete: (Seq[Orig]) => Seq[Orig]
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. def required: ChoiceParam[Orig, A, Id]

    Sets the parameter as required.

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toCommandOption: ApplicationCommandOption

    Convert this parameter to an ApplicationCommandOption

    Convert this parameter to an ApplicationCommandOption

    Definition Classes
    ChoiceParamParam
  31. val tpe: Aux[Orig]

    Type of the parameter.

    Type of the parameter.

    Definition Classes
    ChoiceParamParam
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. def withAutocomplete(complete: (String) => Seq[A]): ChoiceParam[Orig, A, F]

    Sets the autocomplete to use for the parameter.

    Sets the autocomplete to use for the parameter. Can't be set at the same time as choices.

  36. def withChoices(choices: Seq[String])(implicit ev: =:=[String, A]): ChoiceParam[Orig, A, F]

    Sets the choices for the parameter.

    Sets the choices for the parameter. Can't be set at the same time as autocomplete.

  37. def withChoices(choices: Map[String, A]): ChoiceParam[Orig, A, F]

    Sets the choices for the parameter.

    Sets the choices for the parameter. Can't be set at the same time as autocomplete.

  38. def ~[B, G[_]](other: Param[_, B, G]): ParamList[~[F[A], G[B]]]

    Chain this parameter together with another.

    Chain this parameter together with another.

    Definition Classes
    Param

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Param[Orig, A, F]

Inherited from AnyRef

Inherited from Any

Ungrouped