From ebc688ae5455d099f38bc4db2c2e88f90ea0e79b Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 22 Dec 2019 12:54:01 +0100 Subject: [PATCH] Add original message ID to API response --- PluralKit.API/Controllers/MessageController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PluralKit.API/Controllers/MessageController.cs b/PluralKit.API/Controllers/MessageController.cs index 14b1f6b1..4635e3b1 100644 --- a/PluralKit.API/Controllers/MessageController.cs +++ b/PluralKit.API/Controllers/MessageController.cs @@ -9,6 +9,7 @@ namespace PluralKit.API.Controllers { [JsonProperty("timestamp")] public Instant Timestamp; [JsonProperty("id")] public string Id; + [JsonProperty("original")] public string Original; [JsonProperty("sender")] public string Sender; [JsonProperty("channel")] public string Channel; @@ -41,7 +42,8 @@ namespace PluralKit.API.Controllers Channel = msg.Message.Channel.ToString(), Sender = msg.Message.Sender.ToString(), Member = msg.Member, - System = msg.System + System = msg.System, + Original = msg.Message.OriginalMid?.ToString() }; } }