1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +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:
ayn2op 2023-04-07 15:11:09 +05:30 committed by diamondburned
parent 82c55dffac
commit b8daf636f0

View file

@ -22,6 +22,9 @@ type InteractionEvent struct {
Token string `json:"token"`
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.
// Only present for component interactions, not command interactions.
Message *Message `json:"message,omitempty"`