1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

Fix invalid TextInputComponent.{Min,Max}Values

Fixes #333.
This commit is contained in:
diamondburned 2022-07-15 18:37:18 -07:00
parent e1c4f0f041
commit 8c338b49ba
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -498,8 +498,8 @@ func (i *TextInputComponent) MarshalJSON() ([]byte, error) {
type Msg struct {
Type ComponentType `json:"type"`
*text
MinValues *int `json:"max_values,omitempty"`
MaxValues *int `json:"min_values,omitempty"`
MinValues *int `json:"min_values,omitempty"`
MaxValues *int `json:"max_values,omitempty"`
}
m := Msg{