Add User to Interaction
This commit is contained in:
parent
37088aefec
commit
ba10a00fbc
1 changed files with 14 additions and 3 deletions
|
@ -73,9 +73,20 @@ type Interaction struct {
|
||||||
Data ApplicationCommandInteractionData `json:"data"`
|
Data ApplicationCommandInteractionData `json:"data"`
|
||||||
GuildID string `json:"guild_id"`
|
GuildID string `json:"guild_id"`
|
||||||
ChannelID string `json:"channel_id"`
|
ChannelID string `json:"channel_id"`
|
||||||
Member *Member `json:"member"`
|
|
||||||
Token string `json:"token"`
|
// The member who invoked this interaction.
|
||||||
Version int `json:"version"`
|
// NOTE: this field is only filled when the slash command was invoked in a guild;
|
||||||
|
// if it was invoked in a DM, the `User` field will be filled instead.
|
||||||
|
// Make sure to check for `nil` before using this field.
|
||||||
|
Member *Member `json:"member"`
|
||||||
|
// The user who invoked this interaction.
|
||||||
|
// NOTE: this field is only filled when the slash command was invoked in a DM;
|
||||||
|
// if it was invoked in a guild, the `Member` field will be filled instead.
|
||||||
|
// Make sure to check for `nil` before using this field.
|
||||||
|
User *User `json:"user"`
|
||||||
|
|
||||||
|
Token string `json:"token"`
|
||||||
|
Version int `json:"version"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApplicationCommandInteractionData contains data received in an interaction event.
|
// ApplicationCommandInteractionData contains data received in an interaction event.
|
||||||
|
|
Loading…
Reference in a new issue