Skip to content

Commit 5e7e7ee

Browse files
committed
fix text input components always being required
1 parent 07e3909 commit 5e7e7ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/component.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ type TextInputComponent struct {
534534
Label string `json:"label"`
535535
MinLength *int `json:"min_length,omitempty"`
536536
MaxLength int `json:"max_length,omitempty"`
537-
Required bool `json:"required,omitempty"`
537+
Required bool `json:"required"`
538538
Placeholder string `json:"placeholder,omitempty"`
539539
Value string `json:"value,omitempty"`
540540
}

0 commit comments

Comments
 (0)