Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
feat! : correct interactiondata.type field + add missing fields to in…
Browse files Browse the repository at this point in the history
…teraction data
  • Loading branch information
andersfylling committed Jan 3, 2022
1 parent 60f6513 commit 8ce2d7c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions interaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ type ApplicationCommandInteractionDataResolved struct {
}

type ApplicationCommandInteractionData struct {
ID Snowflake `json:"id"`
Name string `json:"name"`
Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"`
Options []*ApplicationCommandDataOption `json:"options"`
CustomID string `json:"custom_id"`
Type MessageComponentType `json:"component_type"`
Values []*SelectMenuOption `json:"values"`
ID Snowflake `json:"id"`
Name string `json:"name"`
Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"`
Options []*ApplicationCommandDataOption `json:"options"`
CustomID string `json:"custom_id"`
Type ApplicationCommandType `json:"type"`
Values []*SelectMenuOption `json:"values"`
ComponentType MessageComponentType `json:"component_type"`
TargetID Snowflake `json:"target_id"`
}

type MessageInteraction struct {
Expand Down

0 comments on commit 8ce2d7c

Please sign in to comment.