From 3c5beeba79fb8ad4b3ca8a6ad354b24536e26a5f Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sat, 17 Apr 2021 11:56:27 +0100 Subject: [PATCH] Export channel category id to JSON (#554) --- DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs b/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs index b193da5..3bc3d22 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs +++ b/DiscordChatExporter.Core/Exporting/Writers/JsonMessageWriter.cs @@ -191,6 +191,7 @@ namespace DiscordChatExporter.Core.Exporting.Writers _writer.WriteStartObject("channel"); _writer.WriteString("id", Context.Request.Channel.Id.ToString()); _writer.WriteString("type", Context.Request.Channel.Type.ToString()); + _writer.WriteString("categoryId", Context.Request.Channel.Category.Id.ToString()); _writer.WriteString("category", Context.Request.Channel.Category.Name); _writer.WriteString("name", Context.Request.Channel.Name); _writer.WriteString("topic", Context.Request.Channel.Topic);