feat(components): add omitempty and use TextInputStyle

Co-authored-by: ToπSenpai <15636011+TopiSenpai@users.noreply.github.com>
This commit is contained in:
Fedor Lapshin 2022-02-09 14:07:36 +03:00 committed by GitHub
parent 147703db8e
commit 21ba398898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"`
}