Skip to content

Commit

Permalink
api: Add ID param to CreateCommandData (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benbebop committed Jan 7, 2024
1 parent ff26fde commit 10d3626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 10d3626

Please sign in to comment.