From 8c338b49bacbc642efdca3de3ff37e945017e3bd Mon Sep 17 00:00:00 2001 From: diamondburned Date: Fri, 15 Jul 2022 18:37:18 -0700 Subject: [PATCH] Fix invalid TextInputComponent.{Min,Max}Values Fixes #333. --- discord/component.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/component.go b/discord/component.go index 164ce8e..58ea3c9 100644 --- a/discord/component.go +++ b/discord/component.go @@ -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{