This repository was archived by the owner on Mar 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -343,13 +343,22 @@ func (ApplicationCommandInteractionData) Type() InteractionType {
343
343
344
344
// MessageComponentInteractionData contains the data of message component interaction.
345
345
type MessageComponentInteractionData struct {
346
- CustomID string `json:"custom_id"`
347
- ComponentType ComponentType `json:"component_type"`
346
+ CustomID string `json:"custom_id"`
347
+ ComponentType ComponentType `json:"component_type"`
348
+ Resolved MessageComponentInteractionDataResolved `json:"resolved"`
348
349
349
350
// NOTE: Only filled when ComponentType is SelectMenuComponent (3). Otherwise is nil.
350
351
Values []string `json:"values"`
351
352
}
352
353
354
+ // MessageComponentInteractionDataResolved contains the resolved data of selected option.
355
+ type MessageComponentInteractionDataResolved struct {
356
+ Users map [string ]* User `json:"users"`
357
+ Members map [string ]* Member `json:"members"`
358
+ Roles map [string ]* Role `json:"roles"`
359
+ Channels map [string ]* Channel `json:"channels"`
360
+ }
361
+
353
362
// Type returns the type of interaction data.
354
363
func (MessageComponentInteractionData ) Type () InteractionType {
355
364
return InteractionMessageComponent
You can’t perform that action at this time.
0 commit comments