From 5870d04644d53ae7ffffcd9ff45681181b02a39e Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 21 Sep 2022 19:30:12 +0200 Subject: [PATCH] discord: Add Message.ApplicationID (#343) --- discord/message.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/message.go b/discord/message.go index 50d3dbf..1f7e9b8 100644 --- a/discord/message.go +++ b/discord/message.go @@ -89,6 +89,10 @@ type Message struct { // Application is sent with Rich Presence-related chat embeds. Application *MessageApplication `json:"application,omitempty"` + // ApplicationID contains the ID of the application, if this message was + // generated by an interaction or an application-owned webhook. + ApplicationID AppID `json:"application_id,omitempty"` + // Reference is the reference data sent with crossposted messages and // inline replies. Reference *MessageReference `json:"message_reference,omitempty"`