Skip to content

Commit 10d3626

Browse files
authored
api: Add ID param to CreateCommandData (#417)
1 parent ff26fde commit 10d3626

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/application.go

+2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ func (c *Client) CurrentApplication() (*discord.Application, error) {
2020
}
2121

2222
// https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
23+
// https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands
2324
type CreateCommandData struct {
25+
ID discord.CommandID `json:"id,omitempty"`
2426
Name string `json:"name"`
2527
NameLocalizations discord.StringLocales `json:"name_localizations,omitempty"`
2628
Description string `json:"description"`

0 commit comments

Comments
 (0)