From 02712516e34242991662e77c9ed40fe7e7ad88d1 Mon Sep 17 00:00:00 2001 From: Maximilian von Lindern Date: Mon, 30 Aug 2021 17:42:54 +0200 Subject: [PATCH] discord: Change type of SelectComponent.MinValues to option.Int --- discord/component.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/component.go b/discord/component.go index 21a25e8..97f4165 100644 --- a/discord/component.go +++ b/discord/component.go @@ -4,6 +4,7 @@ import ( "errors" "github.com/diamondburned/arikawa/v3/utils/json" + "github.com/diamondburned/arikawa/v3/utils/json/option" ) var ErrNestedActionRow = errors.New("action row cannot have action row as a child") @@ -200,7 +201,7 @@ type SelectComponent struct { CustomID string `json:"custom_id"` Options []SelectComponentOption `json:"options"` Placeholder string `json:"placeholder,omitempty"` - MinValues int `json:"min_values,omitempty"` + MinValues option.Int `json:"min_values,omitempty"` MaxValues int `json:"max_values,omitempty"` Disabled bool `json:"disabled,omitempty"` }