TextInputComponent

export class TextInputComponent extends Component<APITextInputComponent>
export class TextInputComponent extends Component<APITextInputComponent>
Represents a text input component.
Readonly
customId:string
The custom id of this text input
Readonly
data:Readonly<T>
The API data associated with this component
Inherited from Component
Readonly
type:T['type']
The type of the component
Inherited from Component
Readonly
value:string
The value for this text input
equals(other):boolean
Whether or not the given components are equal
NameTypeOptionalDescription
otherthis | TNoThe component to compare against
Inherited from Component
toJSON():T
Returns the API-compatible JSON for this component
Inherited from Component