mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 12:18:48 -04:00
Add export timestamp in JSON format (#1102)
This commit is contained in:
parent
c4137cf77e
commit
5e9c7392db
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,9 @@ internal class JsonMessageWriter : MessageWriter
|
|||
_writer.WriteString("before", Context.Request.Before?.ToDate());
|
||||
_writer.WriteEndObject();
|
||||
|
||||
// Timestamp
|
||||
_writer.WriteString("exportedAt", System.DateTimeOffset.UtcNow);
|
||||
|
||||
// Message array (start)
|
||||
_writer.WriteStartArray("messages");
|
||||
await _writer.FlushAsync(cancellationToken);
|
||||
|
|
Loading…
Reference in a new issue