From b8daf636f0c3d2f06e5438582f4caf53cb5ad7c0 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Fri, 7 Apr 2023 15:11:09 +0530 Subject: [PATCH] discord: add Channel field to InteractionEvent struct PR: https://github.com/discord/discord-api-docs/pull/6051 Commit: https://github.com/discord/discord-api-docs/commit/88a761816b26d6891f8a276683bf57a4133aa233 --- discord/interaction.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/interaction.go b/discord/interaction.go index ad87c8f..f50973f 100644 --- a/discord/interaction.go +++ b/discord/interaction.go @@ -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"`