1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-19 21:32:49 +00:00

discord: Change type of SelectComponent.MinValues to option.Int

This commit is contained in:
Maximilian von Lindern 2021-08-30 17:42:54 +02:00 committed by diamondburned
parent 53c72c1e16
commit 02712516e3

View file

@ -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"`
}