Type alias OptionProps

OptionProps: { children?: ReactNode; description?: ReactNode; emoji?: string; label?: ReactNode; value: string }

Type declaration

  • Optional children?: ReactNode

    The text shown to the user

  • Optional description?: ReactNode

    Description for the option, shown to the user

  • Optional emoji?: string

    Renders an emoji to the left of the text.

    Has to be a literal emoji character (e.g. 🍍), or an emoji code, like <:plus_one:778531744860602388>.

    To get an emoji code, type your emoji in Discord chat with a backslash `` in front. The bot has to be in the emoji's guild to use it.

  • Optional label?: ReactNode

    The text shown to the user. This takes priority over children

  • value: string

    The internal value of this option

Generated using TypeDoc