From 30783516706c0137517cb0fc82aec405ece0b866 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Wed, 14 Sep 2022 20:17:04 +0300 Subject: [PATCH] Add fallback content for thread start messages --- DiscordChatExporter.Core/Discord/Data/Message.cs | 1 + DiscordChatExporter.Core/Discord/Data/MessageKind.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/DiscordChatExporter.Core/Discord/Data/Message.cs b/DiscordChatExporter.Core/Discord/Data/Message.cs index 0efd0fc..cdda0ab 100644 --- a/DiscordChatExporter.Core/Discord/Data/Message.cs +++ b/DiscordChatExporter.Core/Discord/Data/Message.cs @@ -107,6 +107,7 @@ public record Message( MessageKind.ChannelNameChange => "Changed the channel name.", MessageKind.ChannelIconChange => "Changed the channel icon.", MessageKind.ChannelPinnedMessage => "Pinned a message.", + MessageKind.ThreadCreated => "Started a thread.", MessageKind.GuildMemberJoin => "Joined the server.", _ => json.GetPropertyOrNull("content")?.GetStringOrNull() ?? "" }; diff --git a/DiscordChatExporter.Core/Discord/Data/MessageKind.cs b/DiscordChatExporter.Core/Discord/Data/MessageKind.cs index c24dedb..472cc8d 100644 --- a/DiscordChatExporter.Core/Discord/Data/MessageKind.cs +++ b/DiscordChatExporter.Core/Discord/Data/MessageKind.cs @@ -11,6 +11,7 @@ public enum MessageKind ChannelIconChange = 5, ChannelPinnedMessage = 6, GuildMemberJoin = 7, + ThreadCreated = 18, Reply = 19 }