Add original message ID to API response
This commit is contained in:
parent
992a37dd1b
commit
ebc688ae54
@ -9,6 +9,7 @@ namespace PluralKit.API.Controllers
|
|||||||
{
|
{
|
||||||
[JsonProperty("timestamp")] public Instant Timestamp;
|
[JsonProperty("timestamp")] public Instant Timestamp;
|
||||||
[JsonProperty("id")] public string Id;
|
[JsonProperty("id")] public string Id;
|
||||||
|
[JsonProperty("original")] public string Original;
|
||||||
[JsonProperty("sender")] public string Sender;
|
[JsonProperty("sender")] public string Sender;
|
||||||
[JsonProperty("channel")] public string Channel;
|
[JsonProperty("channel")] public string Channel;
|
||||||
|
|
||||||
@ -41,7 +42,8 @@ namespace PluralKit.API.Controllers
|
|||||||
Channel = msg.Message.Channel.ToString(),
|
Channel = msg.Message.Channel.ToString(),
|
||||||
Sender = msg.Message.Sender.ToString(),
|
Sender = msg.Message.Sender.ToString(),
|
||||||
Member = msg.Member,
|
Member = msg.Member,
|
||||||
System = msg.System
|
System = msg.System,
|
||||||
|
Original = msg.Message.OriginalMid?.ToString()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user