mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-31 14:55:56 +00:00
api: Add localization fields to Application Command creation data
This commit is contained in:
parent
f249715c9d
commit
f5f46f5fd4
|
@ -19,10 +19,12 @@ func (c *Client) CurrentApplication() (*discord.Application, error) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://discord.com/developers/docs/interactions/slash-commands#create-global-application-command-json-params
|
// https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
|
||||||
type CreateCommandData struct {
|
type CreateCommandData struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
NameLocalizations discord.StringLocales `json:"name_localizations,omitempty"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
DescriptionLocalizations discord.StringLocales `json:"description_localizations,omitempty"`
|
||||||
Options discord.CommandOptions `json:"options,omitempty"`
|
Options discord.CommandOptions `json:"options,omitempty"`
|
||||||
NoDefaultPermission bool `json:"-"`
|
NoDefaultPermission bool `json:"-"`
|
||||||
Type discord.CommandType `json:"type,omitempty"`
|
Type discord.CommandType `json:"type,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue