diff --git a/components.go b/components.go index b2943c5..1f4ba58 100644 --- a/components.go +++ b/components.go @@ -201,13 +201,13 @@ func (m SelectMenu) MarshalJSON() ([]byte, error) { // TextInput represents text input component. type TextInput struct { - CustomID string `json:"custom_id,omitempty"` + CustomID string `json:"custom_id"` Label string `json:"label"` - Style TextStyleType `json:"style"` + Style TextInputStyle `json:"style"` Placeholder string `json:"placeholder,omitempty"` Value string `json:"value,omitempty"` - Required bool `json:"required"` - MinLength int `json:"min_length"` + Required bool `json:"required,omitempty"` + MinLength int `json:"min_length,omitempty"` MaxLength int `json:"max_length,omitempty"` }