Skip to content

Commit 68cee1f

Browse files
committed
add attachment interaction option support
1 parent bf3ba27 commit 68cee1f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

interactions.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const (
3434
TypeRole
3535
TypeMentionable
3636
TypeNumber
37+
TypeAttachment
3738
)
3839

3940
// ApplicationCommand types
@@ -162,11 +163,12 @@ type ApplicationCommandInteractionData struct {
162163
}
163164

164165
type ApplicationCommandInteractionDataResolved struct {
165-
Users map[Snowflake]User `json:"users"`
166-
Members map[Snowflake]GuildMember `json:"members"`
167-
Roles map[Snowflake]Role `json:"roles"`
168-
Channels map[Snowflake]Channel `json:"channels"`
169-
Messages map[Snowflake]Message `json:"messages"`
166+
Users map[Snowflake]User `json:"users"`
167+
Members map[Snowflake]GuildMember `json:"members"`
168+
Roles map[Snowflake]Role `json:"roles"`
169+
Channels map[Snowflake]Channel `json:"channels"`
170+
Messages map[Snowflake]Message `json:"messages"`
171+
Attachments map[Snowflake]Attachment `json:"attachments"`
170172
}
171173

172174
type Interaction struct {

0 commit comments

Comments
 (0)