@@ -55,6 +55,7 @@ const (
55
55
ApplicationCommandOptionChannel ApplicationCommandOptionType = 7
56
56
ApplicationCommandOptionRole ApplicationCommandOptionType = 8
57
57
ApplicationCommandOptionMentionable ApplicationCommandOptionType = 9
58
+ ApplicationCommandOptionAttachment ApplicationCommandOptionType = 11
58
59
)
59
60
60
61
func (t ApplicationCommandOptionType ) String () string {
@@ -77,6 +78,8 @@ func (t ApplicationCommandOptionType) String() string {
77
78
return "Role"
78
79
case ApplicationCommandOptionMentionable :
79
80
return "Mentionable"
81
+ case ApplicationCommandOptionAttachment :
82
+ return "Attachment"
80
83
}
81
84
return fmt .Sprintf ("ApplicationCommandOptionType(%d)" , t )
82
85
}
@@ -255,11 +258,12 @@ type ApplicationCommandInteractionData struct {
255
258
// Partial Member objects are missing user, deaf and mute fields.
256
259
// Partial Channel objects only have id, name, type and permissions fields.
257
260
type ApplicationCommandInteractionDataResolved struct {
258
- Users map [string ]* User `json:"users"`
259
- Members map [string ]* Member `json:"members"`
260
- Roles map [string ]* Role `json:"roles"`
261
- Channels map [string ]* Channel `json:"channels"`
262
- Messages map [string ]* Message `json:"messages"`
261
+ Users map [string ]* User `json:"users"`
262
+ Members map [string ]* Member `json:"members"`
263
+ Roles map [string ]* Role `json:"roles"`
264
+ Channels map [string ]* Channel `json:"channels"`
265
+ Messages map [string ]* Message `json:"messages"`
266
+ Attachments map [string ]* MessageAttachment `json:"attachments"`
263
267
}
264
268
265
269
// Type returns the type of interaction data.
0 commit comments