View Source Nostrum.Struct.Component.TextInput (Nostrum v0.8.0)

Text Input.

Link to this section Summary

Link to this section Types

@type opts() :: [opt()]
@type t() :: %Nostrum.Struct.Component{
  components: term(),
  custom_id: Nostrum.Struct.Component.custom_id(),
  disabled: term(),
  emoji: term(),
  label: Nostrum.Struct.Component.label(),
  max_length: Nostrum.Struct.Component.max_length(),
  max_values: term(),
  min_length: Nostrum.Struct.Component.min_length(),
  min_values: term(),
  options: term(),
  placeholder: Nostrum.Struct.Component.placeholder(),
  required: term(),
  style: Nostrum.Struct.Component.style(),
  type: Nostrum.Struct.Component.type(),
  url: term(),
  value: Nostrum.Struct.Component.value()
}

Link to this section Functions

Link to this function

flatten(map)

View Source (since 0.5.1)
Link to this function

put_style(text_input, style)

View Source (since 0.5.1)
Link to this function

text_input(label, custom_id, opts \\ [])

View Source (since 0.5.1)

Create a text input component.