add ApplicationCommandInteractionDataResolved struct (#919)
* add ApplicationCommandInteractionDataResolved struct * add comment to ApplicationCommandInteractionDataResolved * change wording of comment for ApplicationCommandInteractionDataResolved
This commit is contained in:
parent
df74d8bbe6
commit
ccf3b3738e
1 changed files with 14 additions and 3 deletions
|
@ -92,9 +92,20 @@ type Interaction struct {
|
||||||
|
|
||||||
// ApplicationCommandInteractionData contains data received in an interaction event.
|
// ApplicationCommandInteractionData contains data received in an interaction event.
|
||||||
type ApplicationCommandInteractionData struct {
|
type ApplicationCommandInteractionData struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Options []*ApplicationCommandInteractionDataOption `json:"options"`
|
Resolved *ApplicationCommandInteractionDataResolved `json:"resolved"`
|
||||||
|
Options []*ApplicationCommandInteractionDataOption `json:"options"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// ApplicationCommandInteractionDataResolved contains resolved data for command arguments.
|
||||||
|
// Partial Member objects are missing user, deaf and mute fields.
|
||||||
|
// Partial Channel objects only have id, name, type and permissions fields.
|
||||||
|
type ApplicationCommandInteractionDataResolved struct {
|
||||||
|
Users map[string]*User `json:"users"`
|
||||||
|
Members map[string]*Member `json:"members"`
|
||||||
|
Roles map[string]*Role `json:"roles"`
|
||||||
|
Channels map[string]*Channel `json:"channels"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApplicationCommandInteractionDataOption represents an option of a slash command.
|
// ApplicationCommandInteractionDataOption represents an option of a slash command.
|
||||||
|
|
Loading…
Reference in a new issue