Add fallback content for thread start messages

This commit is contained in:
Tyrrrz 2022-09-14 20:17:04 +03:00
parent 4f41c4fff3
commit 3078351670
2 changed files with 2 additions and 0 deletions

View file

@ -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() ?? ""
};

View file

@ -11,6 +11,7 @@ public enum MessageKind
ChannelIconChange = 5,
ChannelPinnedMessage = 6,
GuildMemberJoin = 7,
ThreadCreated = 18,
Reply = 19
}