mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-08 04:57:31 +00:00
discord: add Channel field to InteractionEvent struct
PR: https://github.com/discord/discord-api-docs/pull/6051
Commit: 88a761816b
This commit is contained in:
parent
82c55dffac
commit
b8daf636f0
|
@ -22,6 +22,9 @@ type InteractionEvent struct {
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
Version int `json:"version"`
|
Version int `json:"version"`
|
||||||
|
|
||||||
|
// Channel is the channel that the interaction was sent from.
|
||||||
|
Channel *Channel `json:"channel,omitempty"`
|
||||||
|
|
||||||
// Message is the message the component was attached to.
|
// Message is the message the component was attached to.
|
||||||
// Only present for component interactions, not command interactions.
|
// Only present for component interactions, not command interactions.
|
||||||
Message *Message `json:"message,omitempty"`
|
Message *Message `json:"message,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue