Add CommandType field to ApplicationCommandInteractionData (#1362)

* Add the CommandType field to ApplicationCommandInteractionData

* Remove unnecessary comment

* Change order of the fields

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
This commit is contained in:
Victor Souza 2023-04-14 20:31:36 -03:00 committed by GitHub
parent 6958472163
commit 7ec67b07d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -316,6 +316,7 @@ type InteractionData interface {
type ApplicationCommandInteractionData struct { type ApplicationCommandInteractionData struct {
ID string `json:"id"` ID string `json:"id"`
Name string `json:"name"` Name string `json:"name"`
CommandType ApplicationCommandType `json:"type"`
Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"` Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"`
// Slash command options // Slash command options