mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 09:12:53 +00:00
api: Add ID param to CreateCommandData (#417)
This commit is contained in:
parent
ff26fded59
commit
10d3626429
|
@ -20,7 +20,9 @@ func (c *Client) CurrentApplication() (*discord.Application, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
|
// https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
|
||||||
|
// https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands
|
||||||
type CreateCommandData struct {
|
type CreateCommandData struct {
|
||||||
|
ID discord.CommandID `json:"id,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
NameLocalizations discord.StringLocales `json:"name_localizations,omitempty"`
|
NameLocalizations discord.StringLocales `json:"name_localizations,omitempty"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
|
Loading…
Reference in a new issue