mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-12-02 01:29:47 +00:00
discord: Add Options field to AutocompleteOption
This is used for subcommands.
This commit is contained in:
parent
331ec59dec
commit
c98e2f8730
|
|
@ -161,10 +161,11 @@ type AutocompleteInteraction struct {
|
||||||
|
|
||||||
// AutocompleteOption is an autocompletion option in an AutocompleteInteraction.
|
// AutocompleteOption is an autocompletion option in an AutocompleteInteraction.
|
||||||
type AutocompleteOption struct {
|
type AutocompleteOption struct {
|
||||||
Type CommandOptionType `json:"type"`
|
Type CommandOptionType `json:"type"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Value string `json:"value"`
|
Value string `json:"value"`
|
||||||
Focused bool `json:"focused"`
|
Focused bool `json:"focused"`
|
||||||
|
Options []AutocompleteOption `json:"options"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type implements ComponentInteraction.
|
// Type implements ComponentInteraction.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue