1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-08 13:07:43 +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" "errors"
"github.com/diamondburned/arikawa/v3/utils/json" "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") 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"` CustomID string `json:"custom_id"`
Options []SelectComponentOption `json:"options"` Options []SelectComponentOption `json:"options"`
Placeholder string `json:"placeholder,omitempty"` Placeholder string `json:"placeholder,omitempty"`
MinValues int `json:"min_values,omitempty"` MinValues option.Int `json:"min_values,omitempty"`
MaxValues int `json:"max_values,omitempty"` MaxValues int `json:"max_values,omitempty"`
Disabled bool `json:"disabled,omitempty"` Disabled bool `json:"disabled,omitempty"`
} }