feat(components): add omitempty and use TextInputStyle
Co-authored-by: ToπSenpai <15636011+TopiSenpai@users.noreply.github.com>
This commit is contained in:
parent
147703db8e
commit
21ba398898
1 changed files with 4 additions and 4 deletions
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue