Skip to content

Commit

Permalink
api: add ID param to CreateCommandData
Browse files Browse the repository at this point in the history
  • Loading branch information
Benbebop committed Jan 6, 2024
1 parent 3bbdae9 commit fbd9b9b
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 fbd9b9b

Please sign in to comment.