View Source Nostrum.Struct.Component.TextInput (Nostrum v0.10.0)
Text Input.
Summary
Functions
Create a text input component.
Types
@type opt() :: {:style, Nostrum.Struct.Component.style()} | {:min_length, Nostrum.Struct.Component.min_length()} | {:max_length, Nostrum.Struct.Component.max_length()} | {:value, Nostrum.Struct.Component.value()} | {:placeholder, Nostrum.Struct.Component.placeholder()} | {:required, Nostrum.Struct.Component.required()} | {:value, Nostrum.Struct.Component.value()}
@type opts() :: [opt()]
@type t() :: %Nostrum.Struct.Component{ channel_types: term(), components: term(), custom_id: Nostrum.Struct.Component.custom_id(), default_values: term(), 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() }
Functions
Create a text input component.