mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-23 10:29:30 +00:00
api: Add localization fields to Application Command creation data
This commit is contained in:
parent
f249715c9d
commit
f5f46f5fd4
|
@ -19,13 +19,15 @@ 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 {
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Options discord.CommandOptions `json:"options,omitempty"`
|
||||
NoDefaultPermission bool `json:"-"`
|
||||
Type discord.CommandType `json:"type,omitempty"`
|
||||
Name string `json:"name"`
|
||||
NameLocalizations discord.StringLocales `json:"name_localizations,omitempty"`
|
||||
Description string `json:"description"`
|
||||
DescriptionLocalizations discord.StringLocales `json:"description_localizations,omitempty"`
|
||||
Options discord.CommandOptions `json:"options,omitempty"`
|
||||
NoDefaultPermission bool `json:"-"`
|
||||
Type discord.CommandType `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
func (c CreateCommandData) MarshalJSON() ([]byte, error) {
|
||||
|
|
Loading…
Reference in a new issue