Formatting
Some checks failed
docker / deploy (push) Has been cancelled
docker / pack (push) Has been cancelled
main / format (push) Has been cancelled
main / test (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-arm) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-arm64) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-musl-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, osx-arm64) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, osx-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, win-arm64) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, win-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Cli, DiscordChatExporter.Cli, win-x86) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, linux-arm) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, linux-arm64) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, linux-musl-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, linux-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, osx-arm64) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, osx-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, win-arm64) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, win-x64) (push) Has been cancelled
main / pack (DiscordChatExporter.Gui, DiscordChatExporter, win-x86) (push) Has been cancelled
main / release (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-arm) (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-arm64) (push) Has been cancelled
main / notify (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-musl-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, linux-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, osx-arm64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, osx-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, win-arm64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, win-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Cli, DiscordChatExporter.Cli, win-x86) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, linux-arm) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, linux-arm64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, linux-musl-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, linux-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, osx-arm64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, osx-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, win-arm64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, win-x64) (push) Has been cancelled
main / deploy (DiscordChatExporter.Gui, DiscordChatExporter, win-x86) (push) Has been cancelled

This commit is contained in:
Tyrrrz 2025-01-01 16:22:08 +02:00
parent 45ff1daff3
commit a9eca1ceb2
5 changed files with 8877 additions and 8894 deletions

View file

