mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add original message ID to API response
This commit is contained in:
parent
992a37dd1b
commit
ebc688ae54
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue