1
0
Fork 0
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:
Benbebop 2024-01-06 22:17:03 -05:00 committed by GitHub
parent ff26fded59
commit 10d3626429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"`