@ -8,8 +8,7 @@ namespace DiscordChatExporter.Core.Utils;
[ExcludeFromCodeCoverage] [ExcludeFromCodeCoverage]
internal static class EmojiIndex internal static class EmojiIndex
{ {
private static Dictionary<string, string> _toCodes = private static Dictionary<string, string> _toCodes = new(5000, StringComparer.Ordinal)
new(5000, StringComparer.Ordinal)
{ {
["😀"] = "grinning", ["😀"] = "grinning",
["😃"] = "smiley", ["😃"] = "smiley",
@ -3551,8 +3550,7 @@ internal static class EmojiIndex
["🇺🇳"] = "united_nations", ["🇺🇳"] = "united_nations",
}; };
private static Dictionary<string, string> _fromCodes = private static Dictionary<string, string> _fromCodes = new(5000, StringComparer.Ordinal)
new(5000, StringComparer.Ordinal)
{ {
["grinning"] = "😀", ["grinning"] = "😀",
["smiley"] = "😃", ["smiley"] = "😃",
@ -6258,8 +6256,7 @@ internal static class EmojiIndex
["woman_and_man_holding_hands_tone2"] = "👫🏼", ["woman_and_man_holding_hands_tone2"] = "👫🏼",
["woman_and_man_holding_hands_medium_light_skin_tone"] = "👫🏼", ["woman_and_man_holding_hands_medium_light_skin_tone"] = "👫🏼",
["woman_and_man_holding_hands_tone2_tone3"] = "👩🏼‍🤝‍👨🏽", ["woman_and_man_holding_hands_tone2_tone3"] = "👩🏼‍🤝‍👨🏽",
["woman_and_man_holding_hands_medium_light_skin_tone_medium_skin_tone"] = ["woman_and_man_holding_hands_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍🤝‍👨🏽",
"👩🏼‍🤝‍👨🏽",
["woman_and_man_holding_hands_tone2_tone4"] = "👩🏼‍🤝‍👨🏾", ["woman_and_man_holding_hands_tone2_tone4"] = "👩🏼‍🤝‍👨🏾",
["woman_and_man_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"] = ["woman_and_man_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"] =
"👩🏼‍🤝‍👨🏾", "👩🏼‍🤝‍👨🏾",
@ -6268,8 +6265,7 @@ internal static class EmojiIndex
["woman_and_man_holding_hands_tone3_tone1"] = "👩🏽‍🤝‍👨🏻", ["woman_and_man_holding_hands_tone3_tone1"] = "👩🏽‍🤝‍👨🏻",
["woman_and_man_holding_hands_medium_skin_tone_light_skin_tone"] = "👩🏽‍🤝‍👨🏻", ["woman_and_man_holding_hands_medium_skin_tone_light_skin_tone"] = "👩🏽‍🤝‍👨🏻",
["woman_and_man_holding_hands_tone3_tone2"] = "👩🏽‍🤝‍👨🏼", ["woman_and_man_holding_hands_tone3_tone2"] = "👩🏽‍🤝‍👨🏼",
["woman_and_man_holding_hands_medium_skin_tone_medium_light_skin_tone"] = ["woman_and_man_holding_hands_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍🤝‍👨🏼",
"👩🏽‍🤝‍👨🏼",
["woman_and_man_holding_hands_tone3"] = "👫🏽", ["woman_and_man_holding_hands_tone3"] = "👫🏽",
["woman_and_man_holding_hands_medium_skin_tone"] = "👫🏽", ["woman_and_man_holding_hands_medium_skin_tone"] = "👫🏽",
["woman_and_man_holding_hands_tone3_tone4"] = "👩🏽‍🤝‍👨🏾", ["woman_and_man_holding_hands_tone3_tone4"] = "👩🏽‍🤝‍👨🏾",
@ -6403,18 +6399,15 @@ internal static class EmojiIndex
["couple_with_heart_tone1"] = "💑🏻", ["couple_with_heart_tone1"] = "💑🏻",
["couple_with_heart_light_skin_tone"] = "💑🏻", ["couple_with_heart_light_skin_tone"] = "💑🏻",
["couple_with_heart_person_person_tone1_tone2"] = "🧑🏻‍❤️‍🧑🏼", ["couple_with_heart_person_person_tone1_tone2"] = "🧑🏻‍❤️‍🧑🏼",
["couple_with_heart_person_person_light_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_person_person_light_skin_tone_medium_light_skin_tone"] = "🧑🏻‍❤️‍🧑🏼",
"🧑🏻‍❤️‍🧑🏼",
["couple_with_heart_person_person_tone1_tone3"] = "🧑🏻‍❤️‍🧑🏽", ["couple_with_heart_person_person_tone1_tone3"] = "🧑🏻‍❤️‍🧑🏽",
["couple_with_heart_person_person_light_skin_tone_medium_skin_tone"] = "🧑🏻‍❤️‍🧑🏽", ["couple_with_heart_person_person_light_skin_tone_medium_skin_tone"] = "🧑🏻‍❤️‍🧑🏽",
["couple_with_heart_person_person_tone1_tone4"] = "🧑🏻‍❤️‍🧑🏾", ["couple_with_heart_person_person_tone1_tone4"] = "🧑🏻‍❤️‍🧑🏾",
["couple_with_heart_person_person_light_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_person_person_light_skin_tone_medium_dark_skin_tone"] = "🧑🏻‍❤️‍🧑🏾",
"🧑🏻‍❤️‍🧑🏾",
["couple_with_heart_person_person_tone1_tone5"] = "🧑🏻‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone1_tone5"] = "🧑🏻‍❤️‍🧑🏿",
["couple_with_heart_person_person_light_skin_tone_dark_skin_tone"] = "🧑🏻‍❤️‍🧑🏿", ["couple_with_heart_person_person_light_skin_tone_dark_skin_tone"] = "🧑🏻‍❤️‍🧑🏿",
["couple_with_heart_person_person_tone2_tone1"] = "🧑🏼‍❤️‍🧑🏻", ["couple_with_heart_person_person_tone2_tone1"] = "🧑🏼‍❤️‍🧑🏻",
["couple_with_heart_person_person_medium_light_skin_tone_light_skin_tone"] = ["couple_with_heart_person_person_medium_light_skin_tone_light_skin_tone"] = "🧑🏼‍❤️‍🧑🏻",
"🧑🏼‍❤️‍🧑🏻",
["couple_with_heart_tone2"] = "💑🏼", ["couple_with_heart_tone2"] = "💑🏼",
["couple_with_heart_medium_light_skin_tone"] = "💑🏼", ["couple_with_heart_medium_light_skin_tone"] = "💑🏼",
["couple_with_heart_person_person_tone2_tone3"] = "🧑🏼‍❤️‍🧑🏽", ["couple_with_heart_person_person_tone2_tone3"] = "🧑🏼‍❤️‍🧑🏽",
@ -6424,8 +6417,7 @@ internal static class EmojiIndex
["couple_with_heart_person_person_medium_light_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_person_person_medium_light_skin_tone_medium_dark_skin_tone"] =
"🧑🏼‍❤️‍🧑🏾", "🧑🏼‍❤️‍🧑🏾",
["couple_with_heart_person_person_tone2_tone5"] = "🧑🏼‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone2_tone5"] = "🧑🏼‍❤️‍🧑🏿",
["couple_with_heart_person_person_medium_light_skin_tone_dark_skin_tone"] = ["couple_with_heart_person_person_medium_light_skin_tone_dark_skin_tone"] = "🧑🏼‍❤️‍🧑🏿",
"🧑🏼‍❤️‍🧑🏿",
["couple_with_heart_person_person_tone3_tone1"] = "🧑🏽‍❤️‍🧑🏻", ["couple_with_heart_person_person_tone3_tone1"] = "🧑🏽‍❤️‍🧑🏻",
["couple_with_heart_person_person_medium_skin_tone_light_skin_tone"] = "🧑🏽‍❤️‍🧑🏻", ["couple_with_heart_person_person_medium_skin_tone_light_skin_tone"] = "🧑🏽‍❤️‍🧑🏻",
["couple_with_heart_person_person_tone3_tone2"] = "🧑🏽‍❤️‍🧑🏼", ["couple_with_heart_person_person_tone3_tone2"] = "🧑🏽‍❤️‍🧑🏼",
@ -6434,34 +6426,28 @@ internal static class EmojiIndex
["couple_with_heart_tone3"] = "💑🏽", ["couple_with_heart_tone3"] = "💑🏽",
["couple_with_heart_medium_skin_tone"] = "💑🏽", ["couple_with_heart_medium_skin_tone"] = "💑🏽",
["couple_with_heart_person_person_tone3_tone4"] = "🧑🏽‍❤️‍🧑🏾", ["couple_with_heart_person_person_tone3_tone4"] = "🧑🏽‍❤️‍🧑🏾",
["couple_with_heart_person_person_medium_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_person_person_medium_skin_tone_medium_dark_skin_tone"] = "🧑🏽‍❤️‍🧑🏾",
"🧑🏽‍❤️‍🧑🏾",
["couple_with_heart_person_person_tone3_tone5"] = "🧑🏽‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone3_tone5"] = "🧑🏽‍❤️‍🧑🏿",
["couple_with_heart_person_person_medium_skin_tone_dark_skin_tone"] = "🧑🏽‍❤️‍🧑🏿", ["couple_with_heart_person_person_medium_skin_tone_dark_skin_tone"] = "🧑🏽‍❤️‍🧑🏿",
["couple_with_heart_person_person_tone4_tone1"] = "🧑🏾‍❤️‍🧑🏻", ["couple_with_heart_person_person_tone4_tone1"] = "🧑🏾‍❤️‍🧑🏻",
["couple_with_heart_person_person_medium_dark_skin_tone_light_skin_tone"] = ["couple_with_heart_person_person_medium_dark_skin_tone_light_skin_tone"] = "🧑🏾‍❤️‍🧑🏻",
"🧑🏾‍❤️‍🧑🏻",
["couple_with_heart_person_person_tone4_tone2"] = "🧑🏾‍❤️‍🧑🏼", ["couple_with_heart_person_person_tone4_tone2"] = "🧑🏾‍❤️‍🧑🏼",
["couple_with_heart_person_person_medium_dark_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_person_person_medium_dark_skin_tone_medium_light_skin_tone"] =
"🧑🏾‍❤️‍🧑🏼", "🧑🏾‍❤️‍🧑🏼",
["couple_with_heart_person_person_tone4_tone3"] = "🧑🏾‍❤️‍🧑🏽", ["couple_with_heart_person_person_tone4_tone3"] = "🧑🏾‍❤️‍🧑🏽",
["couple_with_heart_person_person_medium_dark_skin_tone_medium_skin_tone"] = ["couple_with_heart_person_person_medium_dark_skin_tone_medium_skin_tone"] = "🧑🏾‍❤️‍🧑🏽",
"🧑🏾‍❤️‍🧑🏽",
["couple_with_heart_tone4"] = "💑🏾", ["couple_with_heart_tone4"] = "💑🏾",
["couple_with_heart_medium_dark_skin_tone"] = "💑🏾", ["couple_with_heart_medium_dark_skin_tone"] = "💑🏾",
["couple_with_heart_person_person_tone4_tone5"] = "🧑🏾‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone4_tone5"] = "🧑🏾‍❤️‍🧑🏿",
["couple_with_heart_person_person_medium_dark_skin_tone_dark_skin_tone"] = ["couple_with_heart_person_person_medium_dark_skin_tone_dark_skin_tone"] = "🧑🏾‍❤️‍🧑🏿",
"🧑🏾‍❤️‍🧑🏿",
["couple_with_heart_person_person_tone5_tone1"] = "🧑🏿‍❤️‍🧑🏻", ["couple_with_heart_person_person_tone5_tone1"] = "🧑🏿‍❤️‍🧑🏻",
["couple_with_heart_person_person_dark_skin_tone_light_skin_tone"] = "🧑🏿‍❤️‍🧑🏻", ["couple_with_heart_person_person_dark_skin_tone_light_skin_tone"] = "🧑🏿‍❤️‍🧑🏻",
["couple_with_heart_person_person_tone5_tone2"] = "🧑🏿‍❤️‍🧑🏼", ["couple_with_heart_person_person_tone5_tone2"] = "🧑🏿‍❤️‍🧑🏼",
["couple_with_heart_person_person_dark_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_person_person_dark_skin_tone_medium_light_skin_tone"] = "🧑🏿‍❤️‍🧑🏼",
"🧑🏿‍❤️‍🧑🏼",
["couple_with_heart_person_person_tone5_tone3"] = "🧑🏿‍❤️‍🧑🏽", ["couple_with_heart_person_person_tone5_tone3"] = "🧑🏿‍❤️‍🧑🏽",
["couple_with_heart_person_person_dark_skin_tone_medium_skin_tone"] = "🧑🏿‍❤️‍🧑🏽", ["couple_with_heart_person_person_dark_skin_tone_medium_skin_tone"] = "🧑🏿‍❤️‍🧑🏽",
["couple_with_heart_person_person_tone5_tone4"] = "🧑🏿‍❤️‍🧑🏾", ["couple_with_heart_person_person_tone5_tone4"] = "🧑🏿‍❤️‍🧑🏾",
["couple_with_heart_person_person_dark_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_person_person_dark_skin_tone_medium_dark_skin_tone"] = "🧑🏿‍❤️‍🧑🏾",
"🧑🏿‍❤️‍🧑🏾",
["couple_with_heart_tone5"] = "💑🏿", ["couple_with_heart_tone5"] = "💑🏿",
["couple_with_heart_dark_skin_tone"] = "💑🏿", ["couple_with_heart_dark_skin_tone"] = "💑🏿",
["couple_with_heart_woman_man"] = "👩‍❤️‍👨", ["couple_with_heart_woman_man"] = "👩‍❤️‍👨",
@ -6480,8 +6466,7 @@ internal static class EmojiIndex
["couple_with_heart_woman_man_tone2"] = "👩🏼‍❤️‍👨🏼", ["couple_with_heart_woman_man_tone2"] = "👩🏼‍❤️‍👨🏼",
["couple_with_heart_woman_man_medium_light_skin_tone"] = "👩🏼‍❤️‍👨🏼", ["couple_with_heart_woman_man_medium_light_skin_tone"] = "👩🏼‍❤️‍👨🏼",
["couple_with_heart_woman_man_tone2_tone3"] = "👩🏼‍❤️‍👨🏽", ["couple_with_heart_woman_man_tone2_tone3"] = "👩🏼‍❤️‍👨🏽",
["couple_with_heart_woman_man_medium_light_skin_tone_medium_skin_tone"] = ["couple_with_heart_woman_man_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍❤️‍👨🏽",
"👩🏼‍❤️‍👨🏽",
["couple_with_heart_woman_man_tone2_tone4"] = "👩🏼‍❤️‍👨🏾", ["couple_with_heart_woman_man_tone2_tone4"] = "👩🏼‍❤️‍👨🏾",
["couple_with_heart_woman_man_medium_light_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_woman_man_medium_light_skin_tone_medium_dark_skin_tone"] =
"👩🏼‍❤️‍👨🏾", "👩🏼‍❤️‍👨🏾",
@ -6490,8 +6475,7 @@ internal static class EmojiIndex
["couple_with_heart_woman_man_tone3_tone1"] = "👩🏽‍❤️‍👨🏻", ["couple_with_heart_woman_man_tone3_tone1"] = "👩🏽‍❤️‍👨🏻",
["couple_with_heart_woman_man_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍👨🏻", ["couple_with_heart_woman_man_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍👨🏻",
["couple_with_heart_woman_man_tone3_tone2"] = "👩🏽‍❤️‍👨🏼", ["couple_with_heart_woman_man_tone3_tone2"] = "👩🏽‍❤️‍👨🏼",
["couple_with_heart_woman_man_medium_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_woman_man_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍❤️‍👨🏼",
"👩🏽‍❤️‍👨🏼",
["couple_with_heart_woman_man_tone3"] = "👩🏽‍❤️‍👨🏽", ["couple_with_heart_woman_man_tone3"] = "👩🏽‍❤️‍👨🏽",
["couple_with_heart_woman_man_medium_skin_tone"] = "👩🏽‍❤️‍👨🏽", ["couple_with_heart_woman_man_medium_skin_tone"] = "👩🏽‍❤️‍👨🏽",
["couple_with_heart_woman_man_tone3_tone4"] = "👩🏽‍❤️‍👨🏾", ["couple_with_heart_woman_man_tone3_tone4"] = "👩🏽‍❤️‍👨🏾",
@ -6524,50 +6508,41 @@ internal static class EmojiIndex
["couple_with_heart_woman_woman_tone1"] = "👩🏻‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone1"] = "👩🏻‍❤️‍👩🏻",
["couple_with_heart_woman_woman_light_skin_tone"] = "👩🏻‍❤️‍👩🏻", ["couple_with_heart_woman_woman_light_skin_tone"] = "👩🏻‍❤️‍👩🏻",
["couple_with_heart_woman_woman_tone1_tone2"] = "👩🏻‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone1_tone2"] = "👩🏻‍❤️‍👩🏼",
["couple_with_heart_woman_woman_light_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_woman_woman_light_skin_tone_medium_light_skin_tone"] = "👩🏻‍❤️‍👩🏼",
"👩🏻‍❤️‍👩🏼",
["couple_with_heart_woman_woman_tone1_tone3"] = "👩🏻‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone1_tone3"] = "👩🏻‍❤️‍👩🏽",
["couple_with_heart_woman_woman_light_skin_tone_medium_skin_tone"] = "👩🏻‍❤️‍👩🏽", ["couple_with_heart_woman_woman_light_skin_tone_medium_skin_tone"] = "👩🏻‍❤️‍👩🏽",
["couple_with_heart_woman_woman_tone1_tone4"] = "👩🏻‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone1_tone4"] = "👩🏻‍❤️‍👩🏾",
["couple_with_heart_woman_woman_light_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_woman_woman_light_skin_tone_medium_dark_skin_tone"] = "👩🏻‍❤️‍👩🏾",
"👩🏻‍❤️‍👩🏾",
["couple_with_heart_woman_woman_tone1_tone5"] = "👩🏻‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone1_tone5"] = "👩🏻‍❤️‍👩🏿",
["couple_with_heart_woman_woman_light_skin_tone_dark_skin_tone"] = "👩🏻‍❤️‍👩🏿", ["couple_with_heart_woman_woman_light_skin_tone_dark_skin_tone"] = "👩🏻‍❤️‍👩🏿",
["couple_with_heart_woman_woman_tone2_tone1"] = "👩🏼‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone2_tone1"] = "👩🏼‍❤️‍👩🏻",
["couple_with_heart_woman_woman_medium_light_skin_tone_light_skin_tone"] = ["couple_with_heart_woman_woman_medium_light_skin_tone_light_skin_tone"] = "👩🏼‍❤️‍👩🏻",
"👩🏼‍❤️‍👩🏻",
["couple_with_heart_woman_woman_tone2"] = "👩🏼‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone2"] = "👩🏼‍❤️‍👩🏼",
["couple_with_heart_woman_woman_medium_light_skin_tone"] = "👩🏼‍❤️‍👩🏼", ["couple_with_heart_woman_woman_medium_light_skin_tone"] = "👩🏼‍❤️‍👩🏼",
["couple_with_heart_woman_woman_tone2_tone3"] = "👩🏼‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone2_tone3"] = "👩🏼‍❤️‍👩🏽",
["couple_with_heart_woman_woman_medium_light_skin_tone_medium_skin_tone"] = ["couple_with_heart_woman_woman_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍❤️‍👩🏽",
"👩🏼‍❤️‍👩🏽",
["couple_with_heart_woman_woman_tone2_tone4"] = "👩🏼‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone2_tone4"] = "👩🏼‍❤️‍👩🏾",
["couple_with_heart_woman_woman_medium_light_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_woman_woman_medium_light_skin_tone_medium_dark_skin_tone"] =
"👩🏼‍❤️‍👩🏾", "👩🏼‍❤️‍👩🏾",
["couple_with_heart_woman_woman_tone2_tone5"] = "👩🏼‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone2_tone5"] = "👩🏼‍❤️‍👩🏿",
["couple_with_heart_woman_woman_medium_light_skin_tone_dark_skin_tone"] = ["couple_with_heart_woman_woman_medium_light_skin_tone_dark_skin_tone"] = "👩🏼‍❤️‍👩🏿",
"👩🏼‍❤️‍👩🏿",
["couple_with_heart_woman_woman_tone3_tone1"] = "👩🏽‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone3_tone1"] = "👩🏽‍❤️‍👩🏻",
["couple_with_heart_woman_woman_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍👩🏻", ["couple_with_heart_woman_woman_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍👩🏻",
["couple_with_heart_woman_woman_tone3_tone2"] = "👩🏽‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone3_tone2"] = "👩🏽‍❤️‍👩🏼",
["couple_with_heart_woman_woman_medium_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_woman_woman_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍❤️‍👩🏼",
"👩🏽‍❤️‍👩🏼",
["couple_with_heart_woman_woman_tone3"] = "👩🏽‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone3"] = "👩🏽‍❤️‍👩🏽",
["couple_with_heart_woman_woman_medium_skin_tone"] = "👩🏽‍❤️‍👩🏽", ["couple_with_heart_woman_woman_medium_skin_tone"] = "👩🏽‍❤️‍👩🏽",
["couple_with_heart_woman_woman_tone3_tone4"] = "👩🏽‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone3_tone4"] = "👩🏽‍❤️‍👩🏾",
["couple_with_heart_woman_woman_medium_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_woman_woman_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽‍❤️‍👩🏾",
"👩🏽‍❤️‍👩🏾",
["couple_with_heart_woman_woman_tone3_tone5"] = "👩🏽‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone3_tone5"] = "👩🏽‍❤️‍👩🏿",
["couple_with_heart_woman_woman_medium_skin_tone_dark_skin_tone"] = "👩🏽‍❤️‍👩🏿", ["couple_with_heart_woman_woman_medium_skin_tone_dark_skin_tone"] = "👩🏽‍❤️‍👩🏿",
["couple_with_heart_woman_woman_tone4_tone1"] = "👩🏾‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone4_tone1"] = "👩🏾‍❤️‍👩🏻",
["couple_with_heart_woman_woman_medium_dark_skin_tone_light_skin_tone"] = ["couple_with_heart_woman_woman_medium_dark_skin_tone_light_skin_tone"] = "👩🏾‍❤️‍👩🏻",
"👩🏾‍❤️‍👩🏻",
["couple_with_heart_woman_woman_tone4_tone2"] = "👩🏾‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone4_tone2"] = "👩🏾‍❤️‍👩🏼",
["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_light_skin_tone"] =
"👩🏾‍❤️‍👩🏼", "👩🏾‍❤️‍👩🏼",
["couple_with_heart_woman_woman_tone4_tone3"] = "👩🏾‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone4_tone3"] = "👩🏾‍❤️‍👩🏽",
["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_skin_tone"] = ["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾‍❤️‍👩🏽",
"👩🏾‍❤️‍👩🏽",
["couple_with_heart_woman_woman_tone4"] = "👩🏾‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone4"] = "👩🏾‍❤️‍👩🏾",
["couple_with_heart_woman_woman_medium_dark_skin_tone"] = "👩🏾‍❤️‍👩🏾", ["couple_with_heart_woman_woman_medium_dark_skin_tone"] = "👩🏾‍❤️‍👩🏾",
["couple_with_heart_woman_woman_tone4_tone5"] = "👩🏾‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone4_tone5"] = "👩🏾‍❤️‍👩🏿",
@ -6575,8 +6550,7 @@ internal static class EmojiIndex
["couple_with_heart_woman_woman_tone5_tone1"] = "👩🏿‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone5_tone1"] = "👩🏿‍❤️‍👩🏻",
["couple_with_heart_woman_woman_dark_skin_tone_light_skin_tone"] = "👩🏿‍❤️‍👩🏻", ["couple_with_heart_woman_woman_dark_skin_tone_light_skin_tone"] = "👩🏿‍❤️‍👩🏻",
["couple_with_heart_woman_woman_tone5_tone2"] = "👩🏿‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone5_tone2"] = "👩🏿‍❤️‍👩🏼",
["couple_with_heart_woman_woman_dark_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_woman_woman_dark_skin_tone_medium_light_skin_tone"] = "👩🏿‍❤️‍👩🏼",
"👩🏿‍❤️‍👩🏼",
["couple_with_heart_woman_woman_tone5_tone3"] = "👩🏿‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone5_tone3"] = "👩🏿‍❤️‍👩🏽",
["couple_with_heart_woman_woman_dark_skin_tone_medium_skin_tone"] = "👩🏿‍❤️‍👩🏽", ["couple_with_heart_woman_woman_dark_skin_tone_medium_skin_tone"] = "👩🏿‍❤️‍👩🏽",
["couple_with_heart_woman_woman_tone5_tone4"] = "👩🏿‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone5_tone4"] = "👩🏿‍❤️‍👩🏾",
@ -6602,8 +6576,7 @@ internal static class EmojiIndex
["couple_with_heart_man_man_tone2_tone3"] = "👨🏼‍❤️‍👨🏽", ["couple_with_heart_man_man_tone2_tone3"] = "👨🏼‍❤️‍👨🏽",
["couple_with_heart_man_man_medium_light_skin_tone_medium_skin_tone"] = "👨🏼‍❤️‍👨🏽", ["couple_with_heart_man_man_medium_light_skin_tone_medium_skin_tone"] = "👨🏼‍❤️‍👨🏽",
["couple_with_heart_man_man_tone2_tone4"] = "👨🏼‍❤️‍👨🏾", ["couple_with_heart_man_man_tone2_tone4"] = "👨🏼‍❤️‍👨🏾",
["couple_with_heart_man_man_medium_light_skin_tone_medium_dark_skin_tone"] = ["couple_with_heart_man_man_medium_light_skin_tone_medium_dark_skin_tone"] = "👨🏼‍❤️‍👨🏾",
"👨🏼‍❤️‍👨🏾",
["couple_with_heart_man_man_tone2_tone5"] = "👨🏼‍❤️‍👨🏿", ["couple_with_heart_man_man_tone2_tone5"] = "👨🏼‍❤️‍👨🏿",
["couple_with_heart_man_man_medium_light_skin_tone_dark_skin_tone"] = "👨🏼‍❤️‍👨🏿", ["couple_with_heart_man_man_medium_light_skin_tone_dark_skin_tone"] = "👨🏼‍❤️‍👨🏿",
["couple_with_heart_man_man_tone3_tone1"] = "👨🏽‍❤️‍👨🏻", ["couple_with_heart_man_man_tone3_tone1"] = "👨🏽‍❤️‍👨🏻",
@ -6619,8 +6592,7 @@ internal static class EmojiIndex
["couple_with_heart_man_man_tone4_tone1"] = "👨🏾‍❤️‍👨🏻", ["couple_with_heart_man_man_tone4_tone1"] = "👨🏾‍❤️‍👨🏻",
["couple_with_heart_man_man_medium_dark_skin_tone_light_skin_tone"] = "👨🏾‍❤️‍👨🏻", ["couple_with_heart_man_man_medium_dark_skin_tone_light_skin_tone"] = "👨🏾‍❤️‍👨🏻",
["couple_with_heart_man_man_tone4_tone2"] = "👨🏾‍❤️‍👨🏼", ["couple_with_heart_man_man_tone4_tone2"] = "👨🏾‍❤️‍👨🏼",
["couple_with_heart_man_man_medium_dark_skin_tone_medium_light_skin_tone"] = ["couple_with_heart_man_man_medium_dark_skin_tone_medium_light_skin_tone"] = "👨🏾‍❤️‍👨🏼",
"👨🏾‍❤️‍👨🏼",
["couple_with_heart_man_man_tone4_tone3"] = "👨🏾‍❤️‍👨🏽", ["couple_with_heart_man_man_tone4_tone3"] = "👨🏾‍❤️‍👨🏽",
["couple_with_heart_man_man_medium_dark_skin_tone_medium_skin_tone"] = "👨🏾‍❤️‍👨🏽", ["couple_with_heart_man_man_medium_dark_skin_tone_medium_skin_tone"] = "👨🏾‍❤️‍👨🏽",
["couple_with_heart_man_man_tone4"] = "👨🏾‍❤️‍👨🏾", ["couple_with_heart_man_man_tone4"] = "👨🏾‍❤️‍👨🏾",

View file

@ -18,8 +18,10 @@ internal class ExportContext(DiscordClient discord, ExportRequest request)
private readonly Dictionary<Snowflake, Channel> _channelsById = new(); private readonly Dictionary<Snowflake, Channel> _channelsById = new();
private readonly Dictionary<Snowflake, Role> _rolesById = new(); private readonly Dictionary<Snowflake, Role> _rolesById = new();
private readonly ExportAssetDownloader _assetDownloader = private readonly ExportAssetDownloader _assetDownloader = new(
new(request.AssetsDirPath, request.ShouldReuseAssets); request.AssetsDirPath,
request.ShouldReuseAssets
);
public DiscordClient Discord { get; } = discord; public DiscordClient Discord { get; } = discord;

View file

@ -17,8 +17,7 @@ namespace DiscordChatExporter.Core.Exporting;
internal class JsonMessageWriter(Stream stream, ExportContext context) internal class JsonMessageWriter(Stream stream, ExportContext context)
: MessageWriter(stream, context) : MessageWriter(stream, context)
{ {
private readonly Utf8JsonWriter _writer = private readonly Utf8JsonWriter _writer = new(
new(
stream, stream,
new JsonWriterOptions new JsonWriterOptions
{ {
@ -436,7 +435,11 @@ internal class JsonMessageWriter(Stream stream, ExportContext context)
_writer.WriteString("id", attachment.Id.ToString()); _writer.WriteString("id", attachment.Id.ToString());
_writer.WriteString( _writer.WriteString(
"url", "url",
await Context.ResolveAssetUrlAsync(attachment.Url, cancellationToken, message.Timestamp) await Context.ResolveAssetUrlAsync(
attachment.Url,
cancellationToken,
message.Timestamp
)
); );
_writer.WriteString("fileName", attachment.FileName); _writer.WriteString("fileName", attachment.FileName);
_writer.WriteNumber("fileSizeBytes", attachment.FileSize.TotalBytes); _writer.WriteNumber("fileSizeBytes", attachment.FileSize.TotalBytes);
@ -466,7 +469,11 @@ internal class JsonMessageWriter(Stream stream, ExportContext context)
_writer.WriteString("format", sticker.Format.ToString()); _writer.WriteString("format", sticker.Format.ToString());
_writer.WriteString( _writer.WriteString(
"sourceUrl", "sourceUrl",
await Context.ResolveAssetUrlAsync(sticker.SourceUrl, cancellationToken, message.Timestamp) await Context.ResolveAssetUrlAsync(
sticker.SourceUrl,
cancellationToken,
message.Timestamp
)
); );
_writer.WriteEndObject(); _writer.WriteEndObject();

View file

@ -10,8 +10,9 @@ public class UrlBuilder
{ {
private string _path = ""; private string _path = "";
private readonly Dictionary<string, string?> _queryParameters = private readonly Dictionary<string, string?> _queryParameters = new(
new(StringComparer.OrdinalIgnoreCase); StringComparer.OrdinalIgnoreCase
);
public UrlBuilder SetPath(string path) public UrlBuilder SetPath(string path)
{ {

View file

@ -6,8 +6,9 @@ namespace DiscordChatExporter.Gui.Framework;
public abstract partial class DialogViewModelBase<T> : ViewModelBase public abstract partial class DialogViewModelBase<T> : ViewModelBase
{ {
private readonly TaskCompletionSource<T> _closeTcs = private readonly TaskCompletionSource<T> _closeTcs = new(
new(TaskCreationOptions.RunContinuationsAsynchronously); TaskCreationOptions.RunContinuationsAsynchronously
);
[ObservableProperty] [ObservableProperty]
private T? _dialogResult; private T? _dialogResult;