mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-10-31 20:14:21 +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#bulk-overwrite-guild-application-commands
|
||||
type CreateCommandData struct {
|
||||
ID discord.CommandID `json:"id,omitempty"`
|
||||
Name string `json:"name"`
|
||||
NameLocalizations discord.StringLocales `json:"name_localizations,omitempty"`
|
||||
Description string `json:"description"`
|
||||
|
|
Loading…
Reference in a new issue