forked from pothtonswer/discordmuffin
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:
parent
6958472163
commit
7ec67b07d2
1 changed files with 4 additions and 3 deletions
|
@ -314,9 +314,10 @@ type InteractionData interface {
|
||||||
|
|
||||||
// ApplicationCommandInteractionData contains the data of application command interaction.
|
// ApplicationCommandInteractionData contains the data of application command interaction.
|
||||||
type ApplicationCommandInteractionData struct {
|
type ApplicationCommandInteractionData struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"`
|
CommandType ApplicationCommandType `json:"type"`
|
||||||
|
Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"`
|
||||||
|
|
||||||
// Slash command options
|
// Slash command options
|
||||||
Options []*ApplicationCommandInteractionDataOption `json:"options"`
|
Options []*ApplicationCommandInteractionDataOption `json:"options"`
|
||||||
|
|
Loading…
Reference in a new issue