Repository: Tyrrrz/DiscordChatExporter Branch: prime Commit: 9afecd47bd32 Files: 252 Total size: 1.0 MB Directory structure: gitextract_vxgw9uzg/ ├── .docs/ │ ├── Docker.md │ ├── Getting-started.md │ ├── Message-filters.md │ ├── Readme.md │ ├── Scheduling-Linux.md │ ├── Scheduling-MacOS.md │ ├── Scheduling-Windows.md │ ├── Token-and-IDs.md │ ├── Troubleshooting.md │ ├── Using-the-CLI.md │ └── Using-the-GUI.md ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug-report.yml │ │ └── config.yml │ ├── dependabot.yml │ └── workflows/ │ ├── docker.yml │ └── main.yml ├── .gitignore ├── Directory.Build.props ├── Directory.Packages.props ├── DiscordChatExporter.Cli/ │ ├── Commands/ │ │ ├── Base/ │ │ │ ├── DiscordCommandBase.cs │ │ │ └── ExportCommandBase.cs │ │ ├── Converters/ │ │ │ ├── ThreadInclusionModeBindingConverter.cs │ │ │ └── TruthyBooleanBindingConverter.cs │ │ ├── ExportAllCommand.cs │ │ ├── ExportChannelsCommand.cs │ │ ├── ExportDirectMessagesCommand.cs │ │ ├── ExportGuildCommand.cs │ │ ├── GetChannelsCommand.cs │ │ ├── GetDirectChannelsCommand.cs │ │ ├── GetGuildsCommand.cs │ │ ├── GuideCommand.cs │ │ └── Shared/ │ │ └── ThreadInclusionMode.cs │ ├── DiscordChatExporter.Cli.csproj │ ├── Program.cs │ └── Utils/ │ └── Extensions/ │ └── ConsoleExtensions.cs ├── DiscordChatExporter.Cli.Tests/ │ ├── DiscordChatExporter.Cli.Tests.csproj │ ├── Infra/ │ │ ├── ChannelIds.cs │ │ ├── ExportWrapper.cs │ │ └── Secrets.cs │ ├── Readme.md │ ├── Specs/ │ │ ├── CsvContentSpecs.cs │ │ ├── DateRangeSpecs.cs │ │ ├── FilterSpecs.cs │ │ ├── HtmlAttachmentSpecs.cs │ │ ├── HtmlContentSpecs.cs │ │ ├── HtmlEmbedSpecs.cs │ │ ├── HtmlForwardSpecs.cs │ │ ├── HtmlGroupingSpecs.cs │ │ ├── HtmlMarkdownSpecs.cs │ │ ├── HtmlMentionSpecs.cs │ │ ├── HtmlReplySpecs.cs │ │ ├── HtmlStickerSpecs.cs │ │ ├── JsonAttachmentSpecs.cs │ │ ├── JsonContentSpecs.cs │ │ ├── JsonEmbedSpecs.cs │ │ ├── JsonEmojiSpecs.cs │ │ ├── JsonForwardSpecs.cs │ │ ├── JsonMentionSpecs.cs │ │ ├── JsonStickerSpecs.cs │ │ ├── PartitioningSpecs.cs │ │ ├── PlainTextContentSpecs.cs │ │ ├── PlainTextForwardSpecs.cs │ │ └── SelfContainedSpecs.cs │ ├── Utils/ │ │ ├── Extensions/ │ │ │ └── StringExtensions.cs │ │ ├── Html.cs │ │ ├── TempDir.cs │ │ └── TempFile.cs │ └── xunit.runner.json ├── DiscordChatExporter.Cli.dockerfile ├── DiscordChatExporter.Core/ │ ├── Discord/ │ │ ├── Data/ │ │ │ ├── Application.cs │ │ │ ├── ApplicationFlags.cs │ │ │ ├── Attachment.cs │ │ │ ├── Channel.cs │ │ │ ├── ChannelConnection.cs │ │ │ ├── ChannelKind.cs │ │ │ ├── Common/ │ │ │ │ ├── FileSize.cs │ │ │ │ ├── IHasId.cs │ │ │ │ └── ImageCdn.cs │ │ │ ├── Embeds/ │ │ │ │ ├── Embed.cs │ │ │ │ ├── EmbedAuthor.cs │ │ │ │ ├── EmbedField.cs │ │ │ │ ├── EmbedFooter.cs │ │ │ │ ├── EmbedImage.cs │ │ │ │ ├── EmbedKind.cs │ │ │ │ ├── EmbedVideo.cs │ │ │ │ ├── SpotifyTrackEmbedProjection.cs │ │ │ │ ├── TwitchClipEmbedProjection.cs │ │ │ │ └── YouTubeVideoEmbedProjection.cs │ │ │ ├── Emoji.cs │ │ │ ├── EmojiIndex.cs │ │ │ ├── Guild.cs │ │ │ ├── Interaction.cs │ │ │ ├── Invite.cs │ │ │ ├── Member.cs │ │ │ ├── Message.cs │ │ │ ├── MessageFlags.cs │ │ │ ├── MessageKind.cs │ │ │ ├── MessageReference.cs │ │ │ ├── MessageReferenceKind.cs │ │ │ ├── MessageSnapshot.cs │ │ │ ├── Reaction.cs │ │ │ ├── Role.cs │ │ │ ├── Sticker.cs │ │ │ ├── StickerFormat.cs │ │ │ └── User.cs │ │ ├── DiscordClient.cs │ │ ├── Dump/ │ │ │ ├── DataDump.cs │ │ │ └── DataDumpChannel.cs │ │ ├── RateLimitPreference.cs │ │ ├── Snowflake.cs │ │ └── TokenKind.cs │ ├── DiscordChatExporter.Core.csproj │ ├── Exceptions/ │ │ ├── ChannelEmptyException.cs │ │ └── DiscordChatExporterException.cs │ ├── Exporting/ │ │ ├── ChannelExporter.cs │ │ ├── CsvMessageWriter.cs │ │ ├── ExportAssetDownloader.cs │ │ ├── ExportContext.cs │ │ ├── ExportFormat.cs │ │ ├── ExportRequest.cs │ │ ├── Filtering/ │ │ │ ├── BinaryExpressionKind.cs │ │ │ ├── BinaryExpressionMessageFilter.cs │ │ │ ├── ContainsMessageFilter.cs │ │ │ ├── FromMessageFilter.cs │ │ │ ├── HasMessageFilter.cs │ │ │ ├── MentionsMessageFilter.cs │ │ │ ├── MessageContentMatchKind.cs │ │ │ ├── MessageFilter.cs │ │ │ ├── NegatedMessageFilter.cs │ │ │ ├── NullMessageFilter.cs │ │ │ ├── Parsing/ │ │ │ │ └── FilterGrammar.cs │ │ │ └── ReactionMessageFilter.cs │ │ ├── HtmlMarkdownVisitor.cs │ │ ├── HtmlMessageExtensions.cs │ │ ├── HtmlMessageWriter.cs │ │ ├── JsonMessageWriter.cs │ │ ├── MessageExporter.cs │ │ ├── MessageGroupTemplate.cshtml │ │ ├── MessageWriter.cs │ │ ├── Partitioning/ │ │ │ ├── FileSizePartitionLimit.cs │ │ │ ├── MessageCountPartitionLimit.cs │ │ │ ├── NullPartitionLimit.cs │ │ │ └── PartitionLimit.cs │ │ ├── PlainTextMarkdownVisitor.cs │ │ ├── PlainTextMessageExtensions.cs │ │ ├── PlainTextMessageWriter.cs │ │ ├── PostambleTemplate.cshtml │ │ └── PreambleTemplate.cshtml │ ├── Markdown/ │ │ ├── EmojiNode.cs │ │ ├── FormattingKind.cs │ │ ├── FormattingNode.cs │ │ ├── HeadingNode.cs │ │ ├── IContainerNode.cs │ │ ├── InlineCodeBlockNode.cs │ │ ├── LinkNode.cs │ │ ├── ListItemNode.cs │ │ ├── ListNode.cs │ │ ├── MarkdownNode.cs │ │ ├── MentionKind.cs │ │ ├── MentionNode.cs │ │ ├── MultiLineCodeBlockNode.cs │ │ ├── Parsing/ │ │ │ ├── AggregateMatcher.cs │ │ │ ├── IMatcher.cs │ │ │ ├── MarkdownContext.cs │ │ │ ├── MarkdownParser.cs │ │ │ ├── MarkdownVisitor.cs │ │ │ ├── ParsedMatch.cs │ │ │ ├── RegexMatcher.cs │ │ │ ├── StringMatcher.cs │ │ │ └── StringSegment.cs │ │ ├── TextNode.cs │ │ └── TimestampNode.cs │ └── Utils/ │ ├── Docker.cs │ ├── Extensions/ │ │ ├── AsyncCollectionExtensions.cs │ │ ├── CollectionExtensions.cs │ │ ├── ColorExtensions.cs │ │ ├── ExceptionExtensions.cs │ │ ├── GenericExtensions.cs │ │ ├── HttpExtensions.cs │ │ ├── PathExtensions.cs │ │ ├── StringExtensions.cs │ │ ├── SuperpowerExtensions.cs │ │ └── TimeSpanExtensions.cs │ ├── Http.cs │ ├── Url.cs │ └── UrlBuilder.cs ├── DiscordChatExporter.Gui/ │ ├── App.axaml │ ├── App.axaml.cs │ ├── Converters/ │ │ ├── ChannelToHierarchicalNameStringConverter.cs │ │ ├── ExportFormatToStringConverter.cs │ │ ├── LocaleToDisplayNameStringConverter.cs │ │ ├── MarkdownToInlinesConverter.cs │ │ ├── RateLimitPreferenceToStringConverter.cs │ │ └── SnowflakeToTimestampStringConverter.cs │ ├── DiscordChatExporter.Gui.csproj │ ├── Framework/ │ │ ├── DialogManager.cs │ │ ├── DialogViewModelBase.cs │ │ ├── SnackbarManager.cs │ │ ├── ThemeVariant.cs │ │ ├── UserControl.cs │ │ ├── ViewManager.cs │ │ ├── ViewModelBase.cs │ │ ├── ViewModelManager.cs │ │ └── Window.cs │ ├── Localization/ │ │ ├── Language.cs │ │ ├── LocalizationManager.English.cs │ │ ├── LocalizationManager.French.cs │ │ ├── LocalizationManager.German.cs │ │ ├── LocalizationManager.Spanish.cs │ │ ├── LocalizationManager.Ukrainian.cs │ │ └── LocalizationManager.cs │ ├── Models/ │ │ └── ThreadInclusionMode.cs │ ├── Program.cs │ ├── Publish-MacOSBundle.ps1 │ ├── Services/ │ │ ├── SettingsService.TokenEncryptionConverter.cs │ │ ├── SettingsService.cs │ │ └── UpdateService.cs │ ├── StartOptions.cs │ ├── Utils/ │ │ ├── Disposable.cs │ │ ├── DisposableCollector.cs │ │ ├── Extensions/ │ │ │ ├── AvaloniaExtensions.cs │ │ │ ├── DisposableExtensions.cs │ │ │ ├── EnvironmentExtensions.cs │ │ │ ├── MarkdigExtensions.cs │ │ │ ├── NotifyPropertyChangedExtensions.cs │ │ │ └── ProcessExtensions.cs │ │ ├── Internationalization.cs │ │ └── NativeMethods.cs │ ├── ViewModels/ │ │ ├── Components/ │ │ │ └── DashboardViewModel.cs │ │ ├── Dialogs/ │ │ │ ├── ExportSetupViewModel.cs │ │ │ ├── MessageBoxViewModel.cs │ │ │ └── SettingsViewModel.cs │ │ └── MainViewModel.cs │ └── Views/ │ ├── Components/ │ │ ├── DashboardView.axaml │ │ └── DashboardView.axaml.cs │ ├── Controls/ │ │ ├── HyperLink.axaml │ │ └── HyperLink.axaml.cs │ ├── Dialogs/ │ │ ├── ExportSetupView.axaml │ │ ├── ExportSetupView.axaml.cs │ │ ├── MessageBoxView.axaml │ │ ├── MessageBoxView.axaml.cs │ │ ├── SettingsView.axaml │ │ └── SettingsView.axaml.cs │ ├── MainView.axaml │ └── MainView.axaml.cs ├── DiscordChatExporter.sln ├── License.txt ├── NuGet.config ├── Readme.md ├── docker-entrypoint.sh ├── favicon.icns └── global.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .docs/Docker.md ================================================ # Docker usage instructions Docker distribution of DiscordChatExporter provides a way to run the app in a virtualized and isolated environment. Due to the nature of Docker, you also don't need to install any prerequisites otherwise required by DCE. > **Note**: > Only the CLI flavor of DiscordChatExporter is available for use with Docker. ## Pulling This will download the [Docker image from the registry](https://hub.docker.com/r/tyrrrz/discordchatexporter) to your computer. You can run this command again to update when a new version is released. ```console $ docker pull tyrrrz/discordchatexporter:stable ``` Note the `:stable` tag. DiscordChatExporter images are tagged according to the following patterns: - `stable` — latest stable version release. This tag is updated with each release of a new project version. Recommended for personal use. - `x.y.z` (e.g. `2.30.1`) — specific stable version release. This tag is pushed when the corresponding version is released and never updated thereafter. Recommended for use in automation scenarios. - `latest` — latest (potentially unstable) build. This tag is updated with each new commit to the `prime` branch. Not recommended, unless you want to test a new feature that has not been released in a stable version yet. You can see all available tags [here](https://hub.docker.com/r/tyrrrz/discordchatexporter/tags?ordering=name). ## Usage To run the CLI in Docker and render help text: ```console $ docker run --rm tyrrrz/discordchatexporter:stable ``` To export a channel: ```console $ docker run --rm -v /path/on/machine:/out tyrrrz/discordchatexporter:stable export -t TOKEN -c CHANNELID ``` If you want colored output and real-time progress reporting, pass the `-it` (interactive + pseudo-terminal) option: ```console $ docker run --rm -it -v /path/on/machine:/out tyrrrz/discordchatexporter:stable export -t TOKEN -c CHANNELID ``` The `-v /path/on/machine:/out` option instructs Docker to bind the `/out` directory inside the container to a path on your host machine. Replace `/path/on/machine` with the directory you want the files to be saved at. > **Note**: > If you are running SELinux, you will need to add the `:z` option after `/out`, e.g.: > > ```console > $ docker run --rm -v /path/on/machine:/out:z tyrrrz/discordchatexporter:stable export -t TOKEN -c CHANNELID > ``` > > For more information, refer to the [Docker docs SELinux labels for bind mounts page](https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label). You can also use the current working directory as the output directory by specifying: - `-v $PWD:/out` in Bash - `-v $pwd.Path:/out` in PowerShell For more information, please refer to the [Dockerfile](https://github.com/Tyrrrz/DiscordChatExporter/blob/prime/DiscordChatExporter.Cli.dockerfile) and [Docker documentation](https://docs.docker.com/engine/reference/run). To get your Token and Channel IDs, please refer to [this page](Token-and-IDs.md). ## Unix permissions issues This image was designed with a user running as uid:gid of 1000:1000. If your current user has different IDs, and you want to generate files directly editable for your user, you might want to run the container like this: ```console $ mkdir data # or chown -R $(id -u):$(id -g) data $ docker run -it --rm -v $PWD/data:/out --user $(id -u):$(id -g) tyrrrz/discordchatexporter:stable export -t TOKEN -g CHANNELID ``` ## Environment variables DiscordChatExpoter CLI accepts the `DISCORD_TOKEN` environment variable as a fallback for the `--token` option. You can set this variable either with the `--env` Docker option or with a combination of the `--env-file` Docker option and a `.env` file. Please refer to the [Docker documentation](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file) for more information. ================================================ FILE: .docs/Getting-started.md ================================================ # Getting started Welcome to the getting started page! Here you'll learn how to use every **DiscordChatExporter** (DCE for short) feature. For other things you can do with DCE, check out the [Guides](Readme.md#guides) section. If you still have unanswered questions after reading this page or if you have encountered a problem, please visit our [FAQ & Troubleshooting](Troubleshooting.md) section. The information presented on this page is valid for **all** platforms. ## GUI or CLI? ![GUI vs CLI](https://i.imgur.com/j9OTxRB.png) **DCE** has two different versions: - **Graphical User Interface** (**GUI**) - it's the preferred version for newcomers as it is easy to use. You can get it by [downloading](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest) the `DiscordChatExporter.*.zip` file. - **Command-line Interface** (**CLI**) - offers greater flexibility and more features for advanced users, such as export scheduling, ID lists, and more specific date ranges. You can get it by [downloading](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest) the `DiscordChatExporter.Cli.*.zip` file. There are dedicated guides for each version: - [Using the GUI](Using-the-GUI.md) - [Using the CLI](Using-the-CLI.md) ## File formats ### HTML ![](https://i.imgur.com/S7lBTkV.png) The HTML format replicates Discord's interface, making it the most user-friendly option. It's the best format for attachment preview and sharing. You can open `.html` files with a web browser, such as Google Chrome. > [!WARNING] > If a picture is deleted, or if a user changes its avatar, the respective images will no longer be displayed. > Export using the "Download assets" (`--media`) option to avoid this. ### Plain Text The Plain Text format formats messages as plain text, and has the smallest size. You can open `.txt` files with a text editor, such as Notepad. ### JSON The JSON format contains more technical information and is easily parsable. You can open `.json` files with a text editor, such as Notepad. ### CSV ![](https://i.imgur.com/VEVUsKs.png) ![](https://i.imgur.com/1vPmQqQ.png) The CSV format allows for easy parsing of the chat log. Depending on your needs, the JSON format might be better. You can open `.csv` files with a text editor, such as Notepad, or a spreadsheet app, like Microsoft Excel and Google Sheets. ================================================ FILE: .docs/Message-filters.md ================================================ # Message filters You can use a special notation to filter messages that you want to have included in an export. The notation syntax is designed to mimic Discord's search query syntax, but with additional capabilities. To configure a filter, specify it in advanced export parameters when using the GUI or by passing the `--filter` option when using the CLI. For the CLI version, see also [caveats](#cli-caveats). ## Examples - Filter by user ```console from:Tyrrrz ``` - Filter by user (with discriminator) ```console from:Tyrrrz#1234 ``` - Filter by message content (allowed values: `link`, `embed`, `file`, `video`, `image`, `sound`) ```console has:image ``` - Filter by mentioned user (same rules apply as with `from:` filter) ```console mentions:Tyrrrz#1234 ``` - Filter by contained text (has word "hello" and word "world" somewhere in the message text): ```console hello world ``` - Filter by contained text (has the string "hello world" somewhere in the message text): ```console "hello world" ``` - Combine multiple filters ('and'): ```console from:Tyrrrz has:image ``` - Same thing but with an explicit operator: ```console from:Tyrrrz & has:image ``` - Combine multiple filters ('or'): ```console from:Tyrrrz | from:"96-LB" ``` - Combine multiple filters using groups: ```console (from:Tyrrrz | from:"96-LB") has:image ``` - Negate a filter: ```console -from:Tyrrrz | -has:image ``` - Negate a grouped filter: ```console -(from:Tyrrrz has:image) ``` - Escape special characters (`-` is escaped below, so it's not parsed as negation operator): ```console from:96\-LB ``` ## CLI Caveats In most cases, you will need to enclose your filter in quotes (`"`) to escape characters that may have special meaning in your shell: ```console $ ./DiscordChatExporter.Cli export [...] --filter "from:Tyrrrz has:image" ``` If you need to include quotes inside the filter itself as well, use single quotes (`'`) for those instead: ```console $ ./DiscordChatExporter.Cli export [...] --filter "from:Tyrrrz 'hello world'" ``` Additionally, negated filters (those that start with `-`) may cause parsing issues even when enclosed in quotes. To avoid this, use the tilde (`~`) character instead of the dash (`-`): ```console $ ./DiscordChatExporter.Cli export [...] --filter ~from:Tyrrrz ``` ================================================ FILE: .docs/Readme.md ================================================ # Home ## Installation & Usage - Getting started: - [Using the GUI](Using-the-GUI.md) - [Using the CLI](Using-the-CLI.md) - [File formats](Getting-started.md#file-formats) ## Guides - [How to get Token and Channel IDs](Token-and-IDs.md) - [How to use message filters](Message-filters.md) - Export scheduling with CLI: - [Windows](Scheduling-Windows.md) - [macOS](Scheduling-MacOS.md) - [Linux](Scheduling-Linux.md) ## Video tutorial - Video by [NoIntro Tutorials](https://youtube.com/channel/UCFezKSxdNKJe77-hYiuXu3Q) (using DiscordChatExporter GUI) [![Video tutorial](https://i.ytimg.com/vi/jjtu0VQXV7I/hqdefault.jpg)](https://youtube.com/watch?v=jjtu0VQXV7I) ## FAQ & Troubleshooting - [General questions](Troubleshooting.md#general) - [First steps help](Troubleshooting.md#first-steps) - [It's crashing/failing](Troubleshooting.md#DCE-is-crashingfailing) - [Errors](Troubleshooting.md#errors) - [**More help**](Troubleshooting.md) ================================================ FILE: .docs/Scheduling-Linux.md ================================================ # Scheduling exports with Cron ## Creating the script 1. Open Terminal and create a new text file with `nano /path/to/DiscordChatExporter/cron.sh` > **Note**: > You can't use your mouse in nano, use the arrow keys to control the cursor (caret). 2. Paste the following into the text file: ```bash #!/bin/bash # Info: https://github.com/Tyrrrz/DiscordChatExporter/blob/prime/.docs TOKEN=tokenhere CHANNELID=channelhere DLLFOLDER=dceFOLDERpathhere FILENAME=filenamehere EXPORTDIRECTORY=dirhere EXPORTFORMAT=formathere # Available export formats: plaintext, htmldark, htmllight, json, csv # /\ CaSe-SeNsItIvE /\ # You can edit the export command on line 40 if you'd like to include more options like date ranges and date format. You can't use partitioning (-p) with this script. # This will verify if EXPORTFORMAT is valid and will set the final file extension according to it. If the format is invalid, the script will display a message and exit. if [[ "$EXPORTFORMAT" == "plaintext" ]]; then FORMATEXT=.txt elif [[ "$EXPORTFORMAT" == "htmldark" ]] || [[ "$EXPORTFORMAT" == "htmllight" ]]; then FORMATEXT=.html elif [[ "$EXPORTFORMAT" == "json" ]]; then FORMATEXT=.json elif [[ "$EXPORTFORMAT" == "csv" ]]; then FORMATEXT=.csv else echo "$EXPORTFORMAT - Unknown export format" echo "Available export formats: plaintext, htmldark, htmllight, csv, json" echo "/\ CaSe-SeNsItIvE /\\" exit 1 fi # This will change the script's directory to DLLPATH, if unable to do so, the script will exit. cd $DLLFOLDER || exit 1 # This will export your chat ./DiscordChatExporter.Cli export -t $TOKEN -c $CHANNELID -f $EXPORTFORMAT -o $FILENAME.tmp # This sets the current time to a variable CURRENTTIME=$(date +"%Y-%m-%d-%H-%M-%S") # This will move the .tmp file to the desired export location, if unable to do so, it will attempt to delete the .tmp file. if ! mv "$FILENAME.tmp" "${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME$FORMATEXT" ; then echo "Unable to move $FILENAME.tmp to $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME$FORMATEXT." echo "Cleaning up..." if ! rm -Rf "$FILENAME.tmp" ; then echo "Unable to remove $FILENAME.tmp." fi exit 1 fi exit 0 ``` 3. Replace: - `tokenhere` with your [Token](Token-and-IDs.md). - `channelhere` with a [Channel ID](Token-and-IDs.md). - `dceFOLDERpathhere` with DCE's **directory path** (e.g. `/path/to/folder`, NOT `/path/to/folder/DiscordChatExporter.dll`). - `filenamehere` with the exported channel's filename, without spaces. - `dirhere` with the export directory (e.g. /home/user/Documents/Discord\ Exports). - `formathere` with one of the available export formats. > **Note**: > Remember to escape spaces (add `\` before them) or to quote (") the paths (`"/home/my user"`)! > **Note**: > To save, hold down CTRL and then press O, if asked for a filename, type it and press ENTER. Hit CTRL+X to exit the text editor. > [Check out this page](https://wiki.gentoo.org/wiki/Nano/Basics_Guide) if you want to know more about nano. 4. Make your script executable with `chmod +x /path/to/DiscordChatExporter/cron.sh` 5. Let's edit the cron file. If you want to run the script with your user privileges, edit it by running `crontab -e`. If you want to run the script as root, edit it with `sudo crontab -e`. If this is your first time running this command, you might be asked to select a text editor. Nano is easier for beginners. 6. Add the following to the end of the file `* * * * * /path/to/DiscordChatExporter/cron.sh >/tmp/discordchatexporter.log 2>/tmp/discordchatexportererror.log`. Don't forget to replace the `/path/to/DiscordChatExporter/cron.sh`! > **Note**: > If you don't want logs to be created, replace both `/tmp/discordchatexporter.log` with `/dev/null`. Then replace the \*s according to: ![](https://i.imgur.com/RY7USM6.png) --- **Examples**: - If you want to execute the script at minute 15 of every hour: `15 * * * *` - Every 30 minutes `*/30 * * * *` - Every day at midnight `0 0 * * *` - Every day at noon `0 12 * * *` - Every day at 3, 4 and 6 PM `0 15,16,18 * * *` - Every Wednesday at 9 AM `0 9 * * 3` Verify your cron time [here](https://crontab.guru). --- **Additional information** The week starts on Sunday. 0 = SUN, 1 = MON ... 7 = SUN. Be aware that if you set the day to '31', the script will only run on months that have the 31st day. > [Learn more about running a cron job on the last day of the month here](https://stackoverflow.com/questions/6139189/cron-job-to-run-on-the-last-day-of-the-month) (expert). The default filename for the exported channel is `YYYY-MM-DD-hh-mm-ss-yourfilename`. You can change it if you'd like. Don't forget to update your token in the script after it has been reset! --- Special thanks to [@Yudi](https://github.com/Yudi) ================================================ FILE: .docs/Scheduling-MacOS.md ================================================ # Scheduling exports on macOS ## Creating the script 1. Open TextEdit.app and create a new file 2. Convert the file to a plain text one in 'Format > Make Plain Text' (⇧⌘T) ![](https://i.imgur.com/WXrTtXM.png) 3. Paste the following into the text editor: ```bash #!/bin/bash # Info: https://github.com/Tyrrrz/DiscordChatExporter/blob/prime/.docs TOKEN=tokenhere CHANNELID=channelhere DLLFOLDER=dceFOLDERpathhere FILENAME=filenamehere EXPORTDIRECTORY=dirhere EXPORTFORMAT=formathere # Available export formats: plaintext, htmldark, htmllight, json, csv # /\ CaSe-SeNsItIvE /\ # You can edit the export command on line 43 if you'd like to include more options like date ranges and date format. You can't use partitioning (-p) with this script. # This variable specifies in which directories the executable programs are located. Don't change it. PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet # This will verify if EXPORTFORMAT is valid and will set the final file extension according to it. If the format is invalid, the script will display a message and exit. if [[ "$EXPORTFORMAT" == "plaintext" ]]; then FORMATEXT=.txt elif [[ "$EXPORTFORMAT" == "htmldark" ]] || [[ "$EXPORTFORMAT" == "htmllight" ]]; then FORMATEXT=.html elif [[ "$EXPORTFORMAT" == "json" ]]; then FORMATEXT=.json elif [[ "$EXPORTFORMAT" == "csv" ]]; then FORMATEXT=.csv else echo "$EXPORTFORMAT - Unknown export format" echo "Available export formats: plaintext, htmldark, htmllight, csv, json" echo "/\ CaSe-SeNsItIvE /\\" exit 1 fi # This will change the script's directory to DLLPATH, if unable to do so, the script will exit. cd $DLLFOLDER || exit 1 # This will export your chat ./DiscordChatExporter.Cli export -t $TOKEN -c $CHANNELID -f $EXPORTFORMAT -o $FILENAME.tmp # This sets the current time to a variable CURRENTTIME=$(date +"%Y-%m-%d-%H-%M-%S") # This will move the .tmp file to the desired export location. If unable to do so, it will attempt to delete the .tmp file. if ! mv "$FILENAME.tmp" "${EXPORTDIRECTORY//\"}/$FILENAME-$CURRENTTIME$FORMATEXT" ; then echo "Unable to move $FILENAME.tmp to $EXPORTDIRECTORY/$FILENAME-$CURRENTTIME$FORMATEXT." echo "Cleaning up..." if ! rm -Rf "$FILENAME.tmp" ; then echo "Unable to remove $FILENAME.tmp." fi exit 1 fi exit 0 ``` 4. Replace: - `tokenhere` with your [Token](Token-and-IDs.md) - `channelhere` with a [Channel ID](Token-and-IDs.md) - `dceFOLDERpathhere` with DCE's **directory's path** (e.g. `/Users/user/Desktop/DiscordChatExporterFolder`, NOT `/Users/user/Desktop/DiscordChatExporterFolder/DiscordChatExporter.DLL`) - `filenamehere` with the exported channel's filename, without spaces - `dirhere` with the directory you want the files to be saved at (e.g. `/Users/user/Documents/Discord\ Exports`) - `formathere` with one of the available export formats To quickly get file or folder paths, select the file/folder, then hit Command+I (⌘I) and copy what's after `Where:`. After copying and pasting, make sure the file/folder name is not missing. If a folder has spaces in its name, add `\` before the spaces, like in the example below: - `Discord\ Exports` - Wrong ✗ - `/Users/user/Documents` - Wrong ✗ - `/Users/user/Documents/Discord Exports` - Wrong ✗ - `/Users/user/Documents/Discord\ Exports/DCE.Cli.dll` - Wrong ✗ - `/Users/user/Documents/Discord \Exports` - Wrong ✗ - `/Users/user/Documents/Discord\ Exports` - Correct ✓ - `/Users/user/Desktop/DiscordChatExporter` - Correct ✓ ![Screenshot of mac info window](https://i.imgur.com/29u6Nyx.png) 5. Save the file as `filename.sh`, not `.txt` 6. Open Terminal.app, type `chmod +x`, press the SPACE key, then drag & drop the `filename.sh` into the Terminal window and hit RETURN. You may be prompted for your password, and you won't be able to see it as you type. ## Creating the .plist file Open TextEdit, make a Plain Text (⇧⌘T) and then paste the following into it: ```xml Label local.discordchatexporter Program /path/to/filename.sh REPLACEME ``` - The `Label` string is the name of the export job, it must be something unique. Replace the `local.discordchatexporter` between the `` with another name if you'd like to run more than one script. - The `Program` string is the path to the script. Replace `/path/to/filename.sh` between the `` with the path of the previously created script. - Replace the `REPLACEME` with the content presented in the following sections according to when you want to export. When you're done, save the file with the same name as the `Label` and with the `.plist` extension (not `.txt`), like `local.discordchatexporter.plist`. ### Exporting on System Boot/User Login ```xml RunAtLoad ``` ### Export every _n_ seconds The following example is to export every 3600 seconds (1 hour), replace the integer value with your desired time: ```xml StartInterval 3600 ``` ### Export at a specific time and date ```xml StartCalendarInterval Weekday 0 Month 0 Day 0 Hour 0 Minute 0 ``` | Key | Integer | | ----------- | ----------------- | | **Month** | 1-12 | | **Day** | 1-31 | | **Weekday** | 0-6 (0 is Sunday) | | **Hour** | 0-23 | | **Minute** | 0-59 | **Sunday** - 0; **Monday** - 1; **Tuesday** - 2; **Wednesday** - 3; **Thursday** - 4; **Friday** - 5; **Saturday** - 6 Replace the template's `0`s according to the desired times. You can delete the ``s you don't need, don't forget to remove the `0` under it. Omitted keys are interpreted as wildcards, for example, if you delete the Minute key, the script will run at every minute, delete the Weekday key and it'll run at every weekday, and so on. Be aware that if you set the day to '31', the script will only run on months that have the 31st day. **Check the examples below ([or skip to step 3 (loading the file)](#3-loading-the-plist-into-launchctl)):** Export everyday at 5:15 PM: ```xml StartCalendarInterval Hour 17 Minute 15 ``` Every 15 minutes of an hour (xx:15): ```xml StartCalendarInterval Minute 15 ``` Every Sunday at midnight and every Wednesday full hour (xx:00). Notice the inclusion of `` and `` to allow multiple values: ```xml StartCalendarInterval Weekday 0 Hour 00 Minute 00 Weekday 3 Minute 00 ``` ## Loading the .plist into launchctl 1. Copy your `filename.plist` file to one of these folders according to how you want it to run: - `~/Library/LaunchAgents` runs as the current logged-in user. - `/Library/LaunchDaemons` runs as the system "_administrator_" (root). - If macOS has a single user: - If you want to export only when the user is logged in, choose the first one. - If you want the script to always run on System Startup, choose the second one. - If macOS has multiple users: - If you want the script to run only when a certain user is logged in, choose the first one. - If you want the script to always run on System Startup, choose the second one. To quickly go to these directories, open Finder and press Command+Shift+G (⌘⇧G), then paste the path into the text box. 2. To load the job into launchctl, in Terminal, type `launchctl load`, press SPACE, drag and drop the `.plist` into the Terminal window, then hit RETURN. It won't output anything if it was successfully loaded. ### Extra launchctl commands **Unloading a job** ``` launchctl unload /path/to/Library/LaunchAgents/local.discordchatexporter.plist ``` **List every loaded job** ``` launchctl list ``` **Check if a specific job is enabled** You can also see error codes (2nd number) by running this command. ``` launchctl list | grep local.discordchatexporter ``` --- Further reading: [Script management with launchd in Terminal on Mac](https://support.apple.com/guide/terminal/script-management-with-launchd-apdc6c1077b-5d5d-4d35-9c19-60f2397b2369/mac) and [launchd.info](https://launchd.info/). Special thanks to [@Yudi](https://github.com/Yudi) ================================================ FILE: .docs/Scheduling-Windows.md ================================================ # Scheduling exports on Windows ## Creating the script 1. Open a text editor such as Notepad and paste: ```console # Info: https://github.com/Tyrrrz/DiscordChatExporter/blob/prime/.docs $TOKEN = "tokenhere" $CHANNEL = "channelhere" $EXEPATH = "exefolderhere" $FILENAME = "filenamehere" $EXPORTDIRECTORY = "dirhere" $EXPORTFORMAT = "formathere" # Available export formats: PlainText, HtmlDark, HtmlLight, Json, Csv cd $EXEPATH ./DiscordChatExporter.Cli export -t $TOKEN -c $CHANNEL -f $EXPORTFORMAT -o "$FILENAME.tmp" $Date = Get-Date -Format "yyyy-MM-dd-HH-mm" If($EXPORTFORMAT -match "PlainText"){mv "$FILENAME.tmp" -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.txt"} ElseIf($EXPORTFORMAT -match "HtmlDark"){mv "$FILENAME.tmp" -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.html"} ElseIf($EXPORTFORMAT -match "HtmlLight"){mv "$FILENAME.tmp" -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.html"} ElseIf($EXPORTFORMAT -match "Json"){mv "$FILENAME.tmp" -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.json"} ElseIf($EXPORTFORMAT -match "Csv"){mv "$FILENAME.tmp" -Destination "$EXPORTDIRECTORY\$FILENAME-$Date.csv"} exit ``` 2. Replace: - `tokenhere` with your [Token](Token-and-IDs.md) - `channelhere` with a [Channel ID](Token-and-IDs.md) - `exefolderhere` with the .exe **directory's path** (e.g. C:\Users\User\Desktop\DiscordChatExporter) - `filenamehere` with a filename without spaces - `dirhere` with the export directory (e.g. C:\Users\User\Documents\Exports) - `formathere` with one of the available export formats Make sure not to delete the quotes (") 3. Save the file as `filename.ps1`, not as `.txt` > **Note**: You can also modify the script to use other options, such as `include-threads` or switch to a different command, e. g. `exportguild`. ## Export at Startup 1. Press Windows + R, type `shell:startup` and press ENTER 2. Paste `filename.ps1` or a shortcut into this folder ## Scheduling with Task Scheduler Please note that your computer must be turned on for the export to happen. 1. Press Windows + R, type `taskschd.msc` and press ENTER 2. Select `Task Scheduler Library`, create a Basic Task, and follow the instructions on-screen ![Screenshot from Task Scheduler](https://i.imgur.com/m2DKhA8.png) 3. At 'Start a Program', write `powershell -file -ExecutionPolicy ByPass -WindowStyle Hidden "C:\path\to\filename.ps1"` in the Program/script text box ![](https://i.imgur.com/FGtWRod.png) 4. Click 'Yes' ![](https://i.imgur.com/DuaRBt3.png) 5. Click 'Finish' ![](https://i.imgur.com/LHgXp9Q.png) --- Special thanks to [@Yudi](https://github.com/Yudi) ================================================ FILE: .docs/Token-and-IDs.md ================================================ # Obtaining Token and Channel IDs > [!WARNING] > **Do not share your token!** A token gives full access to an account. > To reset a user token, change your account password. > To reset a bot token, click on [Reset Token](#how-to-export-with-a-bot-token) in the bot settings. ## How to get a user token **Caution:** [Automating user accounts violates Discord's terms of service](https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-) and may result in account termination. Use at your own risk. ### Through your web browser Prerequisite step: Navigate to [discord.com](https://discord.com) and login. #### In Chrome ##### Using the console 1. Press Ctrl+Shift+I (++I on macOS). Chrome's [DevTools](https://developer.chrome.com/docs/devtools/overview) tools will display.

2. Click the `Console` tab. The [console](https://developer.chrome.com/docs/devtools/console/) will open. 3. Type ```js let m;webpackChunkdiscord_app.push([[Math.random()],{},e=>{for(let i in e.c){let x=e.c[i];if(x?.exports?.getToken){m=x;break}}}]);m&&console.log("Token:",m.exports.getToken()); ``` into the console and press Enter. The console will display your user token. ##### Using the network monitor 1. Press Ctrl+Shift+I (++I on macOS). Chrome's [DevTools](https://developer.chrome.com/docs/devtools/overview) tools will display.

2. Click the `Network` tab. The [network panel](https://developer.chrome.com/docs/devtools/overview/#network) will open

3. Press F5. The page will reload, and the network log (the lower half of the network panel) will display several entries.

4. Click the text box labelled `Filter` and type `messages`. The entries will filter down to a single request named `messages`. If the request doesn't appear, switch to any other Discord channel to trigger it.

5. Click the entry named `messages`. A panel will open to the right and display details about the entry. Click the `Headers` tab if it isn't already active.

6. Scroll through the contents of the `Headers` tab until you find an entry beginning with `authorization:`.

7. Right-click the entry and click `copy value`.

##### Using the storage inspector 1. Press Ctrl+Shift+I (++I on macOS). Chrome's [DevTools](https://developer.chrome.com/docs/devtools/overview/) will display.

2. Press Ctrl+Shift+M (+Shift+M). Chrome will enter [Device Mode](https://developer.chrome.com/docs/devtools/device-mode/), and the webpage will display as if on a mobile device.

3. If necessary, click the `»` at the right end of the tab bar, and click `Application`. The [application panel](https://developer.chrome.com/docs/devtools/overview/#application) will display.

4. In the menu to the right, under `Storage`, expand `Local Storage` if necessary, then click `https://discord.com`. The pane to the right will display a list of key-value pairs.

5. In the text box marked `Filter`, type `token`. The entries will filter down to those containing the string `token`.

6. Click the `token` entry. (Note: if the token doesn't display, try refreshing by pressing F5 or +R on macOS)

7. Click the text box at the bottom, press Ctrl+A (+A on macOS) then Ctrl+C (+C on macOS) to copy the value to your clipboard.

#### In Firefox ##### Using the console 1. Press Ctrl+Shift+K (++K on macOS). Firefox’s [web developer tools](https://firefox-source-docs.mozilla.org/devtools-user/) will display at the bottom of the window, and the [web console](https://firefox-source-docs.mozilla.org/devtools-user/console/index.html) will display.

2. Click the `Console` tab. The [console](https://firefox-source-docs.mozilla.org/devtools-user/console/index.html) will open. 1. Type ```js let m;webpackChunkdiscord_app.push([[Math.random()],{},e=>{for(let i in e.c){let x=e.c[i];if(x?.exports?.getToken){m=x;break}}}]);m&&console.log("Token:",m.exports.getToken()); ``` into the console and press Enter. The console will display your user token. ##### Using the network monitor 1. Press Ctrl+Shift+E (++E on macOS). Firefox’s [web developer tools](https://firefox-source-docs.mozilla.org/devtools-user/) will display at the bottom of the window, and the [network monitor](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/) will display.

2. Press F5. The page will reload, and the [network request list](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/request_list/index.html) will populate with entries.

3. Type `messages` into the filter. The network request list will filter out any entries not containing the string `messages`. If the request doesn't appear, switch to any other Discord channel to trigger it.

4. Click `messages`. The [network request details pane](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/request_details/index.html) will display. The [headers tab](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/request_details/index.html#network-monitor-request-details-headers-tab) should be active by default. If it isn’t, click it.

5. Type `authorization` into the text box labelled `Filter Headers`.

6. Scroll down until you see an entry labeled [authorization](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization) under `Request Headers`.

7. Right-click the entry labeled `authorization` and select `copy value`.

##### Using the storage inspector 1. Press Shift+F9. Firefox’s [web developer tools](https://firefox-source-docs.mozilla.org/devtools-user/) will display at the bottom of the window, and the [storage](https://firefox-source-docs.mozilla.org/devtools-user/storage_inspector/index.html) panel will be selected.

2. Press Ctrl+Shift+M (++M on macOS). Firefox will toggle [responsive design mode](https://firefox-source-docs.mozilla.org/devtools-user/responsive_design_mode/), and the web page will display as if on a mobile device. (Note: Discord may steal focus and respond to the command by toggling mute. If this happens, return focus to Firefox’s web developer tools by clicking somewhere in it, then try the command again.)

3. In the [storage tree](https://firefox-source-docs.mozilla.org/devtools-user/storage_inspector/index.html#storage-inspector-storage-tree) (the list on the left side of the web developer tools panel), click [Local Storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage). The entry will expand, and the entry `https://discord.com` will display beneath it.

4. In the storage tree, click `https://discord.com`. The [table widget](https://firefox-source-docs.mozilla.org/devtools-user/storage_inspector/index.html#storage-inspector-table-widget) to the right of the storage tree will display several key-value pairs.

5. In the text box labelled `Filter items` at the top of the table widget, enter `token`. The table will now only display entries containing the string `token`.

6. Click the entry `token`. The [sidebar](https://firefox-source-docs.mozilla.org/devtools-user/storage_inspector/index.html#storage-inspector-sidebar) will display. (Note: If the token doesn’t display, try refreshing by pressing F5.)

7. Right-click the single entry in the sidebar and select `copy`.

### Through the desktop app / enabling web developer tools #### By editing the settings file 1. If Discord is running, exit the application by right-clicking the icon in your taskbar tray and clicking `Quit Discord`. 2. Open Discord's settings file in your preferred text editor. See the following table for help finding it: | OS | Stable | Canary | Public Test Build (PTB) | | ------- | ----------------------------------------------------- | ----------------------------------------------------------- | -------------------------------------------------------- | | Windows | `%APPDATA%\discord\settings.json` | `%APPDATA%\discordcanary\settings.json` | `%APPDATA%\discordptb\settings.json` | | macOS | `~/Library/Application Support/discord/settings.json` | `~/Library/Application Support/discordcanary/settings.json` | `~/Library/Application Support/discordptb/settings.json` | | Linux | `~/.config/discord/settings.json` | `~/.config/discordcanary/settings.json` | `~/.config/discordptb/settings.json` | If you use BetterDiscord, use the following table instead: | OS | Stable | Canary | Public Test Build (PTB) | | ------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -------------------------------------------------------------------- | | Windows | `%APPDATA%\BetterDiscord\data\stable\settings.json` | `%APPDATA%\BetterDiscord\data\canary\settings.json` | `%APPDATA%\BetterDiscord\data\ptb\settings.json` | | macOS | `~/Library/Application Support/BetterDiscord/data/stable/settings.json` | `~/Library/Application Support/BetterDiscord/data/canary/settings.json` | `~/Library/Application Support/BetterDiscord/data/ptb/settings.json` | | Linux | `~/.config/BetterDiscord/data/stable/settings.json` | `~/.config/BetterDiscord/data/canary/settings.json` | `~/.config/BetterDiscord/data/ptb/settings.json` | 3. Insert a blank line after the first curly bracket (`{`), add the text `"DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true,` to it, and save the file. Your file should resemble the following: ```json { "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true, "BACKGROUND_COLOR": "#202225", "IS_MAXIMIZED": true } ``` 4. Launch Discord. 5. To find your user token, continue [here](#in-chrome). #### Via settings menu (BetterDiscord only) 1. Click the User Settings button (the gear icon to the right of your username). Discord’s settings page will open.

2. In the sidebar to the left, click `Settings` under the `BetterDiscord` group. BetterDiscord’s settings page will display.

3. In the main panel to the right, expand the `Developer Settings` group if necessary, and toggle `DevTools` to enabled.

4. Press Esc. The settings page will close. 5. To find your user token, continue [here](#in-chrome). ## How to export with a bot token ### Step 1 - Create an application You can create a new application or use an existing one. If you want to create a new one: 1. Go to [Discord developer portal](https://discord.com/developers/applications) 2. Click on **New Application** in the top right corner 3. Enter a name for your application and click **Create** ### Step 2 - Invite the bot to your server The bot needs to be invited to the server you'd like to export from. 1. Go to [Discord developer portal](https://discord.com/developers/applications) 2. Navigate to **General Information** on the left 3. Copy the **Application ID** 4. Open the following URL in your browser, replacing `YOUR_APP_ID` with the copied Client ID: ``` https://discord.com/oauth2/authorize?scope=bot&permissions=66560&client_id=YOUR_APP_ID ``` ### Step 3 - Ensure message content intent is enabled If this option is not enabled, the exported files will be empty. 1. Go to [Discord developer portal](https://discord.com/developers/applications) 2. Open your Application's settings 3. Navigate to the **Bot** section on the left 4. Scroll down to the **Privileged Gateway Intents** section 5. Enable **Message Content Intent** by toggling the switch ### Step 4 - Copy the bot token If you don't have a bot token yet or if you've lost it, follow these steps to reset it: 1. Go to [Discord developer portal](https://discord.com/developers/applications) 2. Open your Application's settings 3. Navigate to the **Bot** section on the left 4. Under **Token** click **Reset Token** 5. Click **Yes, do it!** and authenticate to confirm > **Tip**: > As the token is only shown once, make sure to store it in a safe place. If you lose the token, you will have to reset it again. > [!WARNING] > Resetting the token will invalidate the old one. Any integrations relying on the old token will cease to function until they are updated. ![https://discord.com/developers/applications/](https://i.imgur.com/soiB8Qc.png) --- ## How to get a Server ID or a Channel ID 1. Open Discord Settings 2. Go to the **Advanced** section 3. Enable **Developer Mode** 4. Right-click on the desired server or channel and click **Copy Server ID** or **Copy Channel ID** ================================================ FILE: .docs/Troubleshooting.md ================================================ # Troubleshooting Welcome to the Frequently Asked Questions (FAQ) and Troubleshooting page! Here you'll find the answers to most of the questions related to **DiscordChatExporter** (DCE for short) and its core features. - ❓ If you still have unanswered questions _after_ reading this page, feel free to [create a new discussion](https://github.com/Tyrrrz/DiscordChatExporter/discussions/new). - 🐞 If you have encountered a problem that's not described here, has not [been discussed before](https://github.com/Tyrrrz/DiscordChatExporter/discussions), and is not a [known issue](https://github.com/Tyrrrz/DiscordChatExporter/issues?q=is%3Aissue), please [create a new discussion](https://github.com/Tyrrrz/DiscordChatExporter/discussions/new) or [open a bug report](https://github.com/Tyrrrz/DiscordChatExporter/issues/new). Don't forget to include your platform (Windows, Mac, Linux, etc.) and a detailed description of your question/problem. ## General questions ### Token stealer? No. That's why this kind of software needs to be open-source, so the code can be audited by anyone. Your token is only used to connect to Discord's API, it's not sent anywhere else. If you're using the GUI, be aware that your token will be saved to a plain text file unless you disable it in the settings menu. ### Why should I be worried about the safety of my token? A token can be used to log into your account, so treat it like a password and never share it. ### How can I reset my token? Follow the [instructions here](Token-and-IDs.md). ### Will I get banned if I use this? Automating user accounts is technically against [TOS](https://discord.com/terms), use at your discretion. [Bot accounts](https://discord.com/developers/docs/topics/oauth2#bot-users) don't have this restriction. ### Will the messages disappear from the exported file if I delete a message, delete my account or block a person? Text messages will not be removed from the exported file, but if media, such as images and user avatars, is changed or deleted, it will no longer be displayed. To avoid this, export using the "Download media" (`--media`) option. ### Can DCE export messages that have already been deleted? No, DCE cannot access them since they have been permanently deleted from Discord's servers. ### Can DCE export private chats? Yes, if your account has access to them. ### Can DCE download images? Yes, and other media too. Export using the "Download media" (`--media`) option. ### Can the exported chats be shared? Yes. ### Can DCE export multiple formats at once? No, you can only export one format at a time. ### Can DCE recreate the exported chats in Discord? No, DCE is an exporter. ### Can DCE reupload exported messages to another channel? No, DCE is an exporter. ### Can DCE add new messages to an existing export? No. ## First steps ### How can I find my token? Check the following page: [Obtaining token](Token-and-IDs.md) ### When I open DCE a black window pops up quickly or nothing shows up You might have downloaded the CLI flavor of the app, which is meant to be run in a terminal. Try [downloading the GUI](Getting-started.md#gui-or-cli) instead if that's what you want. ### How can I set DCE to export automatically at certain times? Check the following pages to learn how to schedule **DiscordChatExporter.CLI** runs (advanced): - [Windows scheduling](Scheduling-Windows.md) - [macOS scheduling](Scheduling-MacOS.md) - [Linux scheduling](Scheduling-Linux.md) ### The exported file is too large, I can't open it Try opening it with a different program, try partitioning or use a different file format, like `PlainText`. ### I see messages in the export, but they have no content Your bot is missing the 'Message Content Intent'. Go to the [Discord Developer Portal](https://discord.com/developers/applications), navigate to the 'Bot' section and enable it. ## CLI ### How do I use the CLI? Check the following page: - [Using the CLI](Using-the-CLI.md) If you're using **Docker**, please refer to the [Docker Usage Instructions](Docker.md) instead. ### Where can I find the 'Channel IDs'? Check the following page: - [Obtaining Channel IDs](Token-and-IDs.md) ### I can't find Docker exported chats Check the following page: - [Docker usage instructions](Docker.md) ### I can't export Direct Messages Make sure you're [copying the DM Channel ID](Token-and-IDs.md#how-to-get-a-direct-message-channel-id), not the person's user ID. ## Errors ```yml DiscordChatExporter.Domain.Exceptions.DiscordChatExporterException: Authentication token is invalid. ``` ↳ Make sure the provided token is correct. ```yml DiscordChatExporter.Domain.Exceptions.DiscordChatExporterException: Requested resource does not exist. ``` ↳ Check your channel ID, it might be invalid. [Read this if you need help](Token-and-IDs.md). ```yml DiscordChatExporter.Domain.Exceptions.DiscordChatExporterException: Access is forbidden. ``` ↳ This means you don't have access to the channel. ```yml System.Net.WebException: Error: TrustFailure ... Invalid certificate received from server. ``` ↳ Try running cert-sync. Debian/Ubuntu: `cert-sync /etc/ssl/certs/ca-certificates.crt` Red Hat: `cert-sync --user /etc/pki/tls/certs/ca-bundle.crt` If it still doesn't work, try mozroots: `mozroots --import --ask-remove` ## macOS-specific ### DiscordChatExporter is damaged and can’t be opened. You should move it to the Trash. Check the [Using the GUI page](Using-the-GUI.md#step-1) for instructions on how to run the app. --- > ❓ If you still have unanswered questions, feel free to [create a new discussion](https://github.com/Tyrrrz/DiscordChatExporter/discussions/new). > > 🐞 If you have encountered a problem that's not described here, has not [been discussed before](https://github.com/Tyrrrz/DiscordChatExporter/discussions), and is not a [known issue](https://github.com/Tyrrrz/DiscordChatExporter/issues?q=is%3Aissue), please [create a new discussion](https://github.com/Tyrrrz/DiscordChatExporter/discussions/new) or [open a bug report](https://github.com/Tyrrrz/DiscordChatExporter/issues/new). ================================================ FILE: .docs/Using-the-CLI.md ================================================ # Using the CLI ## Step 1 After extracting the `.zip` archive, open your preferred terminal. ## Step 2 Change the current directory to DCE's folder with `cd C:\path\to\DiscordChatExporter` (`cd /path/to/DiscordChatExporter` on **MacOS** and **Linux**), then press ENTER to run the command. **Windows** users can quickly get the folder's path by clicking the address bar while inside the folder. ![Copy path from Explorer](https://i.imgur.com/XncnhC2.gif) **macOS** users can press Command+Option+C (⌘⌥C) while inside the folder (or selecting it) to copy its path to the clipboard. You can also drag and drop the folder on **every platform**. ![Drag and drop folder](https://i.imgur.com/sOpZQAb.gif) ## Step 3 Now we're ready to run the commands. Type the following command in your terminal of choice, then press ENTER to run it. This will list all available subcommands and options. ```console ./DiscordChatExporter.Cli ``` > **Note**: > On Windows, if you're using the default Command Prompt (`cmd`), omit the leading `./` at the start of the command. > **Docker** users, please refer to the [Docker usage instructions](Docker.md). ## CLI commands | Command | Description | | ----------- | ---------------------------------------------------- | | export | Exports a channel | | exportdm | Exports all direct message channels | | exportguild | Exports all channels within the specified server | | exportall | Exports all accessible channels | | channels | Outputs the list of channels in the given server | | dm | Outputs the list of direct message channels | | guilds | Outputs the list of accessible servers | | guide | Explains how to obtain token, server, and channel ID | To use the commands, you'll need a token. For the instructions on how to get a token, please refer to [this page](Token-and-IDs.md), or run `./DiscordChatExporter.Cli guide`. To get help with a specific command, run: ```console ./DiscordChatExporter.Cli command --help ``` For example, to figure out how to use the `export` command, run: ```console ./DiscordChatExporter.Cli export --help ``` ## Export a specific channel You can quickly export with DCE's default settings by using just `-t token` and `-c channelid`. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 ``` #### Changing the format You can change the export format to `HtmlDark`, `HtmlLight`, `PlainText` `Json` or `Csv` with `-f format`. The default format is `HtmlDark`. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 -f Json ``` #### Changing the output filename You can change the filename by using `-o name.ext`. e.g. for the `HTML` format: ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 -o myserver.html ``` #### Changing the output directory You can change the export directory by using `-o` and providing a path that ends with a slash or does not have a file extension. If any of the folders in the path have a space in its name, escape them with quotes ("). ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 -o "C:\Discord Exports" ``` #### Changing the filename and output directory You can change both the filename and export directory by using `-o directory\name.ext`. Note that the filename must have an extension, otherwise it will be considered a directory name. If any of the folders in the path have a space in its name, escape them with quotes ("). ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 -o "C:\Discord Exports\myserver.html" ``` #### Generating the filename and output directory dynamically You can use template tokens to generate the output file path based on the server and channel metadata. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 -o "C:\Discord Exports\%G\%T\%C.html" ``` Assuming you are exporting a channel named `"my-channel"` in the `"Text channels"` category from a server called `"My server"`, you will get the following output file path: `C:\Discord Exports\My server\Text channels\my-channel.html` Here is the full list of supported template tokens: - `%g` - server ID - `%G` - server name - `%t` - category ID - `%T` - category name - `%c` - channel ID - `%C` - channel name - `%p` - channel position - `%P` - category position - `%a` - the "after" date - `%b` - the "before" date - `%d` - the current date - `%%` - escapes `%` #### Partitioning You can use partitioning to split files after a given number of messages or file size. For example, a channel with 36 messages set to be partitioned every 10 messages will output 4 files. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 -p 10 ``` A 45 MB channel set to be partitioned every 20 MB will output 3 files. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 -p 20mb ``` #### Downloading assets If this option is set, the export will include additional files such as user avatars, attached files, images, etc. Only files that are referenced by the export are downloaded, which means that, for example, user avatars will not be downloaded when using the plain text (TXT) export format. A folder containing the assets will be created along with the exported chat. They must be kept together. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --media ``` #### Reusing assets Previously downloaded assets can be reused to skip redundant downloads as long as the chat is always exported to the same folder. Using this option can speed up future exports. This option requires the `--media` option. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --media --reuse-media ``` #### Changing the media directory By default, the media directory is created alongside the exported chat. You can change this by using `--media-dir` and providing a path that ends with a slash. All of the exported media will be stored in this directory. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --media --media-dir "C:\Discord Media" ``` #### Changing the date format You can customize how dates are formatted in the exported files by using `--locale` and inserting one of Discord's locales. The default locale is `en-US`. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --locale "de-DE" ``` #### Date ranges **Messages sent before a date** Use `--before` to export messages sent before the provided date. E.g. messages sent before September 18th, 2019: ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --before 2019-09-18 ``` **Messages sent after a date** Use `--after` to export messages sent after the provided date. E.g. messages sent after September 17th, 2019 11:34 PM: ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --after "2019-09-17 23:34" ``` **Messages sent in a date range** Use `--before` and `--after` to export messages sent during the provided date range. E.g. messages sent between September 17th, 2019 11:34 PM and September 18th: ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --after "2019-09-17 23:34" --before "2019-09-18" ``` You can try different formats like `17-SEP-2019 11:34 PM` or even refine your ranges down to milliseconds `17-SEP-2019 23:45:30.6170`! Don't forget to quote (") the date if it has spaces! More info about .NET date formats [here](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings). #### Filtering messages Use `--filter` to filter what messages are included in the export. ```console ./DiscordChatExporter.Cli export -t "mfa.Ifrn" -c 53555 --filter "from:Tyrrrz has:image" ``` Documentation on message filter syntax can be found [here](https://github.com/Tyrrrz/DiscordChatExporter/blob/prime/.docs/Message-filters.md). ### Export channels from a specific server To export all channels in a specific server, use the `exportguild` command and provide the server ID through the `-g|--guild` option: ```console ./DiscordChatExporter.Cli exportguild -t "mfa.Ifrn" -g 21814 ``` #### Including threads By default, threads are not included in the export. You can change this behavior by using `--include-threads` and specifying which threads should be included. It has possible values of `none`, `active`, or `all`, indicating which threads should be included. To include both active and archived threads, use `--include-threads all`. ```console ./DiscordChatExporter.Cli exportguild -t "mfa.Ifrn" -g 21814 --include-threads all ``` #### Including voice channels By default, voice channels are included in the export. You can change this behavior by using `--include-vc` and specifying whether to include voice channels in the export. It has possible values of `true` or `false`, to exclude voice channels, use `--include-vc false`. ```console ./DiscordChatExporter.Cli exportguild -t "mfa.Ifrn" -g 21814 --include-vc false ``` ### Export all channels To export all accessible channels, use the `exportall` command: ```console ./DiscordChatExporter.Cli exportall -t "mfa.Ifrn" ``` #### Excluding DMs To exclude DMs, add the `--include-dm false` option. ```console ./DiscordChatExporter.Cli exportall -t "mfa.Ifrn" --include-dm false ``` ### List channels in a server To list the channels available in a specific server, use the `channels` command and provide the server ID through the `-g|--guild` option: ```console ./DiscordChatExporter.Cli channels -t "mfa.Ifrn" -g 21814 ``` ### List direct message channels To list all DM channels accessible to the current account, use the `dm` command: ```console ./DiscordChatExporter.Cli dm -t "mfa.Ifrn" ``` ### List servers To list all servers accessible by the current account, use the `guilds` command: ```console ./DiscordChatExporter.Cli guilds -t "mfa.Ifrn" > C:\path\to\output.txt ``` ================================================ FILE: .docs/Using-the-GUI.md ================================================ # Using the GUI ## Video tutorial [![Video tutorial](https://i.ytimg.com/vi/jjtu0VQXV7I/hqdefault.jpg)](https://youtube.com/watch?v=jjtu0VQXV7I) > Video by [NoIntro Tutorials](https://youtube.com/channel/UCFezKSxdNKJe77-hYiuXu3Q). ## Guide ### Step 1 After extracting the `.zip`, run `DiscordChatExporter.exe` **(Windows)**, or `DiscordChatExporter` **(Linux)**. If you're using **macOS**, you'll need to manually grant permission for the app to run. If you skip these steps, the "DiscordChatExporter is damaged and can’t be opened" error will be shown. 1. Open Terminal.app. You can search for it in Spotlight (press + Space and type "Terminal"). 2. Paste the following into the terminal window: ```bash xattr -rd com.apple.quarantine ``` 3. Hit Space once to add a space after the command 4. Drag and drop DiscordChatExporter.app into the terminal window 5. Press Return to run the command 6. Open DiscordChatExporter.app normally > Apple requires apps to be notarized and signed in order to run on macOS without warnings, which in turn requires an Apple Developer membership ($99/year). This open-source project is distributed for free and without commercial intent. ### Step 2 Please refer to the on-screen instructions to get your token, then paste your token in the upper text box and hit ENTER or click the arrow (→). > [!WARNING] > **Never share your token!** > A token gives full access to an account, treat it like a password. ### Step 3 DCE will display your Direct Messages and a sidebar with your server list. Select the channel you would like to export, then click the ![Screenshot](https://i.imgur.com/dnTOlDa.png) button to continue. > **Note**: > You can export multiple channels at once by holding `CTRL` or `SHIFT` while selecting. > You can also double-click a channel to export it without clicking the ![Screenshot](https://i.imgur.com/dnTOlDa.png) button. ### Step 4 In this screen you can customize the following: - **Output path** - The folder where the exported chat(s) will be saved. - **Export format** - HTML (Dark), HTML (Light), TXT, CSV and JSON - **Date range (after/before)** (Optional) - If set, only messages sent in the provided date range will be exported. Only one value (either after or before) is required if you want to use this option. > **Note**: > Please note that the time defaults to **12:00 AM** (midnight/00:00). This means that if you choose to export between Sep 17th and Sep 18th, messages from Sep 18th won't be exported. - **Partition limit** (Optional) - Split output into partitions, each limited to this number of messages (e.g. 100) or file size (e.g. 10mb). For example, a channel with 36 messages set to be partitioned every 10 messages will output 4 files. - **Message Filter** (Optional) - Special notation for filtering the messages that get included in the export. See [Message filters](Message-filters.md) for more info. - **Format markdown** (Optional) - Disable markdown processing when exporting. You can use this to produce JSON or plain text exports without unwrapping mentions, custom emoji, and certain other special tokens. - **Download assets** (Optional) - If this option is set, the export will include additional files such as user avatars, attached files, images, etc. Only files that are referenced by the export are downloaded, which means that, for example, user avatars will not be downloaded when using the plain text (TXT) export format. A folder containing the assets will be created along with the exported chat. They must be kept together. - **Reuse assets** (Optional) - If this option is set, the export will reuse already downloaded assets to skip redundant requests. This option is only available when **Download assets** is enabled. - **Assets directory path** (Optional) - If this option is set, the export will use the specified directory to store assets from all exported channels in the same place. > **Note**: > You need to scroll down to see all available options. ## Settings - **Auto-update** - Perform automatic updates on every launch. Default: Enabled > **Note**: > Keep this option enabled to receive the latest features and bug fixes! - **Dark mode** - Use darker colors in the UI (User Interface). Default: Disabled - **Persist token** - Persist last used token between sessions. Default: Enabled - **Show threads** - Controls whether threads are shown in the channel list. Default: none - **Locale** - Customize how dates are formatted in the exported files. - **Date format** - Customize how dates are formatted in the exported files in the settings menu (). - **Parallel limit** - The number of channels that will be exported at the same time. Default: 1 > **Note**: > Try to keep this number low so that your account doesn't get flagged. - **Normalize to UTC** - Convert all dates to UTC before exporting. ================================================ FILE: .github/ISSUE_TEMPLATE/bug-report.yml ================================================ name: 🐛 Bug report description: Report broken functionality. labels: [bug] body: - type: markdown attributes: value: | - Avoid generic or vague titles such as "Something's not working" or "A couple of problems" — be as descriptive as possible. - Keep your issue focused on one single problem. If you have multiple bug reports, please create a separate issue for each of them. - Issues should represent **complete and actionable** work items. If you are unsure about something or have a question, please start a [discussion](https://github.com/Tyrrrz/DiscordChatExporter/discussions/new) instead. - Remember that **DiscordChatExporter** is an open-source project funded by the community. If you find it useful, **please consider [donating](https://tyrrrz.me/donate) to support its development**. ___ - type: input attributes: label: Version description: Which version of the application does this bug affect? Make sure you're not using an outdated version. placeholder: v1.0.0 validations: required: true - type: dropdown attributes: label: Flavor description: Which flavor(s) of the application does this bug affect? multiple: true options: - GUI (Graphical User Interface) - CLI (Command-Line Interface) validations: required: true - type: input attributes: label: Platform description: Which platform do you experience this bug on? placeholder: Docker / Windows 11 validations: required: true - type: dropdown attributes: label: Export format description: Which export format(s) do you experience this bug with, if applicable? multiple: true options: - HTML - TXT - JSON - CSV - type: textarea attributes: label: Steps to reproduce description: > Minimum steps required to reproduce the bug, including prerequisites, export settings, or other relevant items. The information provided in this field must be readily actionable, meaning that anyone should be able to reproduce the bug by following these steps. If the bug depends on external factors (such as a specific server, channel, or message), then this field must include the server invite and the corresponding link. placeholder: | Server invite: https://discord.gg/... Channel or message link: https://discord.com/channels/.../... Export settings: - ... Application settings: - ... Steps: - Step 1 - Step 2 - Step 3 validations: required: true - type: textarea attributes: label: Details description: Clear and thorough explanation of the bug, including any additional information you may find relevant. placeholder: | - Expected behavior: ... - Actual behavior: ... validations: required: true - type: checkboxes attributes: label: Checklist description: Quick list of checks to ensure that everything is in order. options: - label: I have looked through existing issues to make sure that this bug has not been reported before required: true - label: I have provided a descriptive title for this issue required: true - label: I have made sure that this bug is reproducible on the latest version of the application required: true - label: I have provided all the information needed to reproduce this bug as efficiently as possible required: true - label: I have sponsored this project required: false - label: I have not read any of the above and just checked all the boxes to submit the issue required: false - type: markdown attributes: value: | If you are struggling to provide actionable reproduction steps, or if something else is preventing you from creating a complete bug report, please start a [discussion](https://github.com/Tyrrrz/DiscordChatExporter/discussions/new) instead. ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false contact_links: - name: ⚠ Feature request url: https://github.com/Tyrrrz/.github/blob/prime/docs/project-status.md about: Sorry, but this project is in maintenance mode and no longer accepts new feature requests. - name: 📖 Documentation url: https://github.com/Tyrrrz/DiscordChatExporter/blob/prime/.docs about: Find usage guides and frequently asked questions. - name: 🗨 Discussions url: https://github.com/Tyrrrz/DiscordChatExporter/discussions/new about: Ask and answer questions. - name: 💬 Discord server url: https://discord.gg/2SUWKFnHSm about: Chat with the project community. ================================================ FILE: .github/dependabot.yml ================================================ version: 2 updates: - package-ecosystem: github-actions directory: "/" schedule: interval: monthly labels: - enhancement groups: actions: patterns: - "*" - package-ecosystem: docker directory: "/" schedule: interval: monthly labels: - enhancement groups: docker: patterns: - "*" - package-ecosystem: nuget directory: "/" schedule: interval: monthly labels: - enhancement groups: nuget: patterns: - "*" ================================================ FILE: .github/workflows/docker.yml ================================================ name: docker on: workflow_dispatch: push: branches: - prime tags: - "*" pull_request: branches: - prime jobs: # Outputs from this job aren't really used, but it's here to verify that the Dockerfile builds correctly pack: runs-on: ubuntu-latest timeout-minutes: 10 permissions: actions: write contents: read steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Docker Buildx uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 - name: Build image run: > docker buildx build . --file DiscordChatExporter.Cli.dockerfile --platform linux/amd64,linux/arm64 --build-arg VERSION=${{ github.ref_type == 'tag' && github.ref_name || format('999.9.9-ci-{0}', github.sha) }} --output type=tar,dest=DiscordChatExporter.Cli.Docker.tar - name: Upload image uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: DiscordChatExporter.Cli.Docker path: DiscordChatExporter.Cli.Docker.tar if-no-files-found: error deploy: # Deploy to DockerHub only on tag push or prime branch push if: ${{ github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'prime' }} runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: read steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Docker Buildx uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 - name: Login to DockerHub run: > echo ${{ secrets.DOCKER_TOKEN }} | docker login --username tyrrrz --password-stdin - name: Build & push image run: > docker buildx build . --file DiscordChatExporter.Cli.dockerfile --platform linux/amd64,linux/arm64 --build-arg VERSION=${{ github.ref_type == 'tag' && github.ref_name || format('999.9.9-ci-{0}', github.sha) }} --push --tag tyrrrz/discordchatexporter:latest ${{ github.ref_type == 'tag' && '--tag tyrrrz/discordchatexporter:$GITHUB_REF_NAME' || '' }} ${{ github.ref_type == 'tag' && '--tag tyrrrz/discordchatexporter:stable' || '' }} ================================================ FILE: .github/workflows/main.yml ================================================ name: main on: workflow_dispatch: push: branches: - prime tags: - "*" pull_request: branches: - prime env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: true jobs: format: runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: read steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install .NET uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 # Build the project separately to discern between build and format errors - name: Build run: > dotnet build -p:CSharpier_Bypass=true --configuration Release - name: Verify formatting id: verify run: > dotnet build -t:CSharpierFormat --configuration Release --no-restore - name: Report issues if: ${{ failure() && steps.verify.outcome == 'failure' }} run: echo "::error title=Bad formatting::Formatting issues detected. Please build the solution locally to fix them." test: # Tests need access to secrets, so we can't run them against PRs because of limited trust if: ${{ github.event_name != 'pull_request' }} runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: read steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install .NET uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 - name: Run tests env: DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} run: > dotnet test -p:CSharpier_Bypass=true --configuration Release --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" --collect:"XPlat Code Coverage" -- RunConfiguration.CollectSourceInformation=true DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover - name: Upload coverage uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 with: token: ${{ secrets.CODECOV_TOKEN }} pack: strategy: matrix: app: - DiscordChatExporter.Cli - DiscordChatExporter.Gui rid: - win-arm64 - win-x86 - win-x64 - linux-arm - linux-arm64 - linux-musl-x64 - linux-x64 - osx-arm64 - osx-x64 include: - app: DiscordChatExporter.Cli asset: DiscordChatExporter.Cli - app: DiscordChatExporter.Gui # GUI assets aren't suffixed, unlike the CLI assets asset: DiscordChatExporter runs-on: ${{ startsWith(matrix.rid, 'win-') && 'windows-latest' || startsWith(matrix.rid, 'osx-') && 'macos-latest' || 'ubuntu-latest' }} timeout-minutes: 10 permissions: actions: write contents: read steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install .NET uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0 - name: Publish app run: > dotnet publish ${{ matrix.app }} -p:Version=${{ github.ref_type == 'tag' && github.ref_name || format('999.9.9-ci-{0}', github.sha) }} -p:CSharpier_Bypass=true -p:EncryptionSalt=${{ secrets.ENCRYPTION_SALT || 'HimalayanPinkSalt' }} -p:PublishMacOSBundle=${{ startsWith(matrix.rid, 'osx-') }} --output ${{ matrix.app }}/bin/publish/ --configuration Release --runtime ${{ matrix.rid }} --self-contained - name: Upload app binaries uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: ${{ matrix.asset }}.${{ matrix.rid }} path: ${{ matrix.app }}/bin/publish/ if-no-files-found: error release: if: ${{ github.ref_type == 'tag' }} needs: - format - test - pack runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: write steps: - name: Create release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: > gh release create ${{ github.ref_name }} --repo ${{ github.event.repository.full_name }} --title ${{ github.ref_name }} --generate-notes --verify-tag deploy: needs: release strategy: matrix: app: - DiscordChatExporter.Cli - DiscordChatExporter.Gui rid: - win-arm64 - win-x86 - win-x64 - linux-arm - linux-arm64 - linux-musl-x64 - linux-x64 - osx-arm64 - osx-x64 include: - app: DiscordChatExporter.Cli asset: DiscordChatExporter.Cli - app: DiscordChatExporter.Gui # GUI assets aren't suffixed, unlike the CLI assets asset: DiscordChatExporter runs-on: ubuntu-latest timeout-minutes: 10 permissions: actions: read contents: write steps: - name: Download app binaries uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 with: name: ${{ matrix.asset }}.${{ matrix.rid }} path: ${{ matrix.app }}/ - name: Set permissions if: ${{ !startsWith(matrix.rid, 'win-') }} run: | [ -f ${{ matrix.app }}/${{ matrix.asset }} ] && chmod +x ${{ matrix.app }}/${{ matrix.asset }} || true # macOS bundle [ -f ${{ matrix.app }}/${{ matrix.asset }}.app/Contents/MacOS/${{ matrix.asset }} ] && chmod +x ${{ matrix.app }}/${{ matrix.asset }}.app/Contents/MacOS/${{ matrix.asset }} || true - name: Create package # Change into the artifacts directory to avoid including the directory itself in the zip archive working-directory: ${{ matrix.app }}/ run: zip -r ../${{ matrix.asset }}.${{ matrix.rid }}.zip . - name: Upload release asset env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: > gh release upload ${{ github.ref_name }} ${{ matrix.asset }}.${{ matrix.rid }}.zip --repo ${{ github.event.repository.full_name }} notify: needs: deploy runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: read steps: - name: Notify Discord uses: tyrrrz/action-http-request@1dd7ad841a34b9299f3741f7c7399f9feefdfb08 # 1.1.3 with: url: ${{ secrets.DISCORD_WEBHOOK }} method: POST headers: | Content-Type: application/json; charset=UTF-8 body: | { "avatar_url": "https://raw.githubusercontent.com/${{ github.event.repository.full_name }}/${{ github.ref_name }}/favicon.png", "content": "[**${{ github.event.repository.name }}**](<${{ github.event.repository.html_url }}>) v${{ github.ref_name }} has been released!" } retry-count: 5 ================================================ FILE: .gitignore ================================================ # User-specific files .vs/ .idea/ *.suo *.user # Build results bin/ obj/ # Test results TestResults/ ================================================ FILE: Directory.Build.props ================================================ net10.0 999.9.9-dev Tyrrrz Copyright (c) Oleksii Holub preview enable true false ================================================ FILE: Directory.Packages.props ================================================ true ================================================ FILE: DiscordChatExporter.Cli/Commands/Base/DiscordCommandBase.cs ================================================ using System; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using CliFx; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Utils; namespace DiscordChatExporter.Cli.Commands.Base; public abstract class DiscordCommandBase : ICommand { [CommandOption( "token", 't', EnvironmentVariable = "DISCORD_TOKEN", Description = "Authentication token." )] public required string Token { get; init; } [Obsolete("This option doesn't do anything. Kept for backwards compatibility.")] [CommandOption( "bot", 'b', EnvironmentVariable = "DISCORD_TOKEN_BOT", Description = "This option doesn't do anything. Kept for backwards compatibility." )] public bool IsBotToken { get; init; } = false; [CommandOption( "respect-rate-limits", Description = "Whether to respect advisory rate limits. " + "If disabled, only hard rate limits (i.e. 429 responses) will be respected." )] public bool ShouldRespectRateLimits { get; init; } = true; [field: AllowNull, MaybeNull] protected DiscordClient Discord => field ??= new DiscordClient( Token, ShouldRespectRateLimits ? RateLimitPreference.RespectAll : RateLimitPreference.IgnoreAll ); public virtual ValueTask ExecuteAsync(IConsole console) { #pragma warning disable CS0618 // Warn if the bot option is used if (IsBotToken) { using (console.WithForegroundColor(ConsoleColor.DarkYellow)) { console.Error.WriteLine( "Warning: The --bot option is deprecated and should not be used. " + "The token type is now inferred automatically. " + "Please update your workflows as this option may be completely removed in a future version." ); } } #pragma warning restore CS0618 // Note about interactivity for Docker if (console.IsOutputRedirected && Docker.IsRunningInContainer) { console.Error.WriteLine( "Note: Output streams are redirected, rich console interactions are disabled. " + "If you are running this command in Docker, consider allocating a pseudo-terminal for better user experience (docker run -it ...)." ); } return default; } } ================================================ FILE: DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs ================================================ using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Exceptions; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Converters; using DiscordChatExporter.Cli.Commands.Shared; using DiscordChatExporter.Cli.Utils.Extensions; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Exceptions; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Core.Exporting.Filtering; using DiscordChatExporter.Core.Exporting.Partitioning; using Gress; using Spectre.Console; namespace DiscordChatExporter.Cli.Commands.Base; public abstract class ExportCommandBase : DiscordCommandBase { [CommandOption( "output", 'o', Description = "Output file or directory path. " + "If a directory is specified, file names will be generated automatically based on the channel names and export parameters. " + "Directory paths must end with a slash to avoid ambiguity. " + "Supports template tokens, see the documentation for more info." )] public string OutputPath { get; // Handle ~/ in paths on Unix systems // https://github.com/Tyrrrz/DiscordChatExporter/pull/903 init => field = Path.GetFullPath(value); } = Directory.GetCurrentDirectory(); [CommandOption("format", 'f', Description = "Export format.")] public ExportFormat ExportFormat { get; init; } = ExportFormat.HtmlDark; [CommandOption( "after", Description = "Only include messages sent after this date or message ID." )] public Snowflake? After { get; init; } [CommandOption( "before", Description = "Only include messages sent before this date or message ID." )] public Snowflake? Before { get; init; } [CommandOption( "partition", 'p', Description = "Split the output into partitions, each limited to the specified " + "number of messages (e.g. '100') or file size (e.g. '10mb')." )] public PartitionLimit PartitionLimit { get; init; } = PartitionLimit.Null; [CommandOption( "include-threads", Description = "Which types of threads should be included.", Converter = typeof(ThreadInclusionModeBindingConverter) )] public ThreadInclusionMode ThreadInclusionMode { get; init; } = ThreadInclusionMode.None; [CommandOption( "filter", Description = "Only include messages that satisfy this filter. " + "See the documentation for more info." )] public MessageFilter MessageFilter { get; init; } = MessageFilter.Null; [CommandOption( "parallel", Description = "Limits how many channels can be exported in parallel." )] public int ParallelLimit { get; init; } = 1; [CommandOption( "reverse", Description = "Export messages in reverse chronological order (newest first)." )] public bool IsReverseMessageOrder { get; init; } [CommandOption( "markdown", Description = "Process markdown, mentions, and other special tokens." )] public bool ShouldFormatMarkdown { get; init; } = true; [CommandOption( "media", Description = "Download assets referenced by the export (user avatars, attached files, embedded images, etc.)." )] public bool ShouldDownloadAssets { get; init; } [CommandOption( "reuse-media", Description = "Reuse previously downloaded assets to avoid redundant requests." )] public bool ShouldReuseAssets { get; init; } = false; [CommandOption( "media-dir", Description = "Download assets to this directory. " + "If not specified, the asset directory path will be derived from the output path." )] public string? AssetsDirPath { get; // Handle ~/ in paths on Unix systems // https://github.com/Tyrrrz/DiscordChatExporter/pull/903 init => field = value is not null ? Path.GetFullPath(value) : null; } [Obsolete("This option doesn't do anything. Kept for backwards compatibility.")] [CommandOption( "dateformat", Description = "This option doesn't do anything. Kept for backwards compatibility." )] public string DateFormat { get; init; } = "MM/dd/yyyy h:mm tt"; [CommandOption( "locale", Description = "Locale to use when formatting dates and numbers. " + "If not specified, the default system locale will be used." )] public string? Locale { get; init; } [CommandOption("utc", Description = "Normalize all timestamps to UTC+0.")] public bool IsUtcNormalizationEnabled { get; init; } = false; [CommandOption( "fuck-russia", EnvironmentVariable = "FUCK_RUSSIA", Description = "Don't print the Support Ukraine message to the console.", // Use a converter to accept '1' as 'true' to reuse the existing environment variable Converter = typeof(TruthyBooleanBindingConverter) )] public bool IsUkraineSupportMessageDisabled { get; init; } = false; [field: AllowNull, MaybeNull] protected ChannelExporter Exporter => field ??= new ChannelExporter(Discord); protected async ValueTask ExportAsync(IConsole console, IReadOnlyList channels) { var cancellationToken = console.RegisterCancellationHandler(); // Asset reuse can only be enabled if the download assets option is set // https://github.com/Tyrrrz/DiscordChatExporter/issues/425 if (ShouldReuseAssets && !ShouldDownloadAssets) { throw new CommandException("Option --reuse-media cannot be used without --media."); } // Assets directory can only be specified if the download assets option is set if (!string.IsNullOrWhiteSpace(AssetsDirPath) && !ShouldDownloadAssets) { throw new CommandException("Option --media-dir cannot be used without --media."); } var unwrappedChannels = new List(channels); // Unwrap threads if (ThreadInclusionMode != ThreadInclusionMode.None) { await console.Output.WriteLineAsync("Fetching threads..."); var fetchedThreadsCount = 0; await console .CreateStatusTicker() .StartAsync( "...", async ctx => { await foreach ( var thread in Discord.GetChannelThreadsAsync( channels, ThreadInclusionMode == ThreadInclusionMode.All, Before, After, cancellationToken ) ) { unwrappedChannels.Add(thread); ctx.Status(Markup.Escape($"Fetched '{thread.GetHierarchicalName()}'.")); fetchedThreadsCount++; } } ); // Remove forums, as they cannot be exported directly and their constituent threads // have already been fetched. unwrappedChannels.RemoveAll(channel => channel.Kind == ChannelKind.GuildForum); await console.Output.WriteLineAsync($"Fetched {fetchedThreadsCount} thread(s)."); } // Make sure the user does not try to export multiple channels into one file. // Output path must either be a directory or contain template tokens for this to work. // https://github.com/Tyrrrz/DiscordChatExporter/issues/799 // https://github.com/Tyrrrz/DiscordChatExporter/issues/917 var isValidOutputPath = // Anything is valid when exporting a single channel unwrappedChannels.Count <= 1 // When using template tokens, assume the user knows what they're doing || OutputPath.Contains('%') // Otherwise, require an existing directory or an unambiguous directory path || Directory.Exists(OutputPath) || Path.EndsInDirectorySeparator(OutputPath); if (!isValidOutputPath) { throw new CommandException( "Attempted to export multiple channels, but the output path is neither a directory nor a template. " + "If the provided output path is meant to be treated as a directory, make sure it ends with a slash. " + $"Provided output path: '{OutputPath}'." ); } // Export var errorsByChannel = new ConcurrentDictionary(); var warningsByChannel = new ConcurrentDictionary(); await console.Output.WriteLineAsync($"Exporting {unwrappedChannels.Count} channel(s)..."); await console .CreateProgressTicker() .HideCompleted( // When exporting multiple channels in parallel, hide the completed tasks // because it gets hard to visually parse them as they complete out of order. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1124 ParallelLimit > 1 ) .StartAsync(async ctx => { await Parallel.ForEachAsync( unwrappedChannels, new ParallelOptions { MaxDegreeOfParallelism = Math.Max(1, ParallelLimit), CancellationToken = cancellationToken, }, async (channel, innerCancellationToken) => { try { await ctx.StartTaskAsync( Markup.Escape(channel.GetHierarchicalName()), async progress => { var guild = await Discord.GetGuildAsync( channel.GuildId, innerCancellationToken ); var request = new ExportRequest( guild, channel, OutputPath, AssetsDirPath, ExportFormat, After, Before, PartitionLimit, MessageFilter, IsReverseMessageOrder, ShouldFormatMarkdown, ShouldDownloadAssets, ShouldReuseAssets, Locale, IsUtcNormalizationEnabled ); await Exporter.ExportChannelAsync( request, progress.ToPercentageBased(), innerCancellationToken ); } ); } catch (ChannelEmptyException ex) { warningsByChannel[channel] = ex.Message; } catch (DiscordChatExporterException ex) when (!ex.IsFatal) { errorsByChannel[channel] = ex.Message; } } ); }); // Print the result using (console.WithForegroundColor(ConsoleColor.White)) { await console.Output.WriteLineAsync( $"Successfully exported {unwrappedChannels.Count - errorsByChannel.Count} channel(s)." ); } // Print warnings if (warningsByChannel.Any()) { await console.Output.WriteLineAsync(); using (console.WithForegroundColor(ConsoleColor.Yellow)) { await console.Error.WriteLineAsync( "Warnings reported for the following channel(s):" ); } foreach (var (channel, message) in warningsByChannel) { await console.Error.WriteAsync($"{channel.GetHierarchicalName()}: "); using (console.WithForegroundColor(ConsoleColor.Yellow)) await console.Error.WriteLineAsync(message); } await console.Error.WriteLineAsync(); } // Print errors if (errorsByChannel.Any()) { await console.Output.WriteLineAsync(); using (console.WithForegroundColor(ConsoleColor.Red)) { await console.Error.WriteLineAsync("Failed to export the following channel(s):"); } foreach (var (channel, message) in errorsByChannel) { await console.Error.WriteAsync($"{channel.GetHierarchicalName()}: "); using (console.WithForegroundColor(ConsoleColor.Red)) await console.Error.WriteLineAsync(message); } await console.Error.WriteLineAsync(); } // Fail the command only if ALL channels failed to export. // If only some channels failed to export, it's okay. if (errorsByChannel.Count >= unwrappedChannels.Count) throw new CommandException("Export failed."); } public override async ValueTask ExecuteAsync(IConsole console) { // Support Ukraine callout if (!IsUkraineSupportMessageDisabled) { console.Output.WriteLine( "┌────────────────────────────────────────────────────────────────────┐" ); console.Output.WriteLine( "│ Thank you for supporting Ukraine <3 │" ); console.Output.WriteLine( "│ │" ); console.Output.WriteLine( "│ As Russia wages a genocidal war against my country, │" ); console.Output.WriteLine( "│ I'm grateful to everyone who continues to │" ); console.Output.WriteLine( "│ stand with Ukraine in our fight for freedom. │" ); console.Output.WriteLine( "│ │" ); console.Output.WriteLine( "│ Learn more: https://tyrrrz.me/ukraine │" ); console.Output.WriteLine( "└────────────────────────────────────────────────────────────────────┘" ); console.Output.WriteLine(""); } await base.ExecuteAsync(console); } } ================================================ FILE: DiscordChatExporter.Cli/Commands/Converters/ThreadInclusionModeBindingConverter.cs ================================================ using System; using CliFx.Extensibility; using DiscordChatExporter.Cli.Commands.Shared; namespace DiscordChatExporter.Cli.Commands.Converters; internal class ThreadInclusionModeBindingConverter : BindingConverter { public override ThreadInclusionMode Convert(string? rawValue) { // Empty or unset value is treated as 'active' to match the previous behavior if (string.IsNullOrWhiteSpace(rawValue)) return ThreadInclusionMode.Active; // Boolean 'true' is treated as 'active', boolean 'false' is treated as 'none' if (bool.TryParse(rawValue, out var boolValue)) return boolValue ? ThreadInclusionMode.Active : ThreadInclusionMode.None; // Otherwise, fall back to regular enum parsing return Enum.Parse(rawValue, true); } } ================================================ FILE: DiscordChatExporter.Cli/Commands/Converters/TruthyBooleanBindingConverter.cs ================================================ using System.Globalization; using CliFx.Extensibility; namespace DiscordChatExporter.Cli.Commands.Converters; internal class TruthyBooleanBindingConverter : BindingConverter { public override bool Convert(string? rawValue) { // Empty or unset value is treated as 'true', to match the regular boolean behavior if (string.IsNullOrWhiteSpace(rawValue)) return true; // Number '1' is treated as 'true', other numbers are treated as 'false' if (int.TryParse(rawValue, CultureInfo.InvariantCulture, out var intValue)) return intValue == 1; // Otherwise, fall back to regular boolean parsing return bool.Parse(rawValue); } } ================================================ FILE: DiscordChatExporter.Cli/Commands/ExportAllCommand.cs ================================================ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Base; using DiscordChatExporter.Cli.Utils.Extensions; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Discord.Dump; using DiscordChatExporter.Core.Exceptions; using Spectre.Console; namespace DiscordChatExporter.Cli.Commands; [Command("exportall", Description = "Exports all accessible channels.")] public class ExportAllCommand : ExportCommandBase { [CommandOption("include-dm", Description = "Include direct message channels.")] public bool IncludeDirectChannels { get; init; } = true; [CommandOption("include-guilds", Description = "Include server channels.")] public bool IncludeGuildChannels { get; init; } = true; [CommandOption("include-vc", Description = "Include voice channels.")] public bool IncludeVoiceChannels { get; init; } = true; [CommandOption( "data-package", Description = "Path to the personal data package (ZIP file) requested from Discord. " + "If provided, only channels referenced in the dump will be exported." )] public string? DataPackageFilePath { get; init; } public override async ValueTask ExecuteAsync(IConsole console) { await base.ExecuteAsync(console); var cancellationToken = console.RegisterCancellationHandler(); var channels = new List(); // Pull from the API if (string.IsNullOrWhiteSpace(DataPackageFilePath)) { await foreach (var guild in Discord.GetUserGuildsAsync(cancellationToken)) { // Regular channels await console.Output.WriteLineAsync( $"Fetching channels for server '{guild.Name}'..." ); var fetchedChannelsCount = 0; await console .CreateStatusTicker() .StartAsync( "...", async ctx => { await foreach ( var channel in Discord.GetGuildChannelsAsync( guild.Id, cancellationToken ) ) { if (channel.IsCategory) continue; if (!IncludeVoiceChannels && channel.IsVoice) continue; channels.Add(channel); ctx.Status( Markup.Escape($"Fetched '{channel.GetHierarchicalName()}'.") ); fetchedChannelsCount++; } } ); await console.Output.WriteLineAsync($"Fetched {fetchedChannelsCount} channel(s)."); } } // Pull from the data package else { await console.Output.WriteLineAsync("Extracting channels..."); var dump = await DataDump.LoadAsync(DataPackageFilePath, cancellationToken); var inaccessibleChannels = new List(); await console .CreateStatusTicker() .StartAsync( "...", async ctx => { foreach (var dumpChannel in dump.Channels) { ctx.Status( Markup.Escape( $"Fetching '{dumpChannel.Name}' ({dumpChannel.Id})..." ) ); try { var channel = await Discord.GetChannelAsync( dumpChannel.Id, cancellationToken ); channels.Add(channel); } catch (DiscordChatExporterException) { inaccessibleChannels.Add(dumpChannel); } } } ); await console.Output.WriteLineAsync($"Fetched {channels} channel(s)."); // Print inaccessible channels if (inaccessibleChannels.Any()) { await console.Output.WriteLineAsync(); using (console.WithForegroundColor(ConsoleColor.Red)) { await console.Error.WriteLineAsync( "Failed to access the following channel(s):" ); } foreach (var dumpChannel in inaccessibleChannels) await console.Error.WriteLineAsync($"{dumpChannel.Name} ({dumpChannel.Id})"); await console.Error.WriteLineAsync(); } } // Filter out unwanted channels if (!IncludeDirectChannels) channels.RemoveAll(c => c.IsDirect); if (!IncludeGuildChannels) channels.RemoveAll(c => c.IsGuild); if (!IncludeVoiceChannels) channels.RemoveAll(c => c.IsVoice); await ExportAsync(console, channels); } } ================================================ FILE: DiscordChatExporter.Cli/Commands/ExportChannelsCommand.cs ================================================ using System.Collections.Generic; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Base; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Cli.Commands; [Command("export", Description = "Exports one or multiple channels.")] public class ExportChannelsCommand : ExportCommandBase { // TODO: change this to plural (breaking change) [CommandOption( "channel", 'c', Description = "Channel ID(s). " + "If provided with category ID(s), all channels inside those categories will be exported." )] public required IReadOnlyList ChannelIds { get; init; } public override async ValueTask ExecuteAsync(IConsole console) { await base.ExecuteAsync(console); var cancellationToken = console.RegisterCancellationHandler(); await console.Output.WriteLineAsync("Resolving channel(s)..."); var channels = new List(); var channelsByGuild = new Dictionary>(); foreach (var channelId in ChannelIds) { var channel = await Discord.GetChannelAsync(channelId, cancellationToken); // Unwrap categories if (channel.IsCategory) { var guildChannels = channelsByGuild.GetValueOrDefault(channel.GuildId) ?? await Discord.GetGuildChannelsAsync(channel.GuildId, cancellationToken); foreach (var guildChannel in guildChannels) { if (guildChannel.Parent?.Id == channel.Id) channels.Add(guildChannel); } // Cache the guild channels to avoid redundant work channelsByGuild[channel.GuildId] = guildChannels; } else { channels.Add(channel); } } await ExportAsync(console, channels); } } ================================================ FILE: DiscordChatExporter.Cli/Commands/ExportDirectMessagesCommand.cs ================================================ using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Base; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Cli.Commands; [Command("exportdm", Description = "Exports all direct message channels.")] public class ExportDirectMessagesCommand : ExportCommandBase { public override async ValueTask ExecuteAsync(IConsole console) { await base.ExecuteAsync(console); var cancellationToken = console.RegisterCancellationHandler(); await console.Output.WriteLineAsync("Fetching channels..."); var channels = await Discord.GetGuildChannelsAsync( Guild.DirectMessages.Id, cancellationToken ); await ExportAsync(console, channels); } } ================================================ FILE: DiscordChatExporter.Cli/Commands/ExportGuildCommand.cs ================================================ using System.Collections.Generic; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Base; using DiscordChatExporter.Cli.Utils.Extensions; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using Spectre.Console; namespace DiscordChatExporter.Cli.Commands; [Command("exportguild", Description = "Exports all channels within the specified server.")] public class ExportGuildCommand : ExportCommandBase { [CommandOption("guild", 'g', Description = "Server ID.")] public required Snowflake GuildId { get; init; } [CommandOption("include-vc", Description = "Include voice channels.")] public bool IncludeVoiceChannels { get; init; } = true; public override async ValueTask ExecuteAsync(IConsole console) { await base.ExecuteAsync(console); var cancellationToken = console.RegisterCancellationHandler(); var channels = new List(); await console.Output.WriteLineAsync("Fetching channels..."); var fetchedChannelsCount = 0; await console .CreateStatusTicker() .StartAsync( "...", async ctx => { await foreach ( var channel in Discord.GetGuildChannelsAsync(GuildId, cancellationToken) ) { if (channel.IsCategory) continue; if (!IncludeVoiceChannels && channel.IsVoice) continue; channels.Add(channel); ctx.Status(Markup.Escape($"Fetched '{channel.GetHierarchicalName()}'.")); fetchedChannelsCount++; } } ); await console.Output.WriteLineAsync($"Fetched {fetchedChannelsCount} channel(s)."); await ExportAsync(console, channels); } } ================================================ FILE: DiscordChatExporter.Cli/Commands/GetChannelsCommand.cs ================================================ using System; using System.Linq; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Base; using DiscordChatExporter.Cli.Commands.Converters; using DiscordChatExporter.Cli.Commands.Shared; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Cli.Commands; [Command("channels", Description = "Get the list of channels in a server.")] public class GetChannelsCommand : DiscordCommandBase { [CommandOption("guild", 'g', Description = "Server ID.")] public required Snowflake GuildId { get; init; } [CommandOption("include-vc", Description = "Include voice channels.")] public bool IncludeVoiceChannels { get; init; } = true; [CommandOption( "include-threads", Description = "Which types of threads should be included.", Converter = typeof(ThreadInclusionModeBindingConverter) )] public ThreadInclusionMode ThreadInclusionMode { get; init; } = ThreadInclusionMode.None; public override async ValueTask ExecuteAsync(IConsole console) { await base.ExecuteAsync(console); var cancellationToken = console.RegisterCancellationHandler(); var channels = (await Discord.GetGuildChannelsAsync(GuildId, cancellationToken)) .Where(c => !c.IsCategory) .Where(c => IncludeVoiceChannels || !c.IsVoice) .OrderBy(c => c.Parent?.Position) .ThenBy(c => c.Name) .ToArray(); var channelIdMaxLength = channels .Select(c => c.Id.ToString().Length) .OrderDescending() .FirstOrDefault(); var threads = ThreadInclusionMode != ThreadInclusionMode.None ? ( await Discord.GetGuildThreadsAsync( GuildId, ThreadInclusionMode == ThreadInclusionMode.All, null, null, cancellationToken ) ) .OrderBy(c => c.Name) .ToArray() : []; foreach (var channel in channels) { // Channel ID await console.Output.WriteAsync( channel.Id.ToString().PadRight(channelIdMaxLength, ' ') ); // Separator using (console.WithForegroundColor(ConsoleColor.DarkGray)) await console.Output.WriteAsync(" | "); // Channel name using (console.WithForegroundColor(ConsoleColor.White)) await console.Output.WriteLineAsync(channel.GetHierarchicalName()); var channelThreads = threads.Where(t => t.Parent?.Id == channel.Id).ToArray(); var channelThreadIdMaxLength = channelThreads .Select(t => t.Id.ToString().Length) .OrderDescending() .FirstOrDefault(); foreach (var channelThread in channelThreads) { // Indent await console.Output.WriteAsync(" * "); // Thread ID await console.Output.WriteAsync( channelThread.Id.ToString().PadRight(channelThreadIdMaxLength, ' ') ); // Separator using (console.WithForegroundColor(ConsoleColor.DarkGray)) await console.Output.WriteAsync(" | "); // Thread name using (console.WithForegroundColor(ConsoleColor.White)) await console.Output.WriteAsync($"Thread / {channelThread.Name}"); // Separator using (console.WithForegroundColor(ConsoleColor.DarkGray)) await console.Output.WriteAsync(" | "); // Thread status using (console.WithForegroundColor(ConsoleColor.White)) await console.Output.WriteLineAsync( channelThread.IsArchived ? "Archived" : "Active" ); } } } } ================================================ FILE: DiscordChatExporter.Cli/Commands/GetDirectChannelsCommand.cs ================================================ using System; using System.Linq; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Base; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Cli.Commands; [Command("dm", Description = "Gets the list of all direct message channels.")] public class GetDirectChannelsCommand : DiscordCommandBase { public override async ValueTask ExecuteAsync(IConsole console) { await base.ExecuteAsync(console); var cancellationToken = console.RegisterCancellationHandler(); var channels = ( await Discord.GetGuildChannelsAsync(Guild.DirectMessages.Id, cancellationToken) ) .OrderByDescending(c => c.LastMessageId) .ThenBy(c => c.Name) .ToArray(); var channelIdMaxLength = channels .Select(c => c.Id.ToString().Length) .OrderDescending() .FirstOrDefault(); foreach (var channel in channels) { // Channel ID await console.Output.WriteAsync( channel.Id.ToString().PadRight(channelIdMaxLength, ' ') ); // Separator using (console.WithForegroundColor(ConsoleColor.DarkGray)) await console.Output.WriteAsync(" | "); // Channel name using (console.WithForegroundColor(ConsoleColor.White)) await console.Output.WriteLineAsync(channel.GetHierarchicalName()); } } } ================================================ FILE: DiscordChatExporter.Cli/Commands/GetGuildsCommand.cs ================================================ using System; using System.Linq; using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands.Base; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Cli.Commands; [Command("guilds", Description = "Gets the list of accessible servers.")] public class GetGuildsCommand : DiscordCommandBase { public override async ValueTask ExecuteAsync(IConsole console) { await base.ExecuteAsync(console); var cancellationToken = console.RegisterCancellationHandler(); var guilds = (await Discord.GetUserGuildsAsync(cancellationToken)) // Show direct messages first .OrderByDescending(g => g.Id == Guild.DirectMessages.Id) .ThenBy(g => g.Name) .ToArray(); var guildIdMaxLength = guilds .Select(g => g.Id.ToString().Length) .OrderDescending() .FirstOrDefault(); foreach (var guild in guilds) { // Guild ID await console.Output.WriteAsync(guild.Id.ToString().PadRight(guildIdMaxLength, ' ')); // Separator using (console.WithForegroundColor(ConsoleColor.DarkGray)) await console.Output.WriteAsync(" | "); // Guild name using (console.WithForegroundColor(ConsoleColor.White)) await console.Output.WriteLineAsync(guild.Name); } } } ================================================ FILE: DiscordChatExporter.Cli/Commands/GuideCommand.cs ================================================ using System; using System.Threading.Tasks; using CliFx; using CliFx.Attributes; using CliFx.Infrastructure; namespace DiscordChatExporter.Cli.Commands; [Command("guide", Description = "Explains how to obtain the token, server or channel ID.")] public class GuideCommand : ICommand { public ValueTask ExecuteAsync(IConsole console) { // User token using (console.WithForegroundColor(ConsoleColor.White)) console.Output.WriteLine("To get the token for your personal account:"); console.Output.WriteLine( " * Automating user accounts is technically against TOS — USE AT YOUR OWN RISK!" ); console.Output.WriteLine(" 1. Open Discord in your web browser and login"); console.Output.WriteLine(" 2. Open any server or direct message channel"); console.Output.WriteLine(" 3. Press Ctrl+Shift+I to show developer tools"); console.Output.WriteLine(" 4. Navigate to the Network tab"); console.Output.WriteLine(" 5. Press Ctrl+R to reload"); console.Output.WriteLine(" 6. Switch between random channels to trigger network requests"); console.Output.WriteLine(" 7. Search for a request that starts with \"messages\""); console.Output.WriteLine(" 8. Select the Headers tab on the right"); console.Output.WriteLine(" 9. Scroll down to the Request Headers section"); console.Output.WriteLine(" 10. Copy the value of the \"authorization\" header"); console.Output.WriteLine(); // Bot token using (console.WithForegroundColor(ConsoleColor.White)) console.Output.WriteLine("To get the token for your bot:"); console.Output.WriteLine( " The token is generated during bot creation. If you lost it, generate a new one:" ); console.Output.WriteLine(" 1. Go to Discord developer portal"); console.Output.WriteLine(" 2. Open your application's settings"); console.Output.WriteLine(" 3. Navigate to the Bot section on the left"); console.Output.WriteLine(" 4. Under Token click Reset Token"); console.Output.WriteLine(" 5. Click Yes, do it! and authenticate to confirm"); console.Output.WriteLine( " * Integrations using the previous token will stop working until updated" ); console.Output.WriteLine( " * Your bot needs to have the Message Content Intent enabled to read messages" ); console.Output.WriteLine(); // Guild or channel ID using (console.WithForegroundColor(ConsoleColor.White)) console.Output.WriteLine("To get the ID of a server or a channel:"); console.Output.WriteLine(" 1. Open Discord"); console.Output.WriteLine(" 2. Open Settings"); console.Output.WriteLine(" 3. Go to Advanced section"); console.Output.WriteLine(" 4. Enable Developer Mode"); console.Output.WriteLine( " 5. Right-click on the desired server or channel and click Copy Server ID or Copy Channel ID" ); console.Output.WriteLine(); // Docs link using (console.WithForegroundColor(ConsoleColor.White)) { console.Output.WriteLine( "If you have questions or issues, please refer to the documentation:" ); } using (console.WithForegroundColor(ConsoleColor.DarkCyan)) { console.Output.WriteLine( "https://github.com/Tyrrrz/DiscordChatExporter/blob/prime/.docs" ); } return default; } } ================================================ FILE: DiscordChatExporter.Cli/Commands/Shared/ThreadInclusionMode.cs ================================================ namespace DiscordChatExporter.Cli.Commands.Shared; public enum ThreadInclusionMode { None, Active, All, } ================================================ FILE: DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj ================================================ Exe ..\favicon.ico true false false false ================================================ FILE: DiscordChatExporter.Cli/Program.cs ================================================ using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using CliFx; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Commands.Converters; using DiscordChatExporter.Core.Exporting.Filtering; using DiscordChatExporter.Core.Exporting.Partitioning; namespace DiscordChatExporter.Cli; public static class Program { // Explicit references because CliFx relies on reflection and we're publishing with trimming enabled [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ExportAllCommand))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ExportChannelsCommand))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ExportDirectMessagesCommand))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ExportGuildCommand))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(GetChannelsCommand))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(GetDirectChannelsCommand))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(GetGuildsCommand))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(GuideCommand))] [DynamicDependency( DynamicallyAccessedMemberTypes.All, typeof(ThreadInclusionModeBindingConverter) )] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(TruthyBooleanBindingConverter))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(PartitionLimit))] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(MessageFilter))] public static async Task Main(string[] args) => await new CliApplicationBuilder() .AddCommand() .AddCommand() .AddCommand() .AddCommand() .AddCommand() .AddCommand() .AddCommand() .AddCommand() .Build() .RunAsync(args); } ================================================ FILE: DiscordChatExporter.Cli/Utils/Extensions/ConsoleExtensions.cs ================================================ using System; using System.Threading.Tasks; using CliFx.Infrastructure; using Spectre.Console; namespace DiscordChatExporter.Cli.Utils.Extensions; internal static class ConsoleExtensions { extension(IConsole console) { public IAnsiConsole CreateAnsiConsole() => AnsiConsole.Create( new AnsiConsoleSettings { Ansi = AnsiSupport.Detect, ColorSystem = ColorSystemSupport.Detect, Out = new AnsiConsoleOutput(console.Output), } ); public Status CreateStatusTicker() => console.CreateAnsiConsole().Status().AutoRefresh(true); public Progress CreateProgressTicker() => console .CreateAnsiConsole() .Progress() .AutoClear(false) .AutoRefresh(true) .HideCompleted(false) .Columns( new TaskDescriptionColumn { Alignment = Justify.Left }, new ProgressBarColumn(), new PercentageColumn() ); } public static async ValueTask StartTaskAsync( this ProgressContext context, string description, Func performOperationAsync ) { // Description cannot be empty // https://github.com/Tyrrrz/DiscordChatExporter/issues/1133 var actualDescription = !string.IsNullOrWhiteSpace(description) ? description : "..."; var progressTask = context.AddTask( actualDescription, new ProgressTaskSettings { MaxValue = 1 } ); try { await performOperationAsync(progressTask); } finally { progressTask.Value = progressTask.MaxValue; progressTask.StopTask(); } } } ================================================ FILE: DiscordChatExporter.Cli.Tests/DiscordChatExporter.Cli.Tests.csproj ================================================ false true d1fe5ae2-2a19-404d-a36e-81ba9eada1c1 ================================================ FILE: DiscordChatExporter.Cli.Tests/Infra/ChannelIds.cs ================================================ using DiscordChatExporter.Core.Discord; namespace DiscordChatExporter.Cli.Tests.Infra; public static class ChannelIds { public static Snowflake AttachmentTestCases { get; } = Snowflake.Parse("885587741654536192"); public static Snowflake DateRangeTestCases { get; } = Snowflake.Parse("866674248747319326"); public static Snowflake EmbedTestCases { get; } = Snowflake.Parse("866472452459462687"); public static Snowflake EmojiTestCases { get; } = Snowflake.Parse("866768438290415636"); public static Snowflake GroupingTestCases { get; } = Snowflake.Parse("992092091545034842"); public static Snowflake FilterTestCases { get; } = Snowflake.Parse("866744075033641020"); public static Snowflake ForwardTestCases { get; } = Snowflake.Parse("1455202357204877477"); public static Snowflake MarkdownTestCases { get; } = Snowflake.Parse("866459526819348521"); public static Snowflake MentionTestCases { get; } = Snowflake.Parse("866458801389174794"); public static Snowflake ReplyTestCases { get; } = Snowflake.Parse("866459871934677052"); public static Snowflake SelfContainedTestCases { get; } = Snowflake.Parse("887441432678379560"); public static Snowflake StickerTestCases { get; } = Snowflake.Parse("939668868253769729"); } ================================================ FILE: DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs ================================================ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text.Json; using System.Threading.Tasks; using AngleSharp.Dom; using AngleSharp.Html.Dom; using AsyncKeyedLock; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Exporting; using JsonExtensions; namespace DiscordChatExporter.Cli.Tests.Infra; public static class ExportWrapper { private static readonly AsyncKeyedLocker Locker = new(); private static readonly string DirPath = Path.Combine( Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? Directory.GetCurrentDirectory(), "ExportCache" ); static ExportWrapper() { try { Directory.Delete(DirPath, true); } catch (DirectoryNotFoundException) { } Directory.CreateDirectory(DirPath); } private static async ValueTask ExportAsync(Snowflake channelId, ExportFormat format) { var fileName = channelId.ToString() + '.' + format.GetFileExtension(); var filePath = Path.Combine(DirPath, fileName); using var _ = await Locker.LockAsync(filePath); using var console = new FakeConsole(); // Perform the export only if it hasn't been done before if (!File.Exists(filePath)) { await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [channelId], ExportFormat = format, OutputPath = filePath, Locale = "en-US", IsUtcNormalizationEnabled = true, }.ExecuteAsync(console); } return await File.ReadAllTextAsync(filePath); } public static async ValueTask ExportAsHtmlAsync(Snowflake channelId) => Html.Parse(await ExportAsync(channelId, ExportFormat.HtmlDark)); public static async ValueTask ExportAsJsonAsync(Snowflake channelId) => Json.Parse(await ExportAsync(channelId, ExportFormat.Json)); public static async ValueTask ExportAsPlainTextAsync(Snowflake channelId) => await ExportAsync(channelId, ExportFormat.PlainText); public static async ValueTask ExportAsCsvAsync(Snowflake channelId) => await ExportAsync(channelId, ExportFormat.Csv); public static async ValueTask> GetMessagesAsHtmlAsync( Snowflake channelId ) => (await ExportAsHtmlAsync(channelId)).QuerySelectorAll("[data-message-id]").ToArray(); public static async ValueTask> GetMessagesAsJsonAsync( Snowflake channelId ) => (await ExportAsJsonAsync(channelId)).GetProperty("messages").EnumerateArray().ToArray(); public static async ValueTask GetMessageAsHtmlAsync( Snowflake channelId, Snowflake messageId ) { var message = (await GetMessagesAsHtmlAsync(channelId)).SingleOrDefault(e => string.Equals( e.GetAttribute("data-message-id"), messageId.ToString(), StringComparison.OrdinalIgnoreCase ) ); if (message is null) { throw new InvalidOperationException( $"Message #{messageId} not found in the export of channel #{channelId}." ); } return message; } public static async ValueTask GetMessageAsJsonAsync( Snowflake channelId, Snowflake messageId ) { var message = (await GetMessagesAsJsonAsync(channelId)).SingleOrDefault(j => string.Equals( j.GetProperty("id").GetString(), messageId.ToString(), StringComparison.OrdinalIgnoreCase ) ); if (message.ValueKind == JsonValueKind.Undefined) { throw new InvalidOperationException( $"Message #{messageId} not found in the export of channel #{channelId}." ); } return message; } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Infra/Secrets.cs ================================================ using System; using System.Reflection; using Microsoft.Extensions.Configuration; namespace DiscordChatExporter.Cli.Tests.Infra; internal static class Secrets { private static readonly IConfigurationRoot Configuration = new ConfigurationBuilder() .AddUserSecrets(Assembly.GetExecutingAssembly()) .AddEnvironmentVariables() .Build(); public static string DiscordToken => Configuration["DISCORD_TOKEN"] ?? throw new InvalidOperationException("Discord token not provided for tests."); } ================================================ FILE: DiscordChatExporter.Cli.Tests/Readme.md ================================================ # DiscordChatExporter Tests This test suite runs against a real Discord server, specifically created to exercise different behaviors required by the test scenarios. In order to run these tests locally, you need to join the test server and configure your authentication token. 1. [Join the test server](https://discord.gg/eRV8Vap5bm) 2. Locate your Discord authentication token 3. Add your token to user secrets: `dotnet user-secrets set DISCORD_TOKEN ` 4. Run the tests: `dotnet test` > [!NOTE] > If you want to add a new test case, please let me know and I will give you the required permissions on the server. ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/CsvContentSpecs.cs ================================================ using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class CsvContentSpecs { [Fact] public async Task I_can_export_a_channel_in_the_CSV_format() { // Act var document = await ExportWrapper.ExportAsCsvAsync(ChannelIds.DateRangeTestCases); // Assert document .Should() .ContainAll( "tyrrrz", "Hello world", "Goodbye world", "Foo bar", "Hurdle Durdle", "One", "Two", "Three", "Yeet" ); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/DateRangeSpecs.cs ================================================ using System; using System.IO; using System.Linq; using System.Threading.Tasks; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Exporting; using FluentAssertions; using JsonExtensions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class DateRangeSpecs { [Fact] public async Task I_can_filter_the_export_to_only_include_messages_sent_after_the_specified_date() { // Arrange var after = new DateTimeOffset(2021, 07, 24, 0, 0, 0, TimeSpan.Zero); using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, After = Snowflake.FromDate(after), }.ExecuteAsync(new FakeConsole()); // Assert var timestamps = Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("timestamp").GetDateTimeOffset()) .ToArray(); timestamps.All(t => t > after).Should().BeTrue(); timestamps .Should() .BeEquivalentTo( [ new DateTimeOffset(2021, 07, 24, 13, 49, 13, TimeSpan.Zero), new DateTimeOffset(2021, 07, 24, 14, 52, 38, TimeSpan.Zero), new DateTimeOffset(2021, 07, 24, 14, 52, 39, TimeSpan.Zero), new DateTimeOffset(2021, 07, 24, 14, 52, 40, TimeSpan.Zero), new DateTimeOffset(2021, 09, 08, 14, 26, 35, TimeSpan.Zero), ], o => o.Using(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation, TimeSpan.FromSeconds(1)) ) .WhenTypeIs() ); } [Fact] public async Task I_can_filter_the_export_to_only_include_messages_sent_before_the_specified_date() { // Arrange var before = new DateTimeOffset(2021, 07, 24, 0, 0, 0, TimeSpan.Zero); using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, Before = Snowflake.FromDate(before), }.ExecuteAsync(new FakeConsole()); // Assert var timestamps = Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("timestamp").GetDateTimeOffset()) .ToArray(); timestamps.All(t => t < before).Should().BeTrue(); timestamps .Should() .BeEquivalentTo( [ new DateTimeOffset(2021, 07, 19, 13, 34, 18, TimeSpan.Zero), new DateTimeOffset(2021, 07, 19, 15, 58, 48, TimeSpan.Zero), new DateTimeOffset(2021, 07, 19, 17, 23, 58, TimeSpan.Zero), ], o => o.Using(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation, TimeSpan.FromSeconds(1)) ) .WhenTypeIs() ); } [Fact] public async Task I_can_filter_the_export_to_only_include_messages_sent_between_the_specified_dates() { // Arrange var after = new DateTimeOffset(2021, 07, 24, 0, 0, 0, TimeSpan.Zero); var before = new DateTimeOffset(2021, 08, 01, 0, 0, 0, TimeSpan.Zero); using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, Before = Snowflake.FromDate(before), After = Snowflake.FromDate(after), }.ExecuteAsync(new FakeConsole()); // Assert var timestamps = Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("timestamp").GetDateTimeOffset()) .ToArray(); timestamps.All(t => t < before && t > after).Should().BeTrue(); timestamps .Should() .BeEquivalentTo( [ new DateTimeOffset(2021, 07, 24, 13, 49, 13, TimeSpan.Zero), new DateTimeOffset(2021, 07, 24, 14, 52, 38, TimeSpan.Zero), new DateTimeOffset(2021, 07, 24, 14, 52, 39, TimeSpan.Zero), new DateTimeOffset(2021, 07, 24, 14, 52, 40, TimeSpan.Zero), ], o => o.Using(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation, TimeSpan.FromSeconds(1)) ) .WhenTypeIs() ); } [Fact] public async Task I_can_filter_the_export_to_not_include_any_messages() { // Arrange var before = new DateTimeOffset(2020, 08, 01, 0, 0, 0, TimeSpan.Zero); using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, Before = Snowflake.FromDate(before), }.ExecuteAsync(new FakeConsole()); // Assert var timestamps = Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("timestamp").GetDateTimeOffset()) .ToArray(); timestamps.Should().BeEmpty(); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/FilterSpecs.cs ================================================ using System; using System.IO; using System.Linq; using System.Threading.Tasks; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Core.Exporting.Filtering; using FluentAssertions; using JsonExtensions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class FilterSpecs { [Fact] public async Task I_can_filter_the_export_to_only_include_messages_that_contain_the_specified_text() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, MessageFilter = MessageFilter.Parse("some text"), }.ExecuteAsync(new FakeConsole()); // Assert Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() .AllSatisfy(c => c.Contains("Some random text", StringComparison.Ordinal)); } [Fact] public async Task I_can_filter_the_export_to_only_include_messages_that_were_sent_by_the_specified_author() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, MessageFilter = MessageFilter.Parse("from:Tyrrrz"), }.ExecuteAsync(new FakeConsole()); // Assert Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("author").GetProperty("name").GetString()) .Should() .AllBe("tyrrrz"); } [Fact] public async Task I_can_filter_the_export_to_only_include_messages_that_contain_images() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, MessageFilter = MessageFilter.Parse("has:image"), }.ExecuteAsync(new FakeConsole()); // Assert Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() .AllSatisfy(c => c.Contains("This has image", StringComparison.Ordinal)); } [Fact] public async Task I_can_filter_the_export_to_only_include_messages_that_have_been_pinned() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, MessageFilter = MessageFilter.Parse("has:pin"), }.ExecuteAsync(new FakeConsole()); // Assert Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() .AllSatisfy(c => c.Contains("This is pinned", StringComparison.Ordinal)); } [Fact] public async Task I_can_filter_the_export_to_only_include_messages_that_contain_guild_invites() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, MessageFilter = MessageFilter.Parse("has:invite"), }.ExecuteAsync(new FakeConsole()); // Assert Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() .AllSatisfy(c => c.Contains("This has invite", StringComparison.Ordinal)); } [Fact] public async Task I_can_filter_the_export_to_only_include_messages_that_contain_the_specified_mention() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.FilterTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, MessageFilter = MessageFilter.Parse("mentions:Tyrrrz"), }.ExecuteAsync(new FakeConsole()); // Assert Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .Select(j => j.GetProperty("content").GetString()) .Should() .AllSatisfy(c => c.Contains("This has mention", StringComparison.Ordinal)); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlAttachmentSpecs.cs ================================================ using System; using System.Linq; using System.Threading.Tasks; using AngleSharp.Dom; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlAttachmentSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_generic_attachment() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885587844989612074") ); // Assert message.Text().Should().ContainAll("Generic file attachment", "Test.txt", "11 bytes"); message .QuerySelectorAll("a") .Select(e => e.GetAttribute("href")) .Should() .Contain(u => u.Contains("Test.txt", StringComparison.Ordinal)); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_an_image_attachment() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885654862656843786") ); // Assert message.Text().Should().Contain("Image attachment"); message .QuerySelectorAll("img") .Select(e => e.GetAttribute("src")) .Should() .Contain(u => u.Contains("bird-thumbnail.png", StringComparison.Ordinal)); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_video_attachment() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/333 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885655761919836171") ); // Assert message.Text().Should().Contain("Video attachment"); var videoUrl = message.QuerySelector("video source")?.GetAttribute("src"); videoUrl .Should() .StartWith( "https://cdn.discordapp.com/attachments/885587741654536192/885655761512968233/file_example_MP4_640_3MG.mp4" ); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_an_audio_attachment() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/333 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885656175620808734") ); // Assert message.Text().Should().Contain("Audio attachment"); var audioUrl = message.QuerySelector("audio source")?.GetAttribute("src"); audioUrl .Should() .StartWith( "https://cdn.discordapp.com/attachments/885587741654536192/885656175348187146/file_example_MP3_1MG.mp3" ); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlContentSpecs.cs ================================================ using System.IO; using System.Linq; using System.Threading.Tasks; using AngleSharp.Dom; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Exporting; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlContentSpecs { [Fact] public async Task I_can_export_a_channel_in_the_HTML_format() { // Act var messages = await ExportWrapper.GetMessagesAsHtmlAsync(ChannelIds.DateRangeTestCases); // Assert messages .Select(e => e.GetAttribute("data-message-id")) .Should() .Equal( "866674314627121232", "866710679758045195", "866732113319428096", "868490009366396958", "868505966528835604", "868505969821364245", "868505973294268457", "885169254029213696" ); messages .SelectMany(e => e.Text()) .Should() .ContainInOrder( "Hello world", "Goodbye world", "Foo bar", "Hurdle Durdle", "One", "Two", "Three", "Yeet" ); } [Fact] public async Task I_can_export_a_channel_in_the_HTML_format_in_the_reverse_order() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.HtmlDark, OutputPath = file.Path, Locale = "en-US", IsUtcNormalizationEnabled = true, IsReverseMessageOrder = true, }.ExecuteAsync(new FakeConsole()); var document = Html.Parse(await File.ReadAllTextAsync(file.Path)); var messages = document.QuerySelectorAll("[data-message-id]").ToArray(); // Assert messages .Select(e => e.GetAttribute("data-message-id")) .Should() .Equal( "885169254029213696", "868505973294268457", "868505969821364245", "868505966528835604", "868490009366396958", "866732113319428096", "866710679758045195", "866674314627121232" ); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlEmbedSpecs.cs ================================================ using System; using System.Linq; using System.Threading.Tasks; using AngleSharp.Dom; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Utils.Extensions; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlEmbedSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_rich_embed() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("866769910729146400") ); // Assert message .Text() .Should() .ContainAll( "Embed author", "Embed title", "Embed description", "Field 1", "Value 1", "Field 2", "Value 2", "Field 3", "Value 3", "Embed footer" ); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_an_image_embed() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/537 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("991768701126852638") ); // Assert message .QuerySelectorAll("img") .Select(e => e.GetAttribute("src")) .WhereNotNull() .Where(s => s.Contains("f8w05ja8s4e61.png", StringComparison.Ordinal)) .Should() .ContainSingle(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_an_image_embed_and_the_text_is_hidden_if_it_only_contains_the_image_link() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/682 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("991768701126852638") ); // Assert var content = message.QuerySelector(".chatlog__content")?.Text(); content.Should().BeNullOrEmpty(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_video_embed() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("1083751036596002856") ); // Assert message .QuerySelectorAll("source") .Select(e => e.GetAttribute("src")) .WhereNotNull() .Where(s => s.Contains( "i_am_currently_feeling_slight_displeasure_of_what_you_have_just_sent_lqrem.mp4", StringComparison.Ordinal ) ) .Should() .ContainSingle(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_GIFV_embed() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("1019234520349814794") ); // Assert message .QuerySelectorAll("source") .Select(e => e.GetAttribute("src")) .WhereNotNull() .Where(s => s.Contains("tooncasm-test-copy.mp4", StringComparison.Ordinal)) .Should() .ContainSingle(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_GIFV_embed_and_the_text_is_hidden_if_it_only_contains_the_video_link() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("1019234520349814794") ); // Assert var content = message.QuerySelector(".chatlog__content")?.Text(); content.Should().BeNullOrEmpty(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_Spotify_track_embed() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/657 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("867886632203976775") ); // Assert var iframeUrl = message.QuerySelector("iframe")?.GetAttribute("src"); iframeUrl.Should().StartWith("https://open.spotify.com/embed/track/1LHZMWefF9502NPfArRfvP"); } [Fact(Skip = "Twitch does not allow embeds from inside local HTML files")] public async Task I_can_export_a_channel_that_contains_a_message_with_a_Twitch_clip_embed() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/1196 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("1207002986128216074") ); // Assert var iframeUrl = message.QuerySelector("iframe")?.GetAttribute("src"); iframeUrl .Should() .StartWith( "https://clips.twitch.tv/embed?clip=SpicyMildCiderThisIsSparta--PQhbllrvej_Ee7v" ); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_YouTube_video_embed() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/570 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("866472508588294165") ); // Assert // Check that the YouTube video thumbnail image exists with the correct video ID var youtubeThumbnailSrc = message .QuerySelectorAll("img") .Select(e => e.GetAttribute("src")) .WhereNotNull() .FirstOrDefault(s => s.Contains("qOWW4OlgbvE", StringComparison.Ordinal)); youtubeThumbnailSrc.Should().NotBeNull(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_Twitter_post_embed_that_includes_multiple_images() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/695 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("991757444017557665") ); // Assert var imageUrls = message .QuerySelectorAll("img") .Select(e => e.GetAttribute("src")) .ToArray(); imageUrls .Should() .Contain(u => u.EndsWith( "https/pbs.twimg.com/media/FVYIzYPWAAAMBqZ.png", StringComparison.Ordinal ) ); imageUrls .Should() .Contain(u => u.EndsWith( "https/pbs.twimg.com/media/FVYJBWJWAAMNAx2.png", StringComparison.Ordinal ) ); imageUrls .Should() .Contain(u => u.EndsWith( "https/pbs.twimg.com/media/FVYJHiRX0AANZcz.png", StringComparison.Ordinal ) ); imageUrls .Should() .Contain(u => u.EndsWith( "https/pbs.twimg.com/media/FVYJNZNXwAAPnVG.png", StringComparison.Ordinal ) ); message.QuerySelectorAll(".chatlog__embed").Should().ContainSingle(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_guild_invite() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/649 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("1075116548966064128") ); // Assert message.Text().Should().Contain("DiscordChatExporter Test Server"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlForwardSpecs.cs ================================================ using System.Threading.Tasks; using AngleSharp.Dom; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils.Extensions; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlForwardSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_forwarded_message() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.ForwardTestCases, Snowflake.Parse("1455202427115536514") ); // Assert message .Text() .ReplaceWhiteSpace() .Should() .ContainAll("Forwarded", @"¯\_(ツ)_/¯", "12/29/2025 2:14 PM"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlGroupingSpecs.cs ================================================ using System.IO; using System.Linq; using System.Threading.Tasks; using AngleSharp.Dom; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Exporting; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlGroupingSpecs { [Fact] public async Task I_can_export_a_channel_and_the_messages_are_grouped_according_to_their_author_and_timestamps() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/152 // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.GroupingTestCases], ExportFormat = ExportFormat.HtmlDark, OutputPath = file.Path, }.ExecuteAsync(new FakeConsole()); // Assert var messageGroups = Html.Parse(await File.ReadAllTextAsync(file.Path)) .QuerySelectorAll(".chatlog__message-group"); messageGroups.Should().HaveCount(2); messageGroups[0] .QuerySelectorAll(".chatlog__content") .Select(e => e.Text()) .Should() .ContainInOrder( "First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth", "Tenth" ); messageGroups[1] .QuerySelectorAll(".chatlog__content") .Select(e => e.Text()) .Should() .ContainInOrder("Eleventh", "Twelveth", "Thirteenth", "Fourteenth", "Fifteenth"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlMarkdownSpecs.cs ================================================ using System.Threading.Tasks; using AngleSharp.Dom; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils.Extensions; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlMarkdownSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323136411078787") ); // Assert message .Text() .ReplaceWhiteSpace() .Should() .Contain("Default timestamp: 2/12/2023 1:36 PM"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker_in_the_short_format() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323205268967596") ); // Assert message.Text().ReplaceWhiteSpace().Should().Contain("Short time timestamp: 1:36 PM"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker_in_the_long_format() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323235342139483") ); // Assert message.Text().ReplaceWhiteSpace().Should().Contain("Long time timestamp: 1:36:12 PM"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker_in_the_short_date_format() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323326727634984") ); // Assert message.Text().ReplaceWhiteSpace().Should().Contain("Short date timestamp: 2/12/2023"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker_in_the_long_date_format() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323350731640863") ); // Assert message .Text() .ReplaceWhiteSpace() .Should() .Contain("Long date timestamp: Sunday, February 12, 2023"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker_in_the_full_format() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323374379118593") ); // Assert message .Text() .ReplaceWhiteSpace() .Should() .Contain("Full timestamp: Sunday, February 12, 2023 1:36 PM"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker_in_the_full_long_format() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323409095376947") ); // Assert message .Text() .ReplaceWhiteSpace() .Should() .Contain("Full long timestamp: Sunday, February 12, 2023 1:36:12 PM"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_timestamp_marker_in_the_relative_format() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074323436853285004") ); // Assert message .Text() .ReplaceWhiteSpace() .Should() .Contain("Relative timestamp: 2/12/2023 1:36 PM"); message.InnerHtml.ReplaceWhiteSpace().Should().Contain("Sunday, February 12, 2023 1:36 PM"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_an_invalid_timestamp_marker() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MarkdownTestCases, Snowflake.Parse("1074328534409019563") ); // Assert message.Text().Should().Contain("Invalid timestamp: Invalid date"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlMentionSpecs.cs ================================================ using System.Threading.Tasks; using AngleSharp.Dom; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlMentionSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_user_mention() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866458840245076028") ); // Assert message.Text().Should().Contain("User mention: @Tyrrrz"); message.InnerHtml.Should().Contain("tyrrrz"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_text_channel_mention() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866459040480624680") ); // Assert message.Text().Should().Contain("Text channel mention: #mention-tests"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_voice_channel_mention() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866459175462633503") ); // Assert message.Text().Should().Contain("Voice channel mention: 🔊general"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_role_mention() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866459254693429258") ); // Assert message.Text().Should().Contain("Role mention: @Role 1"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_thread_mention() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.MentionTestCases, Snowflake.Parse("1474874276828938290") ); // Assert message.Text().Should().Contain("Thread mention: #Thread starting message"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlReplySpecs.cs ================================================ using System.Threading.Tasks; using AngleSharp.Dom; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlReplySpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_that_replies_to_another_message() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.ReplyTestCases, Snowflake.Parse("866460738239725598") ); // Assert message.Text().Should().Contain("reply to original"); message.QuerySelector(".chatlog__reply-link")?.Text().Should().Contain("original"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_that_replies_to_a_deleted_message() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/645 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.ReplyTestCases, Snowflake.Parse("866460975388819486") ); // Assert message.Text().Should().Contain("reply to deleted"); message .QuerySelector(".chatlog__reply-link") ?.Text() .Should() .Contain("Original message was deleted or could not be loaded."); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_that_replies_to_an_empty_message_with_an_attachment() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/634 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.ReplyTestCases, Snowflake.Parse("866462470335627294") ); // Assert message.Text().Should().Contain("reply to attachment"); message .QuerySelector(".chatlog__reply-link") ?.Text() .Should() .Contain("Click to see attachment"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_that_replies_to_an_interaction() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/569 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.ReplyTestCases, Snowflake.Parse("1075152916417085492") ); // Assert message.Text().Should().Contain("used /poll"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_cross_posted_from_another_guild() { // https://github.com/Tyrrrz/DiscordChatExporter/issues/633 // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.ReplyTestCases, Snowflake.Parse("1072165330853576876") ); // Assert message .Text() .Should() .Contain("This is a test message from an announcement channel on another server"); message.Text().Should().Contain("SERVER"); message.QuerySelector(".chatlog__reply-link").Should().BeNull(); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/HtmlStickerSpecs.cs ================================================ using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class HtmlStickerSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_PNG_sticker() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.StickerTestCases, Snowflake.Parse("939670623158943754") ); // Assert var stickerUrl = message.QuerySelector("[title='rock'] img")?.GetAttribute("src"); stickerUrl.Should().StartWith("https://cdn.discordapp.com/stickers/904215665597120572.png"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_Lottie_sticker() { // Act var message = await ExportWrapper.GetMessageAsHtmlAsync( ChannelIds.StickerTestCases, Snowflake.Parse("939670526517997590") ); // Assert var stickerUrl = message .QuerySelector("[title='Yikes'] [data-source]") ?.GetAttribute("data-source"); stickerUrl .Should() .StartWith("https://cdn.discordapp.com/stickers/816087132447178774.json"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/JsonAttachmentSpecs.cs ================================================ using System.Linq; using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class JsonAttachmentSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_generic_attachment() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885587844989612074") ); // Assert message.GetProperty("content").GetString().Should().Be("Generic file attachment"); var attachments = message.GetProperty("attachments").EnumerateArray().ToArray(); attachments.Should().HaveCount(1); attachments[0] .GetProperty("url") .GetString() .Should() .StartWith( "https://cdn.discordapp.com/attachments/885587741654536192/885587844964417596/Test.txt" ); attachments[0].GetProperty("fileName").GetString().Should().Be("Test.txt"); attachments[0].GetProperty("fileSizeBytes").GetInt64().Should().Be(11); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_an_image_attachment() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885654862656843786") ); // Assert message.GetProperty("content").GetString().Should().Be("Image attachment"); var attachments = message.GetProperty("attachments").EnumerateArray().ToArray(); attachments.Should().HaveCount(1); attachments[0] .GetProperty("url") .GetString() .Should() .StartWith( "https://cdn.discordapp.com/attachments/885587741654536192/885654862430359613/bird-thumbnail.png" ); attachments[0].GetProperty("fileName").GetString().Should().Be("bird-thumbnail.png"); attachments[0].GetProperty("fileSizeBytes").GetInt64().Should().Be(466335); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_video_attachment() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885655761919836171") ); // Assert message.GetProperty("content").GetString().Should().Be("Video attachment"); var attachments = message.GetProperty("attachments").EnumerateArray().ToArray(); attachments.Should().HaveCount(1); attachments[0] .GetProperty("url") .GetString() .Should() .StartWith( "https://cdn.discordapp.com/attachments/885587741654536192/885655761512968233/file_example_MP4_640_3MG.mp4" ); attachments[0] .GetProperty("fileName") .GetString() .Should() .Be("file_example_MP4_640_3MG.mp4"); attachments[0].GetProperty("fileSizeBytes").GetInt64().Should().Be(3114374); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_an_audio_attachment() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.AttachmentTestCases, Snowflake.Parse("885656175620808734") ); // Assert message.GetProperty("content").GetString().Should().Be("Audio attachment"); var attachments = message.GetProperty("attachments").EnumerateArray().ToArray(); attachments.Should().HaveCount(1); attachments[0] .GetProperty("url") .GetString() .Should() .StartWith( "https://cdn.discordapp.com/attachments/885587741654536192/885656175348187146/file_example_MP3_1MG.mp3" ); attachments[0].GetProperty("fileName").GetString().Should().Be("file_example_MP3_1MG.mp3"); attachments[0].GetProperty("fileSizeBytes").GetInt64().Should().Be(1087849); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/JsonContentSpecs.cs ================================================ using System.IO; using System.Linq; using System.Threading.Tasks; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Exporting; using FluentAssertions; using JsonExtensions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class JsonContentSpecs { [Fact] public async Task I_can_export_a_channel_in_the_JSON_format() { // Act var messages = await ExportWrapper.GetMessagesAsJsonAsync(ChannelIds.DateRangeTestCases); // Assert messages .Select(j => j.GetProperty("id").GetString()) .Should() .Equal( "866674314627121232", "866710679758045195", "866732113319428096", "868490009366396958", "868505966528835604", "868505969821364245", "868505973294268457", "885169254029213696" ); messages .Select(j => j.GetProperty("content").GetString()) .Should() .Equal( "Hello world", "Goodbye world", "Foo bar", "Hurdle Durdle", "One", "Two", "Three", "Yeet" ); } [Fact] public async Task I_can_export_a_channel_in_the_JSON_format_in_the_reverse_order() { // Arrange using var file = TempFile.Create(); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.Json, OutputPath = file.Path, Locale = "en-US", IsUtcNormalizationEnabled = true, IsReverseMessageOrder = true, }.ExecuteAsync(new FakeConsole()); var messages = Json.Parse(await File.ReadAllTextAsync(file.Path)) .GetProperty("messages") .EnumerateArray() .ToArray(); // Assert messages .Select(j => j.GetProperty("id").GetString()) .Should() .Equal( "885169254029213696", "868505973294268457", "868505969821364245", "868505966528835604", "868490009366396958", "866732113319428096", "866710679758045195", "866674314627121232" ); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/JsonEmbedSpecs.cs ================================================ using System.Linq; using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class JsonEmbedSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_rich_embed() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.EmbedTestCases, Snowflake.Parse("866769910729146400") ); // Assert var embed = message.GetProperty("embeds").EnumerateArray().Single(); embed.GetProperty("title").GetString().Should().Be("Embed title"); embed.GetProperty("url").GetString().Should().Be("https://example.com"); embed.GetProperty("timestamp").GetString().Should().Be("2021-07-14T21:00:00+00:00"); embed.GetProperty("description").GetString().Should().Be("**Embed** _description_"); embed.GetProperty("color").GetString().Should().Be("#58B9FF"); var embedAuthor = embed.GetProperty("author"); embedAuthor.GetProperty("name").GetString().Should().Be("Embed author"); embedAuthor.GetProperty("url").GetString().Should().Be("https://example.com/author"); embedAuthor.GetProperty("iconUrl").GetString().Should().NotBeNullOrWhiteSpace(); var embedThumbnail = embed.GetProperty("thumbnail"); embedThumbnail.GetProperty("url").GetString().Should().NotBeNullOrWhiteSpace(); embedThumbnail.GetProperty("width").GetInt32().Should().Be(120); embedThumbnail.GetProperty("height").GetInt32().Should().Be(120); var embedFooter = embed.GetProperty("footer"); embedFooter.GetProperty("text").GetString().Should().Be("Embed footer"); embedFooter.GetProperty("iconUrl").GetString().Should().NotBeNullOrWhiteSpace(); var embedFields = embed.GetProperty("fields").EnumerateArray().ToArray(); embedFields.Should().HaveCount(3); embedFields[0].GetProperty("name").GetString().Should().Be("Field 1"); embedFields[0].GetProperty("value").GetString().Should().Be("Value 1"); embedFields[0].GetProperty("isInline").GetBoolean().Should().BeTrue(); embedFields[1].GetProperty("name").GetString().Should().Be("Field 2"); embedFields[1].GetProperty("value").GetString().Should().Be("Value 2"); embedFields[1].GetProperty("isInline").GetBoolean().Should().BeTrue(); embedFields[2].GetProperty("name").GetString().Should().Be("Field 3"); embedFields[2].GetProperty("value").GetString().Should().Be("Value 3"); embedFields[2].GetProperty("isInline").GetBoolean().Should().BeTrue(); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/JsonEmojiSpecs.cs ================================================ using System.Linq; using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class JsonEmojiSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_inline_emoji_and_have_them_listed_separately() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.EmojiTestCases, Snowflake.Parse("866768521052553216") ); // Assert var inlineEmojis = message.GetProperty("inlineEmojis").EnumerateArray().ToArray(); inlineEmojis.Should().HaveCount(4); inlineEmojis[0].GetProperty("id").GetString().Should().BeNullOrEmpty(); inlineEmojis[0].GetProperty("name").GetString().Should().Be("🙂"); inlineEmojis[0].GetProperty("code").GetString().Should().Be("slight_smile"); inlineEmojis[0].GetProperty("isAnimated").GetBoolean().Should().BeFalse(); inlineEmojis[0].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace(); inlineEmojis[1].GetProperty("id").GetString().Should().BeNullOrEmpty(); inlineEmojis[1].GetProperty("name").GetString().Should().Be("😦"); inlineEmojis[1].GetProperty("code").GetString().Should().Be("frowning"); inlineEmojis[1].GetProperty("isAnimated").GetBoolean().Should().BeFalse(); inlineEmojis[1].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace(); inlineEmojis[2].GetProperty("id").GetString().Should().BeNullOrEmpty(); inlineEmojis[2].GetProperty("name").GetString().Should().Be("😔"); inlineEmojis[2].GetProperty("code").GetString().Should().Be("pensive"); inlineEmojis[2].GetProperty("isAnimated").GetBoolean().Should().BeFalse(); inlineEmojis[2].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace(); inlineEmojis[3].GetProperty("id").GetString().Should().BeNullOrEmpty(); inlineEmojis[3].GetProperty("name").GetString().Should().Be("😂"); inlineEmojis[3].GetProperty("code").GetString().Should().Be("joy"); inlineEmojis[3].GetProperty("isAnimated").GetBoolean().Should().BeFalse(); inlineEmojis[3].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace(); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_custom_inline_emoji_and_have_them_listed_separately() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.EmojiTestCases, Snowflake.Parse("1299804867447230594") ); // Assert var inlineEmojis = message.GetProperty("inlineEmojis").EnumerateArray().ToArray(); inlineEmojis.Should().HaveCount(1); inlineEmojis[0].GetProperty("id").GetString().Should().Be("754441880066064584"); inlineEmojis[0].GetProperty("name").GetString().Should().Be("lemon_blush"); inlineEmojis[0].GetProperty("code").GetString().Should().Be("lemon_blush"); inlineEmojis[0].GetProperty("isAnimated").GetBoolean().Should().BeFalse(); inlineEmojis[0].GetProperty("imageUrl").GetString().Should().NotBeNullOrWhiteSpace(); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/JsonForwardSpecs.cs ================================================ using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class JsonForwardSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_forwarded_message() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.ForwardTestCases, Snowflake.Parse("1455202427115536514") ); // Assert var reference = message.GetProperty("reference"); reference.GetProperty("type").GetString().Should().Be("Forward"); reference.GetProperty("guildId").GetString().Should().Be("869237470565392384"); var forwardedMessage = message.GetProperty("forwardedMessage"); forwardedMessage.GetProperty("content").GetString().Should().Contain(@"¯\_(ツ)_/¯"); forwardedMessage .GetProperty("timestamp") .GetString() .Should() .StartWith("2025-12-28T22:52:42.175+00:00"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/JsonMentionSpecs.cs ================================================ using System.Linq; using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class JsonMentionSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_user_mention() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866458840245076028") ); // Assert message.GetProperty("content").GetString().Should().Be("User mention: @Tyrrrz"); message .GetProperty("mentions") .EnumerateArray() .Select(j => j.GetProperty("id").GetString()) .Should() .Contain("128178626683338752"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_text_channel_mention() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866459040480624680") ); // Assert message .GetProperty("content") .GetString() .Should() .Be("Text channel mention: #mention-tests"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_voice_channel_mention() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866459175462633503") ); // Assert message .GetProperty("content") .GetString() .Should() .Be("Voice channel mention: #general [voice]"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_role_mention() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.MentionTestCases, Snowflake.Parse("866459254693429258") ); // Assert message.GetProperty("content").GetString().Should().Be("Role mention: @Role 1"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_thread_mention() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.MentionTestCases, Snowflake.Parse("1474874276828938290") ); // Assert message .GetProperty("content") .GetString() .Should() .Be("Thread mention: #Thread starting message"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/JsonStickerSpecs.cs ================================================ using System.Linq; using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class JsonStickerSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_PNG_sticker() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.StickerTestCases, Snowflake.Parse("939670623158943754") ); // Assert var sticker = message.GetProperty("stickers").EnumerateArray().Single(); sticker.GetProperty("id").GetString().Should().Be("904215665597120572"); sticker.GetProperty("name").GetString().Should().Be("rock"); sticker.GetProperty("format").GetString().Should().Be("Apng"); sticker .GetProperty("sourceUrl") .GetString() .Should() .StartWith("https://cdn.discordapp.com/stickers/904215665597120572.png"); } [Fact] public async Task I_can_export_a_channel_that_contains_a_message_with_a_Lottie_sticker() { // Act var message = await ExportWrapper.GetMessageAsJsonAsync( ChannelIds.StickerTestCases, Snowflake.Parse("939670526517997590") ); // Assert var sticker = message.GetProperty("stickers").EnumerateArray().Single(); sticker.GetProperty("id").GetString().Should().Be("816087132447178774"); sticker.GetProperty("name").GetString().Should().Be("Yikes"); sticker.GetProperty("format").GetString().Should().Be("Lottie"); sticker .GetProperty("sourceUrl") .GetString() .Should() .StartWith("https://cdn.discordapp.com/stickers/816087132447178774.json"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/PartitioningSpecs.cs ================================================ using System.IO; using System.Threading.Tasks; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Core.Exporting.Partitioning; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class PartitioningSpecs { [Fact] public async Task I_can_export_a_channel_with_partitioning_based_on_message_count() { // Arrange using var dir = TempDir.Create(); var filePath = Path.Combine(dir.Path, "output.html"); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.HtmlDark, OutputPath = filePath, PartitionLimit = PartitionLimit.Parse("3"), }.ExecuteAsync(new FakeConsole()); // Assert Directory.EnumerateFiles(dir.Path, "output*").Should().HaveCount(3); } [Fact] public async Task I_can_export_a_channel_with_partitioning_based_on_file_size() { // Arrange using var dir = TempDir.Create(); var filePath = Path.Combine(dir.Path, "output.html"); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.DateRangeTestCases], ExportFormat = ExportFormat.HtmlDark, OutputPath = filePath, PartitionLimit = PartitionLimit.Parse("1kb"), }.ExecuteAsync(new FakeConsole()); // Assert Directory.EnumerateFiles(dir.Path, "output*").Should().HaveCount(8); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/PlainTextContentSpecs.cs ================================================ using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class PlainTextContentSpecs { [Fact] public async Task I_can_export_a_channel_in_the_TXT_format() { // Act var document = await ExportWrapper.ExportAsPlainTextAsync(ChannelIds.DateRangeTestCases); // Assert document .Should() .ContainAll( "tyrrrz", "Hello world", "Goodbye world", "Foo bar", "Hurdle Durdle", "One", "Two", "Three", "Yeet" ); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/PlainTextForwardSpecs.cs ================================================ using System.Threading.Tasks; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils.Extensions; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class PlainTextForwardSpecs { [Fact] public async Task I_can_export_a_channel_that_contains_a_forwarded_message() { // Act var document = await ExportWrapper.ExportAsPlainTextAsync(ChannelIds.ForwardTestCases); // Assert document .ReplaceWhiteSpace() .Should() .ContainAll("{Forwarded Message}", @"¯\_(ツ)_/¯", "12/28/2025 10:52 PM"); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Specs/SelfContainedSpecs.cs ================================================ using System.IO; using System.Linq; using System.Threading.Tasks; using CliFx.Infrastructure; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Tests.Infra; using DiscordChatExporter.Cli.Tests.Utils; using DiscordChatExporter.Core.Exporting; using FluentAssertions; using Xunit; namespace DiscordChatExporter.Cli.Tests.Specs; public class SelfContainedSpecs { [Fact] public async Task I_can_export_a_channel_and_download_all_referenced_assets() { // Arrange using var dir = TempDir.Create(); var filePath = Path.Combine(dir.Path, "output.html"); // Act await new ExportChannelsCommand { Token = Secrets.DiscordToken, ChannelIds = [ChannelIds.SelfContainedTestCases], ExportFormat = ExportFormat.HtmlDark, OutputPath = filePath, ShouldDownloadAssets = true, }.ExecuteAsync(new FakeConsole()); // Assert Html.Parse(await File.ReadAllTextAsync(filePath)) .QuerySelectorAll("body [src]") .Select(e => e.GetAttribute("src")!) .Select(f => Path.GetFullPath(f, dir.Path)) .All(File.Exists) .Should() .BeTrue(); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Utils/Extensions/StringExtensions.cs ================================================ using System.Text; namespace DiscordChatExporter.Cli.Tests.Utils.Extensions; internal static class StringExtensions { extension(string str) { public string ReplaceWhiteSpace(string replacement = " ") { var buffer = new StringBuilder(str.Length); foreach (var ch in str) buffer.Append(char.IsWhiteSpace(ch) ? replacement : ch); return buffer.ToString(); } } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Utils/Html.cs ================================================ using AngleSharp.Html.Dom; using AngleSharp.Html.Parser; namespace DiscordChatExporter.Cli.Tests.Utils; internal static class Html { private static readonly IHtmlParser Parser = new HtmlParser(); public static IHtmlDocument Parse(string source) => Parser.ParseDocument(source); } ================================================ FILE: DiscordChatExporter.Cli.Tests/Utils/TempDir.cs ================================================ using System; using System.IO; using System.Reflection; namespace DiscordChatExporter.Cli.Tests.Utils; internal partial class TempDir(string path) : IDisposable { public string Path { get; } = path; public void Dispose() { try { Directory.Delete(Path, true); } catch (DirectoryNotFoundException) { } } } internal partial class TempDir { public static TempDir Create() { var dirPath = System.IO.Path.Combine( System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? Directory.GetCurrentDirectory(), "Temp", Guid.NewGuid().ToString() ); Directory.CreateDirectory(dirPath); return new TempDir(dirPath); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/Utils/TempFile.cs ================================================ using System; using System.IO; using System.Reflection; namespace DiscordChatExporter.Cli.Tests.Utils; internal partial class TempFile(string path) : IDisposable { public string Path { get; } = path; public void Dispose() { try { File.Delete(Path); } catch (FileNotFoundException) { } } } internal partial class TempFile { public static TempFile Create() { var dirPath = System.IO.Path.Combine( System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? Directory.GetCurrentDirectory(), "Temp" ); Directory.CreateDirectory(dirPath); var filePath = System.IO.Path.Combine(dirPath, Guid.NewGuid() + ".tmp"); return new TempFile(filePath); } } ================================================ FILE: DiscordChatExporter.Cli.Tests/xunit.runner.json ================================================ { "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", "methodDisplayOptions": "all", "methodDisplay": "method" } ================================================ FILE: DiscordChatExporter.Cli.dockerfile ================================================ # -- Build # Specify the platform here so that we pull the SDK image matching the host platform, # instead of the target platform specified during build by the `--platform` option. FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build # Expose the target architecture set by the `docker build --platform` option, so that # we can build the assembly for the correct platform. ARG TARGETARCH # Allow setting the assembly version from the build command ARG VERSION=0.0.0 WORKDIR /tmp/app COPY favicon.ico . COPY NuGet.config . COPY Directory.Build.props . COPY Directory.Packages.props . COPY DiscordChatExporter.Core DiscordChatExporter.Core COPY DiscordChatExporter.Cli DiscordChatExporter.Cli # Publish a self-contained assembly so we can use a slimmer runtime image RUN dotnet publish DiscordChatExporter.Cli \ -p:Version=$VERSION \ -p:CSharpier_Bypass=true \ --configuration Release \ --self-contained \ --use-current-runtime \ --arch $TARGETARCH \ --output DiscordChatExporter.Cli/bin/publish/ # -- Run # Use `runtime-deps` instead of `runtime` because we have a self-contained assembly FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine AS run LABEL org.opencontainers.image.title="DiscordChatExporter.Cli" LABEL org.opencontainers.image.description="DiscordChatExporter is an application that can be used to export message history from any Discord channel to a file." LABEL org.opencontainers.image.authors="tyrrrz.me" LABEL org.opencontainers.image.source="https://github.com/Tyrrrz/DiscordChatExporter" LABEL org.opencontainers.image.licenses="MIT" # Alpine image doesn't come with the ICU libraries pre-installed, so we need to install them manually. # We need the full ICU data because we allow the user to specify any locale for formatting purposes. RUN apk add --no-cache icu-libs icu-data-full ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false ENV LC_ALL=en_US.UTF-8 ENV LANG=en_US.UTF-8 # Alpine is missing tzdata, which we need to support timezones RUN apk add --no-cache tzdata # Use a non-root user to ensure that the files shared with the host are accessible by the host user # https://github.com/Tyrrrz/DiscordChatExporter/issues/851 # https://github.com/Tyrrrz/DiscordChatExporter/issues/1174 RUN apk add --no-cache su-exec RUN addgroup -S -g 1000 dce && adduser -S -H -G dce -u 1000 dce # This directory is exposed to the user for mounting purposes, so it's important that it always # stays the same for backwards compatibility. WORKDIR /out COPY --from=build /tmp/app/DiscordChatExporter.Cli/bin/publish /opt/app COPY docker-entrypoint.sh /opt/app ENTRYPOINT ["/opt/app/docker-entrypoint.sh"] ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Application.cs ================================================ using System.Text.Json; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/application#application-object public partial record Application(Snowflake Id, string Name, ApplicationFlags Flags) { public bool IsMessageContentIntentEnabled { get; } = Flags.HasFlag(ApplicationFlags.GatewayMessageContent) || Flags.HasFlag(ApplicationFlags.GatewayMessageContentLimited); } public partial record Application { public static Application Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var name = json.GetProperty("name").GetNonWhiteSpaceString(); var flags = json.GetPropertyOrNull("flags")?.GetInt32OrNull()?.Pipe(x => (ApplicationFlags)x) ?? ApplicationFlags.None; return new Application(id, name, flags); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/ApplicationFlags.cs ================================================ using System; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/application#application-object-application-flags [Flags] public enum ApplicationFlags { None = 0, ApplicationAutoModerationRuleCreateBadge = 64, GatewayPresence = 4096, GatewayPresenceLimited = 8192, GatewayGuildMembers = 16384, GatewayGuildMembersLimited = 32768, VerificationPendingGuildLimit = 65536, Embedded = 131072, GatewayMessageContent = 262144, GatewayMessageContentLimited = 524288, ApplicationCommandBadge = 8388608, } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Attachment.cs ================================================ using System; using System.IO; using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#attachment-object public partial record Attachment( Snowflake Id, string Url, string FileName, string? Description, int? Width, int? Height, FileSize FileSize ) : IHasId { public string FileExtension { get; } = Path.GetExtension(FileName); public bool IsImage => string.Equals(FileExtension, ".jpg", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".jpeg", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".png", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".gif", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".bmp", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".webp", StringComparison.OrdinalIgnoreCase); public bool IsVideo => string.Equals(FileExtension, ".gifv", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".mp4", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".webm", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".mov", StringComparison.OrdinalIgnoreCase); public bool IsAudio => string.Equals(FileExtension, ".mp3", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".wav", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".ogg", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".flac", StringComparison.OrdinalIgnoreCase) || string.Equals(FileExtension, ".m4a", StringComparison.OrdinalIgnoreCase); public bool IsSpoiler { get; } = FileName.StartsWith("SPOILER_", StringComparison.Ordinal); } public partial record Attachment { public static Attachment Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var url = json.GetProperty("url").GetNonWhiteSpaceString(); var fileName = json.GetProperty("filename").GetNonNullString(); var description = json.GetPropertyOrNull("description")?.GetNonWhiteSpaceStringOrNull(); var width = json.GetPropertyOrNull("width")?.GetInt32OrNull(); var height = json.GetPropertyOrNull("height")?.GetInt32OrNull(); var fileSize = json.GetProperty("size").GetInt64().Pipe(FileSize.FromBytes); return new Attachment(id, url, fileName, description, width, height, fileSize); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Channel.cs ================================================ using System.Collections.Generic; using System.Linq; using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#channel-object public partial record Channel( Snowflake Id, ChannelKind Kind, Snowflake GuildId, Channel? Parent, string Name, int? Position, string? IconUrl, string? Topic, bool IsArchived, Snowflake? LastMessageId ) : IHasId { public bool IsDirect { get; } = Kind is ChannelKind.DirectTextChat or ChannelKind.DirectGroupTextChat; public bool IsGuild => !IsDirect; public bool IsCategory { get; } = Kind == ChannelKind.GuildCategory; public bool IsVoice { get; } = Kind is ChannelKind.GuildVoiceChat or ChannelKind.GuildStageVoice; public bool IsThread { get; } = Kind is ChannelKind.GuildNewsThread or ChannelKind.GuildPublicThread or ChannelKind.GuildPrivateThread; public bool IsEmpty { get; } = LastMessageId is null; public IEnumerable GetParents() { var current = Parent; while (current is not null) { yield return current; current = current.Parent; } } public Channel? TryGetRootParent() => GetParents().LastOrDefault(); public string GetHierarchicalName() => string.Join(" / ", GetParents().Reverse().Select(c => c.Name).Append(Name)); public bool MayHaveMessagesAfter(Snowflake messageId) => !IsEmpty && messageId < LastMessageId; public bool MayHaveMessagesBefore(Snowflake messageId) => !IsEmpty && messageId > Id; } public partial record Channel { public static Channel Parse(JsonElement json, Channel? parent = null, int? positionHint = null) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var kind = json.GetProperty("type").GetInt32().Pipe(t => (ChannelKind)t); var guildId = json.GetPropertyOrNull("guild_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse) ?? Guild.DirectMessages.Id; var name = // Guild channel json.GetPropertyOrNull("name")?.GetNonWhiteSpaceStringOrNull() // DM channel ?? json.GetPropertyOrNull("recipients") ?.EnumerateArrayOrNull() ?.Select(User.Parse) .OrderBy(u => u.Id) .Select(u => u.DisplayName) .Pipe(s => string.Join(", ", s)) // Fallback ?? id.ToString(); var position = positionHint ?? json.GetPropertyOrNull("position")?.GetInt32OrNull(); // Icons can only be set for group DM channels var iconUrl = json.GetPropertyOrNull("icon") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(h => ImageCdn.GetChannelIconUrl(id, h)); var topic = json.GetPropertyOrNull("topic")?.GetStringOrNull(); var isArchived = json.GetPropertyOrNull("thread_metadata") ?.GetPropertyOrNull("archived") ?.GetBooleanOrNull() ?? false; var lastMessageId = json.GetPropertyOrNull("last_message_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse); return new Channel( id, kind, guildId, parent, name, position, iconUrl, topic, isArchived, lastMessageId ); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/ChannelConnection.cs ================================================ using System.Collections.Generic; using System.Linq; namespace DiscordChatExporter.Core.Discord.Data; public record ChannelConnection(Channel Channel, IReadOnlyList Children) { public static IReadOnlyList BuildTree(IReadOnlyList channels) { IReadOnlyList GetChildren(Channel parent) => channels .Where(c => c.Parent?.Id == parent.Id) .Select(c => new ChannelConnection(c, GetChildren(c))) .ToArray(); return channels .Where(c => c.Parent is null) .Select(c => new ChannelConnection(c, GetChildren(c))) .ToArray(); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/ChannelKind.cs ================================================ namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#channel-object-channel-types public enum ChannelKind { GuildTextChat = 0, DirectTextChat = 1, GuildVoiceChat = 2, DirectGroupTextChat = 3, GuildCategory = 4, GuildNews = 5, GuildNewsThread = 10, GuildPublicThread = 11, GuildPrivateThread = 12, GuildStageVoice = 13, GuildDirectory = 14, GuildForum = 15, } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Common/FileSize.cs ================================================ using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; namespace DiscordChatExporter.Core.Discord.Data.Common; // Loosely based on https://github.com/omar/ByteSize (MIT license) public readonly partial record struct FileSize(long TotalBytes) { public double TotalKiloBytes => TotalBytes / 1024.0; public double TotalMegaBytes => TotalKiloBytes / 1024.0; public double TotalGigaBytes => TotalMegaBytes / 1024.0; private double GetLargestWholeNumberValue() { if (Math.Abs(TotalGigaBytes) >= 1) return TotalGigaBytes; if (Math.Abs(TotalMegaBytes) >= 1) return TotalMegaBytes; if (Math.Abs(TotalKiloBytes) >= 1) return TotalKiloBytes; return TotalBytes; } private string GetLargestWholeNumberSymbol() { if (Math.Abs(TotalGigaBytes) >= 1) return "GB"; if (Math.Abs(TotalMegaBytes) >= 1) return "MB"; if (Math.Abs(TotalKiloBytes) >= 1) return "KB"; return "bytes"; } [ExcludeFromCodeCoverage] public override string ToString() => string.Create( CultureInfo.InvariantCulture, $"{GetLargestWholeNumberValue():0.##} {GetLargestWholeNumberSymbol()}" ); } public partial record struct FileSize { public static FileSize FromBytes(long bytes) => new(bytes); } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Common/IHasId.cs ================================================ namespace DiscordChatExporter.Core.Discord.Data.Common; public interface IHasId { Snowflake Id { get; } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Common/ImageCdn.cs ================================================ using System; using System.Globalization; using System.Linq; namespace DiscordChatExporter.Core.Discord.Data.Common; // https://discord.com/developers/docs/reference#image-formatting public static class ImageCdn { // Standard emoji are rendered through Twemoji public static string GetStandardEmojiUrl(string emojiName) { var runes = emojiName.EnumerateRunes().ToArray(); // Variant selector rune is skipped in Twemoji IDs, // except when the emoji also contains a zero-width joiner. // VS = 0xfe0f; ZWJ = 0x200d. var filteredRunes = runes.Any(r => r.Value == 0x200d) ? runes : runes.Where(r => r.Value != 0xfe0f); var twemojiId = string.Join( "-", filteredRunes.Select(r => r.Value.ToString("x", CultureInfo.InvariantCulture)) ); return $"https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/{twemojiId}.svg"; } public static string GetCustomEmojiUrl(Snowflake emojiId, bool isAnimated = false) => isAnimated ? $"https://cdn.discordapp.com/emojis/{emojiId}.gif" : $"https://cdn.discordapp.com/emojis/{emojiId}.png"; public static string GetGuildIconUrl(Snowflake guildId, string iconHash, int size = 512) => iconHash.StartsWith("a_", StringComparison.Ordinal) ? $"https://cdn.discordapp.com/icons/{guildId}/{iconHash}.gif?size={size}" : $"https://cdn.discordapp.com/icons/{guildId}/{iconHash}.png?size={size}"; public static string GetChannelIconUrl(Snowflake channelId, string iconHash, int size = 512) => iconHash.StartsWith("a_", StringComparison.Ordinal) ? $"https://cdn.discordapp.com/channel-icons/{channelId}/{iconHash}.gif?size={size}" : $"https://cdn.discordapp.com/channel-icons/{channelId}/{iconHash}.png?size={size}"; public static string GetUserAvatarUrl(Snowflake userId, string avatarHash, int size = 512) => avatarHash.StartsWith("a_", StringComparison.Ordinal) ? $"https://cdn.discordapp.com/avatars/{userId}/{avatarHash}.gif?size={size}" : $"https://cdn.discordapp.com/avatars/{userId}/{avatarHash}.png?size={size}"; public static string GetFallbackUserAvatarUrl(int index = 0) => $"https://cdn.discordapp.com/embed/avatars/{index}.png"; public static string GetMemberAvatarUrl( Snowflake guildId, Snowflake userId, string avatarHash, int size = 512 ) => avatarHash.StartsWith("a_", StringComparison.Ordinal) ? $"https://cdn.discordapp.com/guilds/{guildId}/users/{userId}/avatars/{avatarHash}.gif?size={size}" : $"https://cdn.discordapp.com/guilds/{guildId}/users/{userId}/avatars/{avatarHash}.png?size={size}"; public static string GetStickerUrl(Snowflake stickerId, string format = "png") => $"https://cdn.discordapp.com/stickers/{stickerId}.{format}"; } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/Embed.cs ================================================ using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text.Json; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data.Embeds; // https://discord.com/developers/docs/resources/channel#embed-object public partial record Embed( string? Title, EmbedKind Kind, string? Url, DateTimeOffset? Timestamp, Color? Color, EmbedAuthor? Author, string? Description, IReadOnlyList Fields, EmbedImage? Thumbnail, IReadOnlyList Images, EmbedVideo? Video, EmbedFooter? Footer ) { // Embeds can only have one image according to the API model, // but the client can render multiple images in some cases. public EmbedImage? Image => Images.FirstOrDefault(); public SpotifyTrackEmbedProjection? TryGetSpotifyTrack() => SpotifyTrackEmbedProjection.TryResolve(this); public TwitchClipEmbedProjection? TryGetTwitchClip() => TwitchClipEmbedProjection.TryResolve(this); public YouTubeVideoEmbedProjection? TryGetYouTubeVideo() => YouTubeVideoEmbedProjection.TryResolve(this); } public partial record Embed { public static Embed Parse(JsonElement json) { var title = json.GetPropertyOrNull("title")?.GetStringOrNull(); var kind = json.GetPropertyOrNull("type") ?.GetStringOrNull() ?.Pipe(s => Enum.TryParse(s, true, out var result) ? result : (EmbedKind?)null ) ?? EmbedKind.Rich; var url = json.GetPropertyOrNull("url")?.GetNonWhiteSpaceStringOrNull(); var timestamp = json.GetPropertyOrNull("timestamp")?.GetDateTimeOffsetOrNull(); var color = json.GetPropertyOrNull("color") ?.GetInt32OrNull() ?.Pipe(System.Drawing.Color.FromArgb) .ResetAlpha(); var author = json.GetPropertyOrNull("author")?.Pipe(EmbedAuthor.Parse); var description = json.GetPropertyOrNull("description")?.GetStringOrNull(); var fields = json.GetPropertyOrNull("fields") ?.EnumerateArrayOrNull() ?.Select(EmbedField.Parse) .ToArray() ?? []; var thumbnail = json.GetPropertyOrNull("thumbnail")?.Pipe(EmbedImage.Parse); // Under the Discord API model, embeds can only have at most one image. // Because of that, embeds that are rendered with multiple images on the client // (e.g. tweet embeds), are exposed from the API as multiple separate embeds. // Our embed model is consistent with the user-facing side of Discord, so images // are stored as an array. The API will only ever return one image, but we deal // with this by merging related embeds at the end of the message parsing process. // https://github.com/Tyrrrz/DiscordChatExporter/issues/695 var images = json.GetPropertyOrNull("image") ?.Pipe(EmbedImage.Parse) .ToSingletonEnumerable() .ToArray() ?? []; var video = json.GetPropertyOrNull("video")?.Pipe(EmbedVideo.Parse); var footer = json.GetPropertyOrNull("footer")?.Pipe(EmbedFooter.Parse); return new Embed( title, kind, url, timestamp, color, author, description, fields, thumbnail, images, video, footer ); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/EmbedAuthor.cs ================================================ using System.Text.Json; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data.Embeds; // https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure public record EmbedAuthor(string? Name, string? Url, string? IconUrl, string? IconProxyUrl) { public static EmbedAuthor Parse(JsonElement json) { var name = json.GetPropertyOrNull("name")?.GetStringOrNull(); var url = json.GetPropertyOrNull("url")?.GetNonWhiteSpaceStringOrNull(); var iconUrl = json.GetPropertyOrNull("icon_url")?.GetNonWhiteSpaceStringOrNull(); var iconProxyUrl = json.GetPropertyOrNull("proxy_icon_url")?.GetNonWhiteSpaceStringOrNull(); return new EmbedAuthor(name, url, iconUrl, iconProxyUrl); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/EmbedField.cs ================================================ using System.Text.Json; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data.Embeds; // https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure public record EmbedField(string Name, string Value, bool IsInline) { public static EmbedField Parse(JsonElement json) { var name = json.GetProperty("name").GetNonNullString(); var value = json.GetProperty("value").GetNonNullString(); var isInline = json.GetPropertyOrNull("inline")?.GetBooleanOrNull() ?? false; return new EmbedField(name, value, isInline); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/EmbedFooter.cs ================================================ using System.Text.Json; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data.Embeds; // https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure public record EmbedFooter(string Text, string? IconUrl, string? IconProxyUrl) { public static EmbedFooter Parse(JsonElement json) { var text = json.GetProperty("text").GetNonNullString(); var iconUrl = json.GetPropertyOrNull("icon_url")?.GetNonWhiteSpaceStringOrNull(); var iconProxyUrl = json.GetPropertyOrNull("proxy_icon_url")?.GetNonWhiteSpaceStringOrNull(); return new EmbedFooter(text, iconUrl, iconProxyUrl); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/EmbedImage.cs ================================================ using System.Text.Json; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data.Embeds; // https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure public record EmbedImage(string? Url, string? ProxyUrl, int? Width, int? Height) { public static EmbedImage Parse(JsonElement json) { var url = json.GetPropertyOrNull("url")?.GetNonWhiteSpaceStringOrNull(); var proxyUrl = json.GetPropertyOrNull("proxy_url")?.GetNonWhiteSpaceStringOrNull(); var width = json.GetPropertyOrNull("width")?.GetInt32OrNull(); var height = json.GetPropertyOrNull("height")?.GetInt32OrNull(); return new EmbedImage(url, proxyUrl, width, height); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/EmbedKind.cs ================================================ namespace DiscordChatExporter.Core.Discord.Data.Embeds; // https://discord.com/developers/docs/resources/channel#embed-object-embed-types public enum EmbedKind { Rich, Image, Video, Gifv, Link, } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/EmbedVideo.cs ================================================ using System.Text.Json; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data.Embeds; // https://discord.com/developers/docs/resources/channel#embed-object-embed-video-structure public record EmbedVideo(string? Url, string? ProxyUrl, int? Width, int? Height) { public static EmbedVideo Parse(JsonElement json) { var url = json.GetPropertyOrNull("url")?.GetNonWhiteSpaceStringOrNull(); var proxyUrl = json.GetPropertyOrNull("proxy_url")?.GetNonWhiteSpaceStringOrNull(); var width = json.GetPropertyOrNull("width")?.GetInt32OrNull(); var height = json.GetPropertyOrNull("height")?.GetInt32OrNull(); return new EmbedVideo(url, proxyUrl, width, height); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/SpotifyTrackEmbedProjection.cs ================================================ using System.Text.RegularExpressions; namespace DiscordChatExporter.Core.Discord.Data.Embeds; public partial record SpotifyTrackEmbedProjection(string TrackId) { public string Url { get; } = $"https://open.spotify.com/embed/track/{TrackId}"; } public partial record SpotifyTrackEmbedProjection { private static string? TryParseTrackId(string embedUrl) { // https://open.spotify.com/track/1LHZMWefF9502NPfArRfvP?si=3efac6ce9be04f0a var trackId = Regex .Match(embedUrl, @"spotify\.com/track/(.*?)(?:\?|&|/|$)") .Groups[1] .Value; if (!string.IsNullOrWhiteSpace(trackId)) return trackId; return null; } public static SpotifyTrackEmbedProjection? TryResolve(Embed embed) { if (embed.Kind != EmbedKind.Link) return null; if (string.IsNullOrWhiteSpace(embed.Url)) return null; var trackId = TryParseTrackId(embed.Url); if (string.IsNullOrWhiteSpace(trackId)) return null; return new SpotifyTrackEmbedProjection(trackId); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/TwitchClipEmbedProjection.cs ================================================ using System.Text.RegularExpressions; namespace DiscordChatExporter.Core.Discord.Data.Embeds; public partial record TwitchClipEmbedProjection(string ClipId) { public string Url { get; } = $"https://clips.twitch.tv/embed?clip={ClipId}&parent=localhost"; } public partial record TwitchClipEmbedProjection { private static string? TryParseClipId(string embedUrl) { // https://clips.twitch.tv/SpookyTenuousPidgeonPanicVis { var clipId = Regex .Match(embedUrl, @"clips\.twitch\.tv/(.*?)(?:\?|&|/|$)") .Groups[1] .Value; if (!string.IsNullOrWhiteSpace(clipId)) return clipId; } // https://twitch.tv/clip/SpookyTenuousPidgeonPanicVis { var clipId = Regex .Match(embedUrl, @"twitch\.tv/clip/(.*?)(?:\?|&|/|$)") .Groups[1] .Value; if (!string.IsNullOrWhiteSpace(clipId)) return clipId; } return null; } public static TwitchClipEmbedProjection? TryResolve(Embed embed) { if (embed.Kind != EmbedKind.Video) return null; if (string.IsNullOrWhiteSpace(embed.Url)) return null; var clipId = TryParseClipId(embed.Url); if (string.IsNullOrWhiteSpace(clipId)) return null; return new TwitchClipEmbedProjection(clipId); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Embeds/YouTubeVideoEmbedProjection.cs ================================================ namespace DiscordChatExporter.Core.Discord.Data.Embeds; public partial record YouTubeVideoEmbedProjection(string VideoId) { public string Url { get; } = $"https://www.youtube.com/watch?v={VideoId}"; // Using hqdefault.jpg which is guaranteed to exist for all YouTube videos public string ThumbnailUrl { get; } = $"https://i.ytimg.com/vi/{VideoId}/hqdefault.jpg"; } public partial record YouTubeVideoEmbedProjection { public static YouTubeVideoEmbedProjection? TryResolve(Embed embed) { if (embed.Kind != EmbedKind.Video) return null; if (string.IsNullOrWhiteSpace(embed.Url)) return null; var videoId = YoutubeExplode.Videos.VideoId.TryParse(embed.Url); if (videoId is null) return null; return new YouTubeVideoEmbedProjection(videoId); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Emoji.cs ================================================ using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/emoji#emoji-object public partial record Emoji( // Only present on custom emoji Snowflake? Id, // Name of a custom emoji (e.g. LUL) or actual representation of a standard emoji (e.g. 🙂) string Name, bool IsAnimated ) { public bool IsCustomEmoji { get; } = Id is not null; // Name of a custom emoji (e.g. LUL) or name of a standard emoji (e.g. slight_smile) public string Code { get; } = Id is not null ? Name : EmojiIndex.TryGetCode(Name) ?? Name; public string ImageUrl { get; } = Id is not null ? ImageCdn.GetCustomEmojiUrl(Id.Value, IsAnimated) : ImageCdn.GetStandardEmojiUrl(Name); } public partial record Emoji { public static Emoji Parse(JsonElement json) { var id = json.GetPropertyOrNull("id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse); // Names may be missing on custom emoji within reactions var name = json.GetPropertyOrNull("name")?.GetNonWhiteSpaceStringOrNull() ?? "Unknown Emoji"; var isAnimated = json.GetPropertyOrNull("animated")?.GetBooleanOrNull() ?? false; return new Emoji(id, name, isAnimated); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/EmojiIndex.cs ================================================ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace DiscordChatExporter.Core.Utils; // Data sourced from: https://github.com/Tyrrrz/DiscordChatExporter/issues/599#issuecomment-863431045 [ExcludeFromCodeCoverage] internal static class EmojiIndex { private static Dictionary _toCodes = new(5000, StringComparer.Ordinal) { ["😀"] = "grinning", ["😃"] = "smiley", ["😄"] = "smile", ["😁"] = "grin", ["😆"] = "laughing", ["😅"] = "sweat_smile", ["😂"] = "joy", ["🤣"] = "rofl", ["☺️"] = "relaxed", ["😊"] = "blush", ["😇"] = "innocent", ["🙂"] = "slight_smile", ["🙃"] = "upside_down", ["😉"] = "wink", ["😌"] = "relieved", ["🥲"] = "smiling_face_with_tear", ["😍"] = "heart_eyes", ["🥰"] = "smiling_face_with_3_hearts", ["😘"] = "kissing_heart", ["😗"] = "kissing", ["😙"] = "kissing_smiling_eyes", ["😚"] = "kissing_closed_eyes", ["😋"] = "yum", ["😛"] = "stuck_out_tongue", ["😝"] = "stuck_out_tongue_closed_eyes", ["😜"] = "stuck_out_tongue_winking_eye", ["🤪"] = "zany_face", ["🤨"] = "face_with_raised_eyebrow", ["🧐"] = "face_with_monocle", ["🤓"] = "nerd", ["😎"] = "sunglasses", ["🤩"] = "star_struck", ["🥳"] = "partying_face", ["😏"] = "smirk", ["😒"] = "unamused", ["😞"] = "disappointed", ["😔"] = "pensive", ["😟"] = "worried", ["😕"] = "confused", ["🙁"] = "slight_frown", ["☹️"] = "frowning2", ["😣"] = "persevere", ["😖"] = "confounded", ["😫"] = "tired_face", ["😩"] = "weary", ["🥺"] = "pleading_face", ["😢"] = "cry", ["😭"] = "sob", ["😤"] = "triumph", ["😮‍💨"] = "face_exhaling", ["😠"] = "angry", ["😡"] = "rage", ["🤬"] = "face_with_symbols_over_mouth", ["🤯"] = "exploding_head", ["😳"] = "flushed", ["😶‍🌫️"] = "face_in_clouds", ["🥵"] = "hot_face", ["🥶"] = "cold_face", ["😱"] = "scream", ["😨"] = "fearful", ["😰"] = "cold_sweat", ["😥"] = "disappointed_relieved", ["😓"] = "sweat", ["🤗"] = "hugging", ["🤔"] = "thinking", ["🤭"] = "face_with_hand_over_mouth", ["🥱"] = "yawning_face", ["🤫"] = "shushing_face", ["🤥"] = "lying_face", ["😶"] = "no_mouth", ["😐"] = "neutral_face", ["😑"] = "expressionless", ["😬"] = "grimacing", ["🙄"] = "rolling_eyes", ["😯"] = "hushed", ["😦"] = "frowning", ["😧"] = "anguished", ["😮"] = "open_mouth", ["😲"] = "astonished", ["😴"] = "sleeping", ["🤤"] = "drooling_face", ["😪"] = "sleepy", ["😵"] = "dizzy_face", ["😵‍💫"] = "face_with_spiral_eyes", ["🤐"] = "zipper_mouth", ["🥴"] = "woozy_face", ["🤢"] = "nauseated_face", ["🤮"] = "face_vomiting", ["🤧"] = "sneezing_face", ["😷"] = "mask", ["🤒"] = "thermometer_face", ["🤕"] = "head_bandage", ["🤑"] = "money_mouth", ["🤠"] = "cowboy", ["🥸"] = "disguised_face", ["😈"] = "smiling_imp", ["👿"] = "imp", ["👹"] = "japanese_ogre", ["👺"] = "japanese_goblin", ["🤡"] = "clown", ["💩"] = "poop", ["👻"] = "ghost", ["💀"] = "skull", ["☠️"] = "skull_crossbones", ["👽"] = "alien", ["👾"] = "space_invader", ["🤖"] = "robot", ["🎃"] = "jack_o_lantern", ["😺"] = "smiley_cat", ["😸"] = "smile_cat", ["😹"] = "joy_cat", ["😻"] = "heart_eyes_cat", ["😼"] = "smirk_cat", ["😽"] = "kissing_cat", ["🙀"] = "scream_cat", ["😿"] = "crying_cat_face", ["😾"] = "pouting_cat", ["🤲"] = "palms_up_together", ["🤲🏻"] = "palms_up_together_tone1", ["🤲🏼"] = "palms_up_together_tone2", ["🤲🏽"] = "palms_up_together_tone3", ["🤲🏾"] = "palms_up_together_tone4", ["🤲🏿"] = "palms_up_together_tone5", ["👐"] = "open_hands", ["👐🏻"] = "open_hands_tone1", ["👐🏼"] = "open_hands_tone2", ["👐🏽"] = "open_hands_tone3", ["👐🏾"] = "open_hands_tone4", ["👐🏿"] = "open_hands_tone5", ["🙌"] = "raised_hands", ["🙌🏻"] = "raised_hands_tone1", ["🙌🏼"] = "raised_hands_tone2", ["🙌🏽"] = "raised_hands_tone3", ["🙌🏾"] = "raised_hands_tone4", ["🙌🏿"] = "raised_hands_tone5", ["👏"] = "clap", ["👏🏻"] = "clap_tone1", ["👏🏼"] = "clap_tone2", ["👏🏽"] = "clap_tone3", ["👏🏾"] = "clap_tone4", ["👏🏿"] = "clap_tone5", ["🤝"] = "handshake", ["👍"] = "thumbsup", ["👍🏻"] = "thumbsup_tone1", ["👍🏼"] = "thumbsup_tone2", ["👍🏽"] = "thumbsup_tone3", ["👍🏾"] = "thumbsup_tone4", ["👍🏿"] = "thumbsup_tone5", ["👎"] = "thumbsdown", ["👎🏻"] = "thumbsdown_tone1", ["👎🏼"] = "thumbsdown_tone2", ["👎🏽"] = "thumbsdown_tone3", ["👎🏾"] = "thumbsdown_tone4", ["👎🏿"] = "thumbsdown_tone5", ["👊"] = "punch", ["👊🏻"] = "punch_tone1", ["👊🏼"] = "punch_tone2", ["👊🏽"] = "punch_tone3", ["👊🏾"] = "punch_tone4", ["👊🏿"] = "punch_tone5", ["✊"] = "fist", ["✊🏻"] = "fist_tone1", ["✊🏼"] = "fist_tone2", ["✊🏽"] = "fist_tone3", ["✊🏾"] = "fist_tone4", ["✊🏿"] = "fist_tone5", ["🤛"] = "left_facing_fist", ["🤛🏻"] = "left_facing_fist_tone1", ["🤛🏼"] = "left_facing_fist_tone2", ["🤛🏽"] = "left_facing_fist_tone3", ["🤛🏾"] = "left_facing_fist_tone4", ["🤛🏿"] = "left_facing_fist_tone5", ["🤜"] = "right_facing_fist", ["🤜🏻"] = "right_facing_fist_tone1", ["🤜🏼"] = "right_facing_fist_tone2", ["🤜🏽"] = "right_facing_fist_tone3", ["🤜🏾"] = "right_facing_fist_tone4", ["🤜🏿"] = "right_facing_fist_tone5", ["🤞"] = "fingers_crossed", ["🤞🏻"] = "fingers_crossed_tone1", ["🤞🏼"] = "fingers_crossed_tone2", ["🤞🏽"] = "fingers_crossed_tone3", ["🤞🏾"] = "fingers_crossed_tone4", ["🤞🏿"] = "fingers_crossed_tone5", ["✌️"] = "v", ["✌🏻"] = "v_tone1", ["✌🏼"] = "v_tone2", ["✌🏽"] = "v_tone3", ["✌🏾"] = "v_tone4", ["✌🏿"] = "v_tone5", ["🤟"] = "love_you_gesture", ["🤟🏻"] = "love_you_gesture_tone1", ["🤟🏼"] = "love_you_gesture_tone2", ["🤟🏽"] = "love_you_gesture_tone3", ["🤟🏾"] = "love_you_gesture_tone4", ["🤟🏿"] = "love_you_gesture_tone5", ["🤘"] = "metal", ["🤘🏻"] = "metal_tone1", ["🤘🏼"] = "metal_tone2", ["🤘🏽"] = "metal_tone3", ["🤘🏾"] = "metal_tone4", ["🤘🏿"] = "metal_tone5", ["👌"] = "ok_hand", ["👌🏻"] = "ok_hand_tone1", ["👌🏼"] = "ok_hand_tone2", ["👌🏽"] = "ok_hand_tone3", ["👌🏾"] = "ok_hand_tone4", ["👌🏿"] = "ok_hand_tone5", ["🤏"] = "pinching_hand", ["🤏🏻"] = "pinching_hand_tone1", ["🤏🏼"] = "pinching_hand_tone2", ["🤏🏽"] = "pinching_hand_tone3", ["🤏🏾"] = "pinching_hand_tone4", ["🤏🏿"] = "pinching_hand_tone5", ["🤌"] = "pinched_fingers", ["🤌🏼"] = "pinched_fingers_tone2", ["🤌🏻"] = "pinched_fingers_tone1", ["🤌🏽"] = "pinched_fingers_tone3", ["🤌🏾"] = "pinched_fingers_tone4", ["🤌🏿"] = "pinched_fingers_tone5", ["👈"] = "point_left", ["👈🏻"] = "point_left_tone1", ["👈🏼"] = "point_left_tone2", ["👈🏽"] = "point_left_tone3", ["👈🏾"] = "point_left_tone4", ["👈🏿"] = "point_left_tone5", ["👉"] = "point_right", ["👉🏻"] = "point_right_tone1", ["👉🏼"] = "point_right_tone2", ["👉🏽"] = "point_right_tone3", ["👉🏾"] = "point_right_tone4", ["👉🏿"] = "point_right_tone5", ["👆"] = "point_up_2", ["👆🏻"] = "point_up_2_tone1", ["👆🏼"] = "point_up_2_tone2", ["👆🏽"] = "point_up_2_tone3", ["👆🏾"] = "point_up_2_tone4", ["👆🏿"] = "point_up_2_tone5", ["👇"] = "point_down", ["👇🏻"] = "point_down_tone1", ["👇🏼"] = "point_down_tone2", ["👇🏽"] = "point_down_tone3", ["👇🏾"] = "point_down_tone4", ["👇🏿"] = "point_down_tone5", ["☝️"] = "point_up", ["☝🏻"] = "point_up_tone1", ["☝🏼"] = "point_up_tone2", ["☝🏽"] = "point_up_tone3", ["☝🏾"] = "point_up_tone4", ["☝🏿"] = "point_up_tone5", ["✋"] = "raised_hand", ["✋🏻"] = "raised_hand_tone1", ["✋🏼"] = "raised_hand_tone2", ["✋🏽"] = "raised_hand_tone3", ["✋🏾"] = "raised_hand_tone4", ["✋🏿"] = "raised_hand_tone5", ["🤚"] = "raised_back_of_hand", ["🤚🏻"] = "raised_back_of_hand_tone1", ["🤚🏼"] = "raised_back_of_hand_tone2", ["🤚🏽"] = "raised_back_of_hand_tone3", ["🤚🏾"] = "raised_back_of_hand_tone4", ["🤚🏿"] = "raised_back_of_hand_tone5", ["🖐️"] = "hand_splayed", ["🖐🏻"] = "hand_splayed_tone1", ["🖐🏼"] = "hand_splayed_tone2", ["🖐🏽"] = "hand_splayed_tone3", ["🖐🏾"] = "hand_splayed_tone4", ["🖐🏿"] = "hand_splayed_tone5", ["🖖"] = "vulcan", ["🖖🏻"] = "vulcan_tone1", ["🖖🏼"] = "vulcan_tone2", ["🖖🏽"] = "vulcan_tone3", ["🖖🏾"] = "vulcan_tone4", ["🖖🏿"] = "vulcan_tone5", ["👋"] = "wave", ["👋🏻"] = "wave_tone1", ["👋🏼"] = "wave_tone2", ["👋🏽"] = "wave_tone3", ["👋🏾"] = "wave_tone4", ["👋🏿"] = "wave_tone5", ["🤙"] = "call_me", ["🤙🏻"] = "call_me_tone1", ["🤙🏼"] = "call_me_tone2", ["🤙🏽"] = "call_me_tone3", ["🤙🏾"] = "call_me_tone4", ["🤙🏿"] = "call_me_tone5", ["💪"] = "muscle", ["💪🏻"] = "muscle_tone1", ["💪🏼"] = "muscle_tone2", ["💪🏽"] = "muscle_tone3", ["💪🏾"] = "muscle_tone4", ["💪🏿"] = "muscle_tone5", ["🦾"] = "mechanical_arm", ["🖕"] = "middle_finger", ["🖕🏻"] = "middle_finger_tone1", ["🖕🏼"] = "middle_finger_tone2", ["🖕🏽"] = "middle_finger_tone3", ["🖕🏾"] = "middle_finger_tone4", ["🖕🏿"] = "middle_finger_tone5", ["✍️"] = "writing_hand", ["✍🏻"] = "writing_hand_tone1", ["✍🏼"] = "writing_hand_tone2", ["✍🏽"] = "writing_hand_tone3", ["✍🏾"] = "writing_hand_tone4", ["✍🏿"] = "writing_hand_tone5", ["🙏"] = "pray", ["🙏🏻"] = "pray_tone1", ["🙏🏼"] = "pray_tone2", ["🙏🏽"] = "pray_tone3", ["🙏🏾"] = "pray_tone4", ["🙏🏿"] = "pray_tone5", ["🦶"] = "foot", ["🦶🏻"] = "foot_tone1", ["🦶🏼"] = "foot_tone2", ["🦶🏽"] = "foot_tone3", ["🦶🏾"] = "foot_tone4", ["🦶🏿"] = "foot_tone5", ["🦵"] = "leg", ["🦵🏻"] = "leg_tone1", ["🦵🏼"] = "leg_tone2", ["🦵🏽"] = "leg_tone3", ["🦵🏾"] = "leg_tone4", ["🦵🏿"] = "leg_tone5", ["🦿"] = "mechanical_leg", ["💄"] = "lipstick", ["💋"] = "kiss", ["👄"] = "lips", ["🦷"] = "tooth", ["👅"] = "tongue", ["👂"] = "ear", ["👂🏻"] = "ear_tone1", ["👂🏼"] = "ear_tone2", ["👂🏽"] = "ear_tone3", ["👂🏾"] = "ear_tone4", ["👂🏿"] = "ear_tone5", ["🦻"] = "ear_with_hearing_aid", ["🦻🏻"] = "ear_with_hearing_aid_tone1", ["🦻🏼"] = "ear_with_hearing_aid_tone2", ["🦻🏽"] = "ear_with_hearing_aid_tone3", ["🦻🏾"] = "ear_with_hearing_aid_tone4", ["🦻🏿"] = "ear_with_hearing_aid_tone5", ["👃"] = "nose", ["👃🏻"] = "nose_tone1", ["👃🏼"] = "nose_tone2", ["👃🏽"] = "nose_tone3", ["👃🏾"] = "nose_tone4", ["👃🏿"] = "nose_tone5", ["👣"] = "footprints", ["👁️"] = "eye", ["👀"] = "eyes", ["🧠"] = "brain", ["🫀"] = "anatomical_heart", ["🫁"] = "lungs", ["🦴"] = "bone", ["🗣️"] = "speaking_head", ["👤"] = "bust_in_silhouette", ["👥"] = "busts_in_silhouette", ["🫂"] = "people_hugging", ["👶"] = "baby", ["👶🏻"] = "baby_tone1", ["👶🏼"] = "baby_tone2", ["👶🏽"] = "baby_tone3", ["👶🏾"] = "baby_tone4", ["👶🏿"] = "baby_tone5", ["👧"] = "girl", ["👧🏻"] = "girl_tone1", ["👧🏼"] = "girl_tone2", ["👧🏽"] = "girl_tone3", ["👧🏾"] = "girl_tone4", ["👧🏿"] = "girl_tone5", ["🧒"] = "child", ["🧒🏻"] = "child_tone1", ["🧒🏼"] = "child_tone2", ["🧒🏽"] = "child_tone3", ["🧒🏾"] = "child_tone4", ["🧒🏿"] = "child_tone5", ["👦"] = "boy", ["👦🏻"] = "boy_tone1", ["👦🏼"] = "boy_tone2", ["👦🏽"] = "boy_tone3", ["👦🏾"] = "boy_tone4", ["👦🏿"] = "boy_tone5", ["👩"] = "woman", ["👩🏻"] = "woman_tone1", ["👩🏼"] = "woman_tone2", ["👩🏽"] = "woman_tone3", ["👩🏾"] = "woman_tone4", ["👩🏿"] = "woman_tone5", ["🧑"] = "adult", ["🧑🏻"] = "adult_tone1", ["🧑🏼"] = "adult_tone2", ["🧑🏽"] = "adult_tone3", ["🧑🏾"] = "adult_tone4", ["🧑🏿"] = "adult_tone5", ["👨"] = "man", ["👨🏻"] = "man_tone1", ["👨🏼"] = "man_tone2", ["👨🏽"] = "man_tone3", ["👨🏾"] = "man_tone4", ["👨🏿"] = "man_tone5", ["🧑‍🦱"] = "person_curly_hair", ["🧑🏻‍🦱"] = "person_tone1_curly_hair", ["🧑🏼‍🦱"] = "person_tone2_curly_hair", ["🧑🏽‍🦱"] = "person_tone3_curly_hair", ["🧑🏾‍🦱"] = "person_tone4_curly_hair", ["🧑🏿‍🦱"] = "person_tone5_curly_hair", ["👩‍🦱"] = "woman_curly_haired", ["👩🏻‍🦱"] = "woman_curly_haired_tone1", ["👩🏼‍🦱"] = "woman_curly_haired_tone2", ["👩🏽‍🦱"] = "woman_curly_haired_tone3", ["👩🏾‍🦱"] = "woman_curly_haired_tone4", ["👩🏿‍🦱"] = "woman_curly_haired_tone5", ["👨‍🦱"] = "man_curly_haired", ["👨🏻‍🦱"] = "man_curly_haired_tone1", ["👨🏼‍🦱"] = "man_curly_haired_tone2", ["👨🏽‍🦱"] = "man_curly_haired_tone3", ["👨🏾‍🦱"] = "man_curly_haired_tone4", ["👨🏿‍🦱"] = "man_curly_haired_tone5", ["🧑‍🦰"] = "person_red_hair", ["🧑🏻‍🦰"] = "person_tone1_red_hair", ["🧑🏼‍🦰"] = "person_tone2_red_hair", ["🧑🏽‍🦰"] = "person_tone3_red_hair", ["🧑🏾‍🦰"] = "person_tone4_red_hair", ["🧑🏿‍🦰"] = "person_tone5_red_hair", ["👩‍🦰"] = "woman_red_haired", ["👩🏻‍🦰"] = "woman_red_haired_tone1", ["👩🏼‍🦰"] = "woman_red_haired_tone2", ["👩🏽‍🦰"] = "woman_red_haired_tone3", ["👩🏾‍🦰"] = "woman_red_haired_tone4", ["👩🏿‍🦰"] = "woman_red_haired_tone5", ["👨‍🦰"] = "man_red_haired", ["👨🏻‍🦰"] = "man_red_haired_tone1", ["👨🏼‍🦰"] = "man_red_haired_tone2", ["👨🏽‍🦰"] = "man_red_haired_tone3", ["👨🏾‍🦰"] = "man_red_haired_tone4", ["👨🏿‍🦰"] = "man_red_haired_tone5", ["👱‍♀️"] = "blond_haired_woman", ["👱🏻‍♀️"] = "blond_haired_woman_tone1", ["👱🏼‍♀️"] = "blond_haired_woman_tone2", ["👱🏽‍♀️"] = "blond_haired_woman_tone3", ["👱🏾‍♀️"] = "blond_haired_woman_tone4", ["👱🏿‍♀️"] = "blond_haired_woman_tone5", ["👱"] = "blond_haired_person", ["👱🏻"] = "blond_haired_person_tone1", ["👱🏼"] = "blond_haired_person_tone2", ["👱🏽"] = "blond_haired_person_tone3", ["👱🏾"] = "blond_haired_person_tone4", ["👱🏿"] = "blond_haired_person_tone5", ["👱‍♂️"] = "blond_haired_man", ["👱🏻‍♂️"] = "blond_haired_man_tone1", ["👱🏼‍♂️"] = "blond_haired_man_tone2", ["👱🏽‍♂️"] = "blond_haired_man_tone3", ["👱🏾‍♂️"] = "blond_haired_man_tone4", ["👱🏿‍♂️"] = "blond_haired_man_tone5", ["🧑‍🦳"] = "person_white_hair", ["🧑🏻‍🦳"] = "person_tone1_white_hair", ["🧑🏼‍🦳"] = "person_tone2_white_hair", ["🧑🏽‍🦳"] = "person_tone3_white_hair", ["🧑🏾‍🦳"] = "person_tone4_white_hair", ["🧑🏿‍🦳"] = "person_tone5_white_hair", ["👩‍🦳"] = "woman_white_haired", ["👩🏻‍🦳"] = "woman_white_haired_tone1", ["👩🏼‍🦳"] = "woman_white_haired_tone2", ["👩🏽‍🦳"] = "woman_white_haired_tone3", ["👩🏾‍🦳"] = "woman_white_haired_tone4", ["👩🏿‍🦳"] = "woman_white_haired_tone5", ["👨‍🦳"] = "man_white_haired", ["👨🏻‍🦳"] = "man_white_haired_tone1", ["👨🏼‍🦳"] = "man_white_haired_tone2", ["👨🏽‍🦳"] = "man_white_haired_tone3", ["👨🏾‍🦳"] = "man_white_haired_tone4", ["👨🏿‍🦳"] = "man_white_haired_tone5", ["🧑‍🦲"] = "person_bald", ["🧑🏻‍🦲"] = "person_tone1_bald", ["🧑🏼‍🦲"] = "person_tone2_bald", ["🧑🏽‍🦲"] = "person_tone3_bald", ["🧑🏾‍🦲"] = "person_tone4_bald", ["🧑🏿‍🦲"] = "person_tone5_bald", ["👩‍🦲"] = "woman_bald", ["👩🏻‍🦲"] = "woman_bald_tone1", ["👩🏼‍🦲"] = "woman_bald_tone2", ["👩🏽‍🦲"] = "woman_bald_tone3", ["👩🏾‍🦲"] = "woman_bald_tone4", ["👩🏿‍🦲"] = "woman_bald_tone5", ["👨‍🦲"] = "man_bald", ["👨🏻‍🦲"] = "man_bald_tone1", ["👨🏼‍🦲"] = "man_bald_tone2", ["👨🏽‍🦲"] = "man_bald_tone3", ["👨🏾‍🦲"] = "man_bald_tone4", ["👨🏿‍🦲"] = "man_bald_tone5", ["🧔"] = "bearded_person", ["🧔🏻"] = "bearded_person_tone1", ["🧔🏼"] = "bearded_person_tone2", ["🧔🏽"] = "bearded_person_tone3", ["🧔🏾"] = "bearded_person_tone4", ["🧔🏿"] = "bearded_person_tone5", ["🧔‍♂️"] = "man_beard", ["🧔🏻‍♂️"] = "man_tone1_beard", ["🧔🏼‍♂️"] = "man_tone2_beard", ["🧔🏽‍♂️"] = "man_tone3_beard", ["🧔🏾‍♂️"] = "man_tone4_beard", ["🧔🏿‍♂️"] = "man_tone5_beard", ["🧔‍♀️"] = "woman_beard", ["🧔🏻‍♀️"] = "woman_tone1_beard", ["🧔🏼‍♀️"] = "woman_tone2_beard", ["🧔🏽‍♀️"] = "woman_tone3_beard", ["🧔🏾‍♀️"] = "woman_tone4_beard", ["🧔🏿‍♀️"] = "woman_tone5_beard", ["👵"] = "older_woman", ["👵🏻"] = "older_woman_tone1", ["👵🏼"] = "older_woman_tone2", ["👵🏽"] = "older_woman_tone3", ["👵🏾"] = "older_woman_tone4", ["👵🏿"] = "older_woman_tone5", ["🧓"] = "older_adult", ["🧓🏻"] = "older_adult_tone1", ["🧓🏼"] = "older_adult_tone2", ["🧓🏽"] = "older_adult_tone3", ["🧓🏾"] = "older_adult_tone4", ["🧓🏿"] = "older_adult_tone5", ["👴"] = "older_man", ["👴🏻"] = "older_man_tone1", ["👴🏼"] = "older_man_tone2", ["👴🏽"] = "older_man_tone3", ["👴🏾"] = "older_man_tone4", ["👴🏿"] = "older_man_tone5", ["👲"] = "man_with_chinese_cap", ["👲🏻"] = "man_with_chinese_cap_tone1", ["👲🏼"] = "man_with_chinese_cap_tone2", ["👲🏽"] = "man_with_chinese_cap_tone3", ["👲🏾"] = "man_with_chinese_cap_tone4", ["👲🏿"] = "man_with_chinese_cap_tone5", ["👳"] = "person_wearing_turban", ["👳🏻"] = "person_wearing_turban_tone1", ["👳🏼"] = "person_wearing_turban_tone2", ["👳🏽"] = "person_wearing_turban_tone3", ["👳🏾"] = "person_wearing_turban_tone4", ["👳🏿"] = "person_wearing_turban_tone5", ["👳‍♀️"] = "woman_wearing_turban", ["👳🏻‍♀️"] = "woman_wearing_turban_tone1", ["👳🏼‍♀️"] = "woman_wearing_turban_tone2", ["👳🏽‍♀️"] = "woman_wearing_turban_tone3", ["👳🏾‍♀️"] = "woman_wearing_turban_tone4", ["👳🏿‍♀️"] = "woman_wearing_turban_tone5", ["👳‍♂️"] = "man_wearing_turban", ["👳🏻‍♂️"] = "man_wearing_turban_tone1", ["👳🏼‍♂️"] = "man_wearing_turban_tone2", ["👳🏽‍♂️"] = "man_wearing_turban_tone3", ["👳🏾‍♂️"] = "man_wearing_turban_tone4", ["👳🏿‍♂️"] = "man_wearing_turban_tone5", ["🧕"] = "woman_with_headscarf", ["🧕🏻"] = "woman_with_headscarf_tone1", ["🧕🏼"] = "woman_with_headscarf_tone2", ["🧕🏽"] = "woman_with_headscarf_tone3", ["🧕🏾"] = "woman_with_headscarf_tone4", ["🧕🏿"] = "woman_with_headscarf_tone5", ["👮"] = "police_officer", ["👮🏻"] = "police_officer_tone1", ["👮🏼"] = "police_officer_tone2", ["👮🏽"] = "police_officer_tone3", ["👮🏾"] = "police_officer_tone4", ["👮🏿"] = "police_officer_tone5", ["👮‍♀️"] = "woman_police_officer", ["👮🏻‍♀️"] = "woman_police_officer_tone1", ["👮🏼‍♀️"] = "woman_police_officer_tone2", ["👮🏽‍♀️"] = "woman_police_officer_tone3", ["👮🏾‍♀️"] = "woman_police_officer_tone4", ["👮🏿‍♀️"] = "woman_police_officer_tone5", ["👮‍♂️"] = "man_police_officer", ["👮🏻‍♂️"] = "man_police_officer_tone1", ["👮🏼‍♂️"] = "man_police_officer_tone2", ["👮🏽‍♂️"] = "man_police_officer_tone3", ["👮🏾‍♂️"] = "man_police_officer_tone4", ["👮🏿‍♂️"] = "man_police_officer_tone5", ["👷"] = "construction_worker", ["👷🏻"] = "construction_worker_tone1", ["👷🏼"] = "construction_worker_tone2", ["👷🏽"] = "construction_worker_tone3", ["👷🏾"] = "construction_worker_tone4", ["👷🏿"] = "construction_worker_tone5", ["👷‍♀️"] = "woman_construction_worker", ["👷🏻‍♀️"] = "woman_construction_worker_tone1", ["👷🏼‍♀️"] = "woman_construction_worker_tone2", ["👷🏽‍♀️"] = "woman_construction_worker_tone3", ["👷🏾‍♀️"] = "woman_construction_worker_tone4", ["👷🏿‍♀️"] = "woman_construction_worker_tone5", ["👷‍♂️"] = "man_construction_worker", ["👷🏻‍♂️"] = "man_construction_worker_tone1", ["👷🏼‍♂️"] = "man_construction_worker_tone2", ["👷🏽‍♂️"] = "man_construction_worker_tone3", ["👷🏾‍♂️"] = "man_construction_worker_tone4", ["👷🏿‍♂️"] = "man_construction_worker_tone5", ["💂"] = "guard", ["💂🏻"] = "guard_tone1", ["💂🏼"] = "guard_tone2", ["💂🏽"] = "guard_tone3", ["💂🏾"] = "guard_tone4", ["💂🏿"] = "guard_tone5", ["💂‍♀️"] = "woman_guard", ["💂🏻‍♀️"] = "woman_guard_tone1", ["💂🏼‍♀️"] = "woman_guard_tone2", ["💂🏽‍♀️"] = "woman_guard_tone3", ["💂🏾‍♀️"] = "woman_guard_tone4", ["💂🏿‍♀️"] = "woman_guard_tone5", ["💂‍♂️"] = "man_guard", ["💂🏻‍♂️"] = "man_guard_tone1", ["💂🏼‍♂️"] = "man_guard_tone2", ["💂🏽‍♂️"] = "man_guard_tone3", ["💂🏾‍♂️"] = "man_guard_tone4", ["💂🏿‍♂️"] = "man_guard_tone5", ["🕵️"] = "detective", ["🕵🏻"] = "detective_tone1", ["🕵🏼"] = "detective_tone2", ["🕵🏽"] = "detective_tone3", ["🕵🏾"] = "detective_tone4", ["🕵🏿"] = "detective_tone5", ["🕵️‍♀️"] = "woman_detective", ["🕵🏻‍♀️"] = "woman_detective_tone1", ["🕵🏼‍♀️"] = "woman_detective_tone2", ["🕵🏽‍♀️"] = "woman_detective_tone3", ["🕵🏾‍♀️"] = "woman_detective_tone4", ["🕵🏿‍♀️"] = "woman_detective_tone5", ["🕵️‍♂️"] = "man_detective", ["🕵🏻‍♂️"] = "man_detective_tone1", ["🕵🏼‍♂️"] = "man_detective_tone2", ["🕵🏽‍♂️"] = "man_detective_tone3", ["🕵🏾‍♂️"] = "man_detective_tone4", ["🕵🏿‍♂️"] = "man_detective_tone5", ["🧑‍⚕️"] = "health_worker", ["🧑🏻‍⚕️"] = "health_worker_tone1", ["🧑🏼‍⚕️"] = "health_worker_tone2", ["🧑🏽‍⚕️"] = "health_worker_tone3", ["🧑🏾‍⚕️"] = "health_worker_tone4", ["🧑🏿‍⚕️"] = "health_worker_tone5", ["👩‍⚕️"] = "woman_health_worker", ["👩🏻‍⚕️"] = "woman_health_worker_tone1", ["👩🏼‍⚕️"] = "woman_health_worker_tone2", ["👩🏽‍⚕️"] = "woman_health_worker_tone3", ["👩🏾‍⚕️"] = "woman_health_worker_tone4", ["👩🏿‍⚕️"] = "woman_health_worker_tone5", ["👨‍⚕️"] = "man_health_worker", ["👨🏻‍⚕️"] = "man_health_worker_tone1", ["👨🏼‍⚕️"] = "man_health_worker_tone2", ["👨🏽‍⚕️"] = "man_health_worker_tone3", ["👨🏾‍⚕️"] = "man_health_worker_tone4", ["👨🏿‍⚕️"] = "man_health_worker_tone5", ["🧑‍🌾"] = "farmer", ["🧑🏻‍🌾"] = "farmer_tone1", ["🧑🏼‍🌾"] = "farmer_tone2", ["🧑🏽‍🌾"] = "farmer_tone3", ["🧑🏾‍🌾"] = "farmer_tone4", ["🧑🏿‍🌾"] = "farmer_tone5", ["👩‍🌾"] = "woman_farmer", ["👩🏻‍🌾"] = "woman_farmer_tone1", ["👩🏼‍🌾"] = "woman_farmer_tone2", ["👩🏽‍🌾"] = "woman_farmer_tone3", ["👩🏾‍🌾"] = "woman_farmer_tone4", ["👩🏿‍🌾"] = "woman_farmer_tone5", ["👨‍🌾"] = "man_farmer", ["👨🏻‍🌾"] = "man_farmer_tone1", ["👨🏼‍🌾"] = "man_farmer_tone2", ["👨🏽‍🌾"] = "man_farmer_tone3", ["👨🏾‍🌾"] = "man_farmer_tone4", ["👨🏿‍🌾"] = "man_farmer_tone5", ["🧑‍🍳"] = "cook", ["🧑🏻‍🍳"] = "cook_tone1", ["🧑🏼‍🍳"] = "cook_tone2", ["🧑🏽‍🍳"] = "cook_tone3", ["🧑🏾‍🍳"] = "cook_tone4", ["🧑🏿‍🍳"] = "cook_tone5", ["👩‍🍳"] = "woman_cook", ["👩🏻‍🍳"] = "woman_cook_tone1", ["👩🏼‍🍳"] = "woman_cook_tone2", ["👩🏽‍🍳"] = "woman_cook_tone3", ["👩🏾‍🍳"] = "woman_cook_tone4", ["👩🏿‍🍳"] = "woman_cook_tone5", ["👨‍🍳"] = "man_cook", ["👨🏻‍🍳"] = "man_cook_tone1", ["👨🏼‍🍳"] = "man_cook_tone2", ["👨🏽‍🍳"] = "man_cook_tone3", ["👨🏾‍🍳"] = "man_cook_tone4", ["👨🏿‍🍳"] = "man_cook_tone5", ["🧑‍🎓"] = "student", ["🧑🏻‍🎓"] = "student_tone1", ["🧑🏼‍🎓"] = "student_tone2", ["🧑🏽‍🎓"] = "student_tone3", ["🧑🏾‍🎓"] = "student_tone4", ["🧑🏿‍🎓"] = "student_tone5", ["👩‍🎓"] = "woman_student", ["👩🏻‍🎓"] = "woman_student_tone1", ["👩🏼‍🎓"] = "woman_student_tone2", ["👩🏽‍🎓"] = "woman_student_tone3", ["👩🏾‍🎓"] = "woman_student_tone4", ["👩🏿‍🎓"] = "woman_student_tone5", ["👨‍🎓"] = "man_student", ["👨🏻‍🎓"] = "man_student_tone1", ["👨🏼‍🎓"] = "man_student_tone2", ["👨🏽‍🎓"] = "man_student_tone3", ["👨🏾‍🎓"] = "man_student_tone4", ["👨🏿‍🎓"] = "man_student_tone5", ["🧑‍🎤"] = "singer", ["🧑🏻‍🎤"] = "singer_tone1", ["🧑🏼‍🎤"] = "singer_tone2", ["🧑🏽‍🎤"] = "singer_tone3", ["🧑🏾‍🎤"] = "singer_tone4", ["🧑🏿‍🎤"] = "singer_tone5", ["👩‍🎤"] = "woman_singer", ["👩🏻‍🎤"] = "woman_singer_tone1", ["👩🏼‍🎤"] = "woman_singer_tone2", ["👩🏽‍🎤"] = "woman_singer_tone3", ["👩🏾‍🎤"] = "woman_singer_tone4", ["👩🏿‍🎤"] = "woman_singer_tone5", ["👨‍🎤"] = "man_singer", ["👨🏻‍🎤"] = "man_singer_tone1", ["👨🏼‍🎤"] = "man_singer_tone2", ["👨🏽‍🎤"] = "man_singer_tone3", ["👨🏾‍🎤"] = "man_singer_tone4", ["👨🏿‍🎤"] = "man_singer_tone5", ["🧑‍🏫"] = "teacher", ["🧑🏻‍🏫"] = "teacher_tone1", ["🧑🏼‍🏫"] = "teacher_tone2", ["🧑🏽‍🏫"] = "teacher_tone3", ["🧑🏾‍🏫"] = "teacher_tone4", ["🧑🏿‍🏫"] = "teacher_tone5", ["👩‍🏫"] = "woman_teacher", ["👩🏻‍🏫"] = "woman_teacher_tone1", ["👩🏼‍🏫"] = "woman_teacher_tone2", ["👩🏽‍🏫"] = "woman_teacher_tone3", ["👩🏾‍🏫"] = "woman_teacher_tone4", ["👩🏿‍🏫"] = "woman_teacher_tone5", ["👨‍🏫"] = "man_teacher", ["👨🏻‍🏫"] = "man_teacher_tone1", ["👨🏼‍🏫"] = "man_teacher_tone2", ["👨🏽‍🏫"] = "man_teacher_tone3", ["👨🏾‍🏫"] = "man_teacher_tone4", ["👨🏿‍🏫"] = "man_teacher_tone5", ["🧑‍🏭"] = "factory_worker", ["🧑🏻‍🏭"] = "factory_worker_tone1", ["🧑🏼‍🏭"] = "factory_worker_tone2", ["🧑🏽‍🏭"] = "factory_worker_tone3", ["🧑🏾‍🏭"] = "factory_worker_tone4", ["🧑🏿‍🏭"] = "factory_worker_tone5", ["👩‍🏭"] = "woman_factory_worker", ["👩🏻‍🏭"] = "woman_factory_worker_tone1", ["👩🏼‍🏭"] = "woman_factory_worker_tone2", ["👩🏽‍🏭"] = "woman_factory_worker_tone3", ["👩🏾‍🏭"] = "woman_factory_worker_tone4", ["👩🏿‍🏭"] = "woman_factory_worker_tone5", ["👨‍🏭"] = "man_factory_worker", ["👨🏻‍🏭"] = "man_factory_worker_tone1", ["👨🏼‍🏭"] = "man_factory_worker_tone2", ["👨🏽‍🏭"] = "man_factory_worker_tone3", ["👨🏾‍🏭"] = "man_factory_worker_tone4", ["👨🏿‍🏭"] = "man_factory_worker_tone5", ["🧑‍💻"] = "technologist", ["🧑🏻‍💻"] = "technologist_tone1", ["🧑🏼‍💻"] = "technologist_tone2", ["🧑🏽‍💻"] = "technologist_tone3", ["🧑🏾‍💻"] = "technologist_tone4", ["🧑🏿‍💻"] = "technologist_tone5", ["👩‍💻"] = "woman_technologist", ["👩🏻‍💻"] = "woman_technologist_tone1", ["👩🏼‍💻"] = "woman_technologist_tone2", ["👩🏽‍💻"] = "woman_technologist_tone3", ["👩🏾‍💻"] = "woman_technologist_tone4", ["👩🏿‍💻"] = "woman_technologist_tone5", ["👨‍💻"] = "man_technologist", ["👨🏻‍💻"] = "man_technologist_tone1", ["👨🏼‍💻"] = "man_technologist_tone2", ["👨🏽‍💻"] = "man_technologist_tone3", ["👨🏾‍💻"] = "man_technologist_tone4", ["👨🏿‍💻"] = "man_technologist_tone5", ["🧑‍💼"] = "office_worker", ["🧑🏻‍💼"] = "office_worker_tone1", ["🧑🏼‍💼"] = "office_worker_tone2", ["🧑🏽‍💼"] = "office_worker_tone3", ["🧑🏾‍💼"] = "office_worker_tone4", ["🧑🏿‍💼"] = "office_worker_tone5", ["👩‍💼"] = "woman_office_worker", ["👩🏻‍💼"] = "woman_office_worker_tone1", ["👩🏼‍💼"] = "woman_office_worker_tone2", ["👩🏽‍💼"] = "woman_office_worker_tone3", ["👩🏾‍💼"] = "woman_office_worker_tone4", ["👩🏿‍💼"] = "woman_office_worker_tone5", ["👨‍💼"] = "man_office_worker", ["👨🏻‍💼"] = "man_office_worker_tone1", ["👨🏼‍💼"] = "man_office_worker_tone2", ["👨🏽‍💼"] = "man_office_worker_tone3", ["👨🏾‍💼"] = "man_office_worker_tone4", ["👨🏿‍💼"] = "man_office_worker_tone5", ["🧑‍🔧"] = "mechanic", ["🧑🏻‍🔧"] = "mechanic_tone1", ["🧑🏼‍🔧"] = "mechanic_tone2", ["🧑🏽‍🔧"] = "mechanic_tone3", ["🧑🏾‍🔧"] = "mechanic_tone4", ["🧑🏿‍🔧"] = "mechanic_tone5", ["👩‍🔧"] = "woman_mechanic", ["👩🏻‍🔧"] = "woman_mechanic_tone1", ["👩🏼‍🔧"] = "woman_mechanic_tone2", ["👩🏽‍🔧"] = "woman_mechanic_tone3", ["👩🏾‍🔧"] = "woman_mechanic_tone4", ["👩🏿‍🔧"] = "woman_mechanic_tone5", ["👨‍🔧"] = "man_mechanic", ["👨🏻‍🔧"] = "man_mechanic_tone1", ["👨🏼‍🔧"] = "man_mechanic_tone2", ["👨🏽‍🔧"] = "man_mechanic_tone3", ["👨🏾‍🔧"] = "man_mechanic_tone4", ["👨🏿‍🔧"] = "man_mechanic_tone5", ["🧑‍🔬"] = "scientist", ["🧑🏻‍🔬"] = "scientist_tone1", ["🧑🏼‍🔬"] = "scientist_tone2", ["🧑🏽‍🔬"] = "scientist_tone3", ["🧑🏾‍🔬"] = "scientist_tone4", ["🧑🏿‍🔬"] = "scientist_tone5", ["👩‍🔬"] = "woman_scientist", ["👩🏻‍🔬"] = "woman_scientist_tone1", ["👩🏼‍🔬"] = "woman_scientist_tone2", ["👩🏽‍🔬"] = "woman_scientist_tone3", ["👩🏾‍🔬"] = "woman_scientist_tone4", ["👩🏿‍🔬"] = "woman_scientist_tone5", ["👨‍🔬"] = "man_scientist", ["👨🏻‍🔬"] = "man_scientist_tone1", ["👨🏼‍🔬"] = "man_scientist_tone2", ["👨🏽‍🔬"] = "man_scientist_tone3", ["👨🏾‍🔬"] = "man_scientist_tone4", ["👨🏿‍🔬"] = "man_scientist_tone5", ["🧑‍🎨"] = "artist", ["🧑🏻‍🎨"] = "artist_tone1", ["🧑🏼‍🎨"] = "artist_tone2", ["🧑🏽‍🎨"] = "artist_tone3", ["🧑🏾‍🎨"] = "artist_tone4", ["🧑🏿‍🎨"] = "artist_tone5", ["👩‍🎨"] = "woman_artist", ["👩🏻‍🎨"] = "woman_artist_tone1", ["👩🏼‍🎨"] = "woman_artist_tone2", ["👩🏽‍🎨"] = "woman_artist_tone3", ["👩🏾‍🎨"] = "woman_artist_tone4", ["👩🏿‍🎨"] = "woman_artist_tone5", ["👨‍🎨"] = "man_artist", ["👨🏻‍🎨"] = "man_artist_tone1", ["👨🏼‍🎨"] = "man_artist_tone2", ["👨🏽‍🎨"] = "man_artist_tone3", ["👨🏾‍🎨"] = "man_artist_tone4", ["👨🏿‍🎨"] = "man_artist_tone5", ["🧑‍🚒"] = "firefighter", ["🧑🏻‍🚒"] = "firefighter_tone1", ["🧑🏼‍🚒"] = "firefighter_tone2", ["🧑🏽‍🚒"] = "firefighter_tone3", ["🧑🏾‍🚒"] = "firefighter_tone4", ["🧑🏿‍🚒"] = "firefighter_tone5", ["👩‍🚒"] = "woman_firefighter", ["👩🏻‍🚒"] = "woman_firefighter_tone1", ["👩🏼‍🚒"] = "woman_firefighter_tone2", ["👩🏽‍🚒"] = "woman_firefighter_tone3", ["👩🏾‍🚒"] = "woman_firefighter_tone4", ["👩🏿‍🚒"] = "woman_firefighter_tone5", ["👨‍🚒"] = "man_firefighter", ["👨🏻‍🚒"] = "man_firefighter_tone1", ["👨🏼‍🚒"] = "man_firefighter_tone2", ["👨🏽‍🚒"] = "man_firefighter_tone3", ["👨🏾‍🚒"] = "man_firefighter_tone4", ["👨🏿‍🚒"] = "man_firefighter_tone5", ["🧑‍✈️"] = "pilot", ["🧑🏻‍✈️"] = "pilot_tone1", ["🧑🏼‍✈️"] = "pilot_tone2", ["🧑🏽‍✈️"] = "pilot_tone3", ["🧑🏾‍✈️"] = "pilot_tone4", ["🧑🏿‍✈️"] = "pilot_tone5", ["👩‍✈️"] = "woman_pilot", ["👩🏻‍✈️"] = "woman_pilot_tone1", ["👩🏼‍✈️"] = "woman_pilot_tone2", ["👩🏽‍✈️"] = "woman_pilot_tone3", ["👩🏾‍✈️"] = "woman_pilot_tone4", ["👩🏿‍✈️"] = "woman_pilot_tone5", ["👨‍✈️"] = "man_pilot", ["👨🏻‍✈️"] = "man_pilot_tone1", ["👨🏼‍✈️"] = "man_pilot_tone2", ["👨🏽‍✈️"] = "man_pilot_tone3", ["👨🏾‍✈️"] = "man_pilot_tone4", ["👨🏿‍✈️"] = "man_pilot_tone5", ["🧑‍🚀"] = "astronaut", ["🧑🏻‍🚀"] = "astronaut_tone1", ["🧑🏼‍🚀"] = "astronaut_tone2", ["🧑🏽‍🚀"] = "astronaut_tone3", ["🧑🏾‍🚀"] = "astronaut_tone4", ["🧑🏿‍🚀"] = "astronaut_tone5", ["👩‍🚀"] = "woman_astronaut", ["👩🏻‍🚀"] = "woman_astronaut_tone1", ["👩🏼‍🚀"] = "woman_astronaut_tone2", ["👩🏽‍🚀"] = "woman_astronaut_tone3", ["👩🏾‍🚀"] = "woman_astronaut_tone4", ["👩🏿‍🚀"] = "woman_astronaut_tone5", ["👨‍🚀"] = "man_astronaut", ["👨🏻‍🚀"] = "man_astronaut_tone1", ["👨🏼‍🚀"] = "man_astronaut_tone2", ["👨🏽‍🚀"] = "man_astronaut_tone3", ["👨🏾‍🚀"] = "man_astronaut_tone4", ["👨🏿‍🚀"] = "man_astronaut_tone5", ["🧑‍⚖️"] = "judge", ["🧑🏻‍⚖️"] = "judge_tone1", ["🧑🏼‍⚖️"] = "judge_tone2", ["🧑🏽‍⚖️"] = "judge_tone3", ["🧑🏾‍⚖️"] = "judge_tone4", ["🧑🏿‍⚖️"] = "judge_tone5", ["👩‍⚖️"] = "woman_judge", ["👩🏻‍⚖️"] = "woman_judge_tone1", ["👩🏼‍⚖️"] = "woman_judge_tone2", ["👩🏽‍⚖️"] = "woman_judge_tone3", ["👩🏾‍⚖️"] = "woman_judge_tone4", ["👩🏿‍⚖️"] = "woman_judge_tone5", ["👨‍⚖️"] = "man_judge", ["👨🏻‍⚖️"] = "man_judge_tone1", ["👨🏼‍⚖️"] = "man_judge_tone2", ["👨🏽‍⚖️"] = "man_judge_tone3", ["👨🏾‍⚖️"] = "man_judge_tone4", ["👨🏿‍⚖️"] = "man_judge_tone5", ["👰"] = "person_with_veil", ["👰🏻"] = "person_with_veil_tone1", ["👰🏼"] = "person_with_veil_tone2", ["👰🏽"] = "person_with_veil_tone3", ["👰🏾"] = "person_with_veil_tone4", ["👰🏿"] = "person_with_veil_tone5", ["👰‍♀️"] = "woman_with_veil", ["👰🏻‍♀️"] = "woman_with_veil_tone1", ["👰🏼‍♀️"] = "woman_with_veil_tone2", ["👰🏽‍♀️"] = "woman_with_veil_tone3", ["👰🏾‍♀️"] = "woman_with_veil_tone4", ["👰🏿‍♀️"] = "woman_with_veil_tone5", ["👰‍♂️"] = "man_with_veil", ["👰🏻‍♂️"] = "man_with_veil_tone1", ["👰🏼‍♂️"] = "man_with_veil_tone2", ["👰🏽‍♂️"] = "man_with_veil_tone3", ["👰🏾‍♂️"] = "man_with_veil_tone4", ["👰🏿‍♂️"] = "man_with_veil_tone5", ["🤵"] = "person_in_tuxedo", ["🤵🏻"] = "person_in_tuxedo_tone1", ["🤵🏼"] = "person_in_tuxedo_tone2", ["🤵🏽"] = "person_in_tuxedo_tone3", ["🤵🏾"] = "person_in_tuxedo_tone4", ["🤵🏿"] = "person_in_tuxedo_tone5", ["🤵‍♀️"] = "woman_in_tuxedo", ["🤵🏻‍♀️"] = "woman_in_tuxedo_tone1", ["🤵🏼‍♀️"] = "woman_in_tuxedo_tone2", ["🤵🏽‍♀️"] = "woman_in_tuxedo_tone3", ["🤵🏾‍♀️"] = "woman_in_tuxedo_tone4", ["🤵🏿‍♀️"] = "woman_in_tuxedo_tone5", ["🤵‍♂️"] = "man_in_tuxedo", ["🤵🏻‍♂️"] = "man_in_tuxedo_tone1", ["🤵🏼‍♂️"] = "man_in_tuxedo_tone2", ["🤵🏽‍♂️"] = "man_in_tuxedo_tone3", ["🤵🏾‍♂️"] = "man_in_tuxedo_tone4", ["🤵🏿‍♂️"] = "man_in_tuxedo_tone5", ["👸"] = "princess", ["👸🏻"] = "princess_tone1", ["👸🏼"] = "princess_tone2", ["👸🏽"] = "princess_tone3", ["👸🏾"] = "princess_tone4", ["👸🏿"] = "princess_tone5", ["🤴"] = "prince", ["🤴🏻"] = "prince_tone1", ["🤴🏼"] = "prince_tone2", ["🤴🏽"] = "prince_tone3", ["🤴🏾"] = "prince_tone4", ["🤴🏿"] = "prince_tone5", ["🦸"] = "superhero", ["🦸🏻"] = "superhero_tone1", ["🦸🏼"] = "superhero_tone2", ["🦸🏽"] = "superhero_tone3", ["🦸🏾"] = "superhero_tone4", ["🦸🏿"] = "superhero_tone5", ["🦸‍♀️"] = "woman_superhero", ["🦸🏻‍♀️"] = "woman_superhero_tone1", ["🦸🏼‍♀️"] = "woman_superhero_tone2", ["🦸🏽‍♀️"] = "woman_superhero_tone3", ["🦸🏾‍♀️"] = "woman_superhero_tone4", ["🦸🏿‍♀️"] = "woman_superhero_tone5", ["🦸‍♂️"] = "man_superhero", ["🦸🏻‍♂️"] = "man_superhero_tone1", ["🦸🏼‍♂️"] = "man_superhero_tone2", ["🦸🏽‍♂️"] = "man_superhero_tone3", ["🦸🏾‍♂️"] = "man_superhero_tone4", ["🦸🏿‍♂️"] = "man_superhero_tone5", ["🦹"] = "supervillain", ["🦹🏻"] = "supervillain_tone1", ["🦹🏼"] = "supervillain_tone2", ["🦹🏽"] = "supervillain_tone3", ["🦹🏾"] = "supervillain_tone4", ["🦹🏿"] = "supervillain_tone5", ["🦹‍♀️"] = "woman_supervillain", ["🦹🏻‍♀️"] = "woman_supervillain_tone1", ["🦹🏼‍♀️"] = "woman_supervillain_tone2", ["🦹🏽‍♀️"] = "woman_supervillain_tone3", ["🦹🏾‍♀️"] = "woman_supervillain_tone4", ["🦹🏿‍♀️"] = "woman_supervillain_tone5", ["🦹‍♂️"] = "man_supervillain", ["🦹🏻‍♂️"] = "man_supervillain_tone1", ["🦹🏼‍♂️"] = "man_supervillain_tone2", ["🦹🏽‍♂️"] = "man_supervillain_tone3", ["🦹🏾‍♂️"] = "man_supervillain_tone4", ["🦹🏿‍♂️"] = "man_supervillain_tone5", ["🥷"] = "ninja", ["🥷🏻"] = "ninja_tone1", ["🥷🏼"] = "ninja_tone2", ["🥷🏽"] = "ninja_tone3", ["🥷🏾"] = "ninja_tone4", ["🥷🏿"] = "ninja_tone5", ["🧑‍🎄"] = "mx_claus", ["🧑🏻‍🎄"] = "mx_claus_tone1", ["🧑🏼‍🎄"] = "mx_claus_tone2", ["🧑🏽‍🎄"] = "mx_claus_tone3", ["🧑🏾‍🎄"] = "mx_claus_tone4", ["🧑🏿‍🎄"] = "mx_claus_tone5", ["🤶"] = "mrs_claus", ["🤶🏻"] = "mrs_claus_tone1", ["🤶🏼"] = "mrs_claus_tone2", ["🤶🏽"] = "mrs_claus_tone3", ["🤶🏾"] = "mrs_claus_tone4", ["🤶🏿"] = "mrs_claus_tone5", ["🎅"] = "santa", ["🎅🏻"] = "santa_tone1", ["🎅🏼"] = "santa_tone2", ["🎅🏽"] = "santa_tone3", ["🎅🏾"] = "santa_tone4", ["🎅🏿"] = "santa_tone5", ["🧙"] = "mage", ["🧙🏻"] = "mage_tone1", ["🧙🏼"] = "mage_tone2", ["🧙🏽"] = "mage_tone3", ["🧙🏾"] = "mage_tone4", ["🧙🏿"] = "mage_tone5", ["🧙‍♀️"] = "woman_mage", ["🧙🏻‍♀️"] = "woman_mage_tone1", ["🧙🏼‍♀️"] = "woman_mage_tone2", ["🧙🏽‍♀️"] = "woman_mage_tone3", ["🧙🏾‍♀️"] = "woman_mage_tone4", ["🧙🏿‍♀️"] = "woman_mage_tone5", ["🧙‍♂️"] = "man_mage", ["🧙🏻‍♂️"] = "man_mage_tone1", ["🧙🏼‍♂️"] = "man_mage_tone2", ["🧙🏽‍♂️"] = "man_mage_tone3", ["🧙🏾‍♂️"] = "man_mage_tone4", ["🧙🏿‍♂️"] = "man_mage_tone5", ["🧝"] = "elf", ["🧝🏻"] = "elf_tone1", ["🧝🏼"] = "elf_tone2", ["🧝🏽"] = "elf_tone3", ["🧝🏾"] = "elf_tone4", ["🧝🏿"] = "elf_tone5", ["🧝‍♀️"] = "woman_elf", ["🧝🏻‍♀️"] = "woman_elf_tone1", ["🧝🏼‍♀️"] = "woman_elf_tone2", ["🧝🏽‍♀️"] = "woman_elf_tone3", ["🧝🏾‍♀️"] = "woman_elf_tone4", ["🧝🏿‍♀️"] = "woman_elf_tone5", ["🧝‍♂️"] = "man_elf", ["🧝🏻‍♂️"] = "man_elf_tone1", ["🧝🏼‍♂️"] = "man_elf_tone2", ["🧝🏽‍♂️"] = "man_elf_tone3", ["🧝🏾‍♂️"] = "man_elf_tone4", ["🧝🏿‍♂️"] = "man_elf_tone5", ["🧛"] = "vampire", ["🧛🏻"] = "vampire_tone1", ["🧛🏼"] = "vampire_tone2", ["🧛🏽"] = "vampire_tone3", ["🧛🏾"] = "vampire_tone4", ["🧛🏿"] = "vampire_tone5", ["🧛‍♀️"] = "woman_vampire", ["🧛🏻‍♀️"] = "woman_vampire_tone1", ["🧛🏼‍♀️"] = "woman_vampire_tone2", ["🧛🏽‍♀️"] = "woman_vampire_tone3", ["🧛🏾‍♀️"] = "woman_vampire_tone4", ["🧛🏿‍♀️"] = "woman_vampire_tone5", ["🧛‍♂️"] = "man_vampire", ["🧛🏻‍♂️"] = "man_vampire_tone1", ["🧛🏼‍♂️"] = "man_vampire_tone2", ["🧛🏽‍♂️"] = "man_vampire_tone3", ["🧛🏾‍♂️"] = "man_vampire_tone4", ["🧛🏿‍♂️"] = "man_vampire_tone5", ["🧟"] = "zombie", ["🧟‍♀️"] = "woman_zombie", ["🧟‍♂️"] = "man_zombie", ["🧞"] = "genie", ["🧞‍♀️"] = "woman_genie", ["🧞‍♂️"] = "man_genie", ["🧜"] = "merperson", ["🧜🏻"] = "merperson_tone1", ["🧜🏼"] = "merperson_tone2", ["🧜🏽"] = "merperson_tone3", ["🧜🏾"] = "merperson_tone4", ["🧜🏿"] = "merperson_tone5", ["🧜‍♀️"] = "mermaid", ["🧜🏻‍♀️"] = "mermaid_tone1", ["🧜🏼‍♀️"] = "mermaid_tone2", ["🧜🏽‍♀️"] = "mermaid_tone3", ["🧜🏾‍♀️"] = "mermaid_tone4", ["🧜🏿‍♀️"] = "mermaid_tone5", ["🧜‍♂️"] = "merman", ["🧜🏻‍♂️"] = "merman_tone1", ["🧜🏼‍♂️"] = "merman_tone2", ["🧜🏽‍♂️"] = "merman_tone3", ["🧜🏾‍♂️"] = "merman_tone4", ["🧜🏿‍♂️"] = "merman_tone5", ["🧚"] = "fairy", ["🧚🏻"] = "fairy_tone1", ["🧚🏼"] = "fairy_tone2", ["🧚🏽"] = "fairy_tone3", ["🧚🏾"] = "fairy_tone4", ["🧚🏿"] = "fairy_tone5", ["🧚‍♀️"] = "woman_fairy", ["🧚🏻‍♀️"] = "woman_fairy_tone1", ["🧚🏼‍♀️"] = "woman_fairy_tone2", ["🧚🏽‍♀️"] = "woman_fairy_tone3", ["🧚🏾‍♀️"] = "woman_fairy_tone4", ["🧚🏿‍♀️"] = "woman_fairy_tone5", ["🧚‍♂️"] = "man_fairy", ["🧚🏻‍♂️"] = "man_fairy_tone1", ["🧚🏼‍♂️"] = "man_fairy_tone2", ["🧚🏽‍♂️"] = "man_fairy_tone3", ["🧚🏾‍♂️"] = "man_fairy_tone4", ["🧚🏿‍♂️"] = "man_fairy_tone5", ["👼"] = "angel", ["👼🏻"] = "angel_tone1", ["👼🏼"] = "angel_tone2", ["👼🏽"] = "angel_tone3", ["👼🏾"] = "angel_tone4", ["👼🏿"] = "angel_tone5", ["🤰"] = "pregnant_woman", ["🤰🏻"] = "pregnant_woman_tone1", ["🤰🏼"] = "pregnant_woman_tone2", ["🤰🏽"] = "pregnant_woman_tone3", ["🤰🏾"] = "pregnant_woman_tone4", ["🤰🏿"] = "pregnant_woman_tone5", ["🤱"] = "breast_feeding", ["🤱🏻"] = "breast_feeding_tone1", ["🤱🏼"] = "breast_feeding_tone2", ["🤱🏽"] = "breast_feeding_tone3", ["🤱🏾"] = "breast_feeding_tone4", ["🤱🏿"] = "breast_feeding_tone5", ["🧑‍🍼"] = "person_feeding_baby", ["🧑🏻‍🍼"] = "person_feeding_baby_tone1", ["🧑🏼‍🍼"] = "person_feeding_baby_tone2", ["🧑🏽‍🍼"] = "person_feeding_baby_tone3", ["🧑🏾‍🍼"] = "person_feeding_baby_tone4", ["🧑🏿‍🍼"] = "person_feeding_baby_tone5", ["👩‍🍼"] = "woman_feeding_baby", ["👩🏻‍🍼"] = "woman_feeding_baby_tone1", ["👩🏼‍🍼"] = "woman_feeding_baby_tone2", ["👩🏽‍🍼"] = "woman_feeding_baby_tone3", ["👩🏾‍🍼"] = "woman_feeding_baby_tone4", ["👩🏿‍🍼"] = "woman_feeding_baby_tone5", ["👨‍🍼"] = "man_feeding_baby", ["👨🏻‍🍼"] = "man_feeding_baby_tone1", ["👨🏼‍🍼"] = "man_feeding_baby_tone2", ["👨🏽‍🍼"] = "man_feeding_baby_tone3", ["👨🏾‍🍼"] = "man_feeding_baby_tone4", ["👨🏿‍🍼"] = "man_feeding_baby_tone5", ["🙇"] = "person_bowing", ["🙇🏻"] = "person_bowing_tone1", ["🙇🏼"] = "person_bowing_tone2", ["🙇🏽"] = "person_bowing_tone3", ["🙇🏾"] = "person_bowing_tone4", ["🙇🏿"] = "person_bowing_tone5", ["🙇‍♀️"] = "woman_bowing", ["🙇🏻‍♀️"] = "woman_bowing_tone1", ["🙇🏼‍♀️"] = "woman_bowing_tone2", ["🙇🏽‍♀️"] = "woman_bowing_tone3", ["🙇🏾‍♀️"] = "woman_bowing_tone4", ["🙇🏿‍♀️"] = "woman_bowing_tone5", ["🙇‍♂️"] = "man_bowing", ["🙇🏻‍♂️"] = "man_bowing_tone1", ["🙇🏼‍♂️"] = "man_bowing_tone2", ["🙇🏽‍♂️"] = "man_bowing_tone3", ["🙇🏾‍♂️"] = "man_bowing_tone4", ["🙇🏿‍♂️"] = "man_bowing_tone5", ["💁"] = "person_tipping_hand", ["💁🏻"] = "person_tipping_hand_tone1", ["💁🏼"] = "person_tipping_hand_tone2", ["💁🏽"] = "person_tipping_hand_tone3", ["💁🏾"] = "person_tipping_hand_tone4", ["💁🏿"] = "person_tipping_hand_tone5", ["💁‍♀️"] = "woman_tipping_hand", ["💁🏻‍♀️"] = "woman_tipping_hand_tone1", ["💁🏼‍♀️"] = "woman_tipping_hand_tone2", ["💁🏽‍♀️"] = "woman_tipping_hand_tone3", ["💁🏾‍♀️"] = "woman_tipping_hand_tone4", ["💁🏿‍♀️"] = "woman_tipping_hand_tone5", ["💁‍♂️"] = "man_tipping_hand", ["💁🏻‍♂️"] = "man_tipping_hand_tone1", ["💁🏼‍♂️"] = "man_tipping_hand_tone2", ["💁🏽‍♂️"] = "man_tipping_hand_tone3", ["💁🏾‍♂️"] = "man_tipping_hand_tone4", ["💁🏿‍♂️"] = "man_tipping_hand_tone5", ["🙅"] = "person_gesturing_no", ["🙅🏻"] = "person_gesturing_no_tone1", ["🙅🏼"] = "person_gesturing_no_tone2", ["🙅🏽"] = "person_gesturing_no_tone3", ["🙅🏾"] = "person_gesturing_no_tone4", ["🙅🏿"] = "person_gesturing_no_tone5", ["🙅‍♀️"] = "woman_gesturing_no", ["🙅🏻‍♀️"] = "woman_gesturing_no_tone1", ["🙅🏼‍♀️"] = "woman_gesturing_no_tone2", ["🙅🏽‍♀️"] = "woman_gesturing_no_tone3", ["🙅🏾‍♀️"] = "woman_gesturing_no_tone4", ["🙅🏿‍♀️"] = "woman_gesturing_no_tone5", ["🙅‍♂️"] = "man_gesturing_no", ["🙅🏻‍♂️"] = "man_gesturing_no_tone1", ["🙅🏼‍♂️"] = "man_gesturing_no_tone2", ["🙅🏽‍♂️"] = "man_gesturing_no_tone3", ["🙅🏾‍♂️"] = "man_gesturing_no_tone4", ["🙅🏿‍♂️"] = "man_gesturing_no_tone5", ["🙆"] = "person_gesturing_ok", ["🙆🏻"] = "person_gesturing_ok_tone1", ["🙆🏼"] = "person_gesturing_ok_tone2", ["🙆🏽"] = "person_gesturing_ok_tone3", ["🙆🏾"] = "person_gesturing_ok_tone4", ["🙆🏿"] = "person_gesturing_ok_tone5", ["🙆‍♀️"] = "woman_gesturing_ok", ["🙆🏻‍♀️"] = "woman_gesturing_ok_tone1", ["🙆🏼‍♀️"] = "woman_gesturing_ok_tone2", ["🙆🏽‍♀️"] = "woman_gesturing_ok_tone3", ["🙆🏾‍♀️"] = "woman_gesturing_ok_tone4", ["🙆🏿‍♀️"] = "woman_gesturing_ok_tone5", ["🙆‍♂️"] = "man_gesturing_ok", ["🙆🏻‍♂️"] = "man_gesturing_ok_tone1", ["🙆🏼‍♂️"] = "man_gesturing_ok_tone2", ["🙆🏽‍♂️"] = "man_gesturing_ok_tone3", ["🙆🏾‍♂️"] = "man_gesturing_ok_tone4", ["🙆🏿‍♂️"] = "man_gesturing_ok_tone5", ["🙋"] = "person_raising_hand", ["🙋🏻"] = "person_raising_hand_tone1", ["🙋🏼"] = "person_raising_hand_tone2", ["🙋🏽"] = "person_raising_hand_tone3", ["🙋🏾"] = "person_raising_hand_tone4", ["🙋🏿"] = "person_raising_hand_tone5", ["🙋‍♀️"] = "woman_raising_hand", ["🙋🏻‍♀️"] = "woman_raising_hand_tone1", ["🙋🏼‍♀️"] = "woman_raising_hand_tone2", ["🙋🏽‍♀️"] = "woman_raising_hand_tone3", ["🙋🏾‍♀️"] = "woman_raising_hand_tone4", ["🙋🏿‍♀️"] = "woman_raising_hand_tone5", ["🙋‍♂️"] = "man_raising_hand", ["🙋🏻‍♂️"] = "man_raising_hand_tone1", ["🙋🏼‍♂️"] = "man_raising_hand_tone2", ["🙋🏽‍♂️"] = "man_raising_hand_tone3", ["🙋🏾‍♂️"] = "man_raising_hand_tone4", ["🙋🏿‍♂️"] = "man_raising_hand_tone5", ["🧏"] = "deaf_person", ["🧏🏻"] = "deaf_person_tone1", ["🧏🏼"] = "deaf_person_tone2", ["🧏🏽"] = "deaf_person_tone3", ["🧏🏾"] = "deaf_person_tone4", ["🧏🏿"] = "deaf_person_tone5", ["🧏‍♀️"] = "deaf_woman", ["🧏🏻‍♀️"] = "deaf_woman_tone1", ["🧏🏼‍♀️"] = "deaf_woman_tone2", ["🧏🏽‍♀️"] = "deaf_woman_tone3", ["🧏🏾‍♀️"] = "deaf_woman_tone4", ["🧏🏿‍♀️"] = "deaf_woman_tone5", ["🧏‍♂️"] = "deaf_man", ["🧏🏻‍♂️"] = "deaf_man_tone1", ["🧏🏼‍♂️"] = "deaf_man_tone2", ["🧏🏽‍♂️"] = "deaf_man_tone3", ["🧏🏾‍♂️"] = "deaf_man_tone4", ["🧏🏿‍♂️"] = "deaf_man_tone5", ["🤦"] = "person_facepalming", ["🤦🏻"] = "person_facepalming_tone1", ["🤦🏼"] = "person_facepalming_tone2", ["🤦🏽"] = "person_facepalming_tone3", ["🤦🏾"] = "person_facepalming_tone4", ["🤦🏿"] = "person_facepalming_tone5", ["🤦‍♀️"] = "woman_facepalming", ["🤦🏻‍♀️"] = "woman_facepalming_tone1", ["🤦🏼‍♀️"] = "woman_facepalming_tone2", ["🤦🏽‍♀️"] = "woman_facepalming_tone3", ["🤦🏾‍♀️"] = "woman_facepalming_tone4", ["🤦🏿‍♀️"] = "woman_facepalming_tone5", ["🤦‍♂️"] = "man_facepalming", ["🤦🏻‍♂️"] = "man_facepalming_tone1", ["🤦🏼‍♂️"] = "man_facepalming_tone2", ["🤦🏽‍♂️"] = "man_facepalming_tone3", ["🤦🏾‍♂️"] = "man_facepalming_tone4", ["🤦🏿‍♂️"] = "man_facepalming_tone5", ["🤷"] = "person_shrugging", ["🤷🏻"] = "person_shrugging_tone1", ["🤷🏼"] = "person_shrugging_tone2", ["🤷🏽"] = "person_shrugging_tone3", ["🤷🏾"] = "person_shrugging_tone4", ["🤷🏿"] = "person_shrugging_tone5", ["🤷‍♀️"] = "woman_shrugging", ["🤷🏻‍♀️"] = "woman_shrugging_tone1", ["🤷🏼‍♀️"] = "woman_shrugging_tone2", ["🤷🏽‍♀️"] = "woman_shrugging_tone3", ["🤷🏾‍♀️"] = "woman_shrugging_tone4", ["🤷🏿‍♀️"] = "woman_shrugging_tone5", ["🤷‍♂️"] = "man_shrugging", ["🤷🏻‍♂️"] = "man_shrugging_tone1", ["🤷🏼‍♂️"] = "man_shrugging_tone2", ["🤷🏽‍♂️"] = "man_shrugging_tone3", ["🤷🏾‍♂️"] = "man_shrugging_tone4", ["🤷🏿‍♂️"] = "man_shrugging_tone5", ["🙎"] = "person_pouting", ["🙎🏻"] = "person_pouting_tone1", ["🙎🏼"] = "person_pouting_tone2", ["🙎🏽"] = "person_pouting_tone3", ["🙎🏾"] = "person_pouting_tone4", ["🙎🏿"] = "person_pouting_tone5", ["🙎‍♀️"] = "woman_pouting", ["🙎🏻‍♀️"] = "woman_pouting_tone1", ["🙎🏼‍♀️"] = "woman_pouting_tone2", ["🙎🏽‍♀️"] = "woman_pouting_tone3", ["🙎🏾‍♀️"] = "woman_pouting_tone4", ["🙎🏿‍♀️"] = "woman_pouting_tone5", ["🙎‍♂️"] = "man_pouting", ["🙎🏻‍♂️"] = "man_pouting_tone1", ["🙎🏼‍♂️"] = "man_pouting_tone2", ["🙎🏽‍♂️"] = "man_pouting_tone3", ["🙎🏾‍♂️"] = "man_pouting_tone4", ["🙎🏿‍♂️"] = "man_pouting_tone5", ["🙍"] = "person_frowning", ["🙍🏻"] = "person_frowning_tone1", ["🙍🏼"] = "person_frowning_tone2", ["🙍🏽"] = "person_frowning_tone3", ["🙍🏾"] = "person_frowning_tone4", ["🙍🏿"] = "person_frowning_tone5", ["🙍‍♀️"] = "woman_frowning", ["🙍🏻‍♀️"] = "woman_frowning_tone1", ["🙍🏼‍♀️"] = "woman_frowning_tone2", ["🙍🏽‍♀️"] = "woman_frowning_tone3", ["🙍🏾‍♀️"] = "woman_frowning_tone4", ["🙍🏿‍♀️"] = "woman_frowning_tone5", ["🙍‍♂️"] = "man_frowning", ["🙍🏻‍♂️"] = "man_frowning_tone1", ["🙍🏼‍♂️"] = "man_frowning_tone2", ["🙍🏽‍♂️"] = "man_frowning_tone3", ["🙍🏾‍♂️"] = "man_frowning_tone4", ["🙍🏿‍♂️"] = "man_frowning_tone5", ["💇"] = "person_getting_haircut", ["💇🏻"] = "person_getting_haircut_tone1", ["💇🏼"] = "person_getting_haircut_tone2", ["💇🏽"] = "person_getting_haircut_tone3", ["💇🏾"] = "person_getting_haircut_tone4", ["💇🏿"] = "person_getting_haircut_tone5", ["💇‍♀️"] = "woman_getting_haircut", ["💇🏻‍♀️"] = "woman_getting_haircut_tone1", ["💇🏼‍♀️"] = "woman_getting_haircut_tone2", ["💇🏽‍♀️"] = "woman_getting_haircut_tone3", ["💇🏾‍♀️"] = "woman_getting_haircut_tone4", ["💇🏿‍♀️"] = "woman_getting_haircut_tone5", ["💇‍♂️"] = "man_getting_haircut", ["💇🏻‍♂️"] = "man_getting_haircut_tone1", ["💇🏼‍♂️"] = "man_getting_haircut_tone2", ["💇🏽‍♂️"] = "man_getting_haircut_tone3", ["💇🏾‍♂️"] = "man_getting_haircut_tone4", ["💇🏿‍♂️"] = "man_getting_haircut_tone5", ["💆"] = "person_getting_massage", ["💆🏻"] = "person_getting_massage_tone1", ["💆🏼"] = "person_getting_massage_tone2", ["💆🏽"] = "person_getting_massage_tone3", ["💆🏾"] = "person_getting_massage_tone4", ["💆🏿"] = "person_getting_massage_tone5", ["💆‍♀️"] = "woman_getting_face_massage", ["💆🏻‍♀️"] = "woman_getting_face_massage_tone1", ["💆🏼‍♀️"] = "woman_getting_face_massage_tone2", ["💆🏽‍♀️"] = "woman_getting_face_massage_tone3", ["💆🏾‍♀️"] = "woman_getting_face_massage_tone4", ["💆🏿‍♀️"] = "woman_getting_face_massage_tone5", ["💆‍♂️"] = "man_getting_face_massage", ["💆🏻‍♂️"] = "man_getting_face_massage_tone1", ["💆🏼‍♂️"] = "man_getting_face_massage_tone2", ["💆🏽‍♂️"] = "man_getting_face_massage_tone3", ["💆🏾‍♂️"] = "man_getting_face_massage_tone4", ["💆🏿‍♂️"] = "man_getting_face_massage_tone5", ["🧖"] = "person_in_steamy_room", ["🧖🏻"] = "person_in_steamy_room_tone1", ["🧖🏼"] = "person_in_steamy_room_tone2", ["🧖🏽"] = "person_in_steamy_room_tone3", ["🧖🏾"] = "person_in_steamy_room_tone4", ["🧖🏿"] = "person_in_steamy_room_tone5", ["🧖‍♀️"] = "woman_in_steamy_room", ["🧖🏻‍♀️"] = "woman_in_steamy_room_tone1", ["🧖🏼‍♀️"] = "woman_in_steamy_room_tone2", ["🧖🏽‍♀️"] = "woman_in_steamy_room_tone3", ["🧖🏾‍♀️"] = "woman_in_steamy_room_tone4", ["🧖🏿‍♀️"] = "woman_in_steamy_room_tone5", ["🧖‍♂️"] = "man_in_steamy_room", ["🧖🏻‍♂️"] = "man_in_steamy_room_tone1", ["🧖🏼‍♂️"] = "man_in_steamy_room_tone2", ["🧖🏽‍♂️"] = "man_in_steamy_room_tone3", ["🧖🏾‍♂️"] = "man_in_steamy_room_tone4", ["🧖🏿‍♂️"] = "man_in_steamy_room_tone5", ["💅"] = "nail_care", ["💅🏻"] = "nail_care_tone1", ["💅🏼"] = "nail_care_tone2", ["💅🏽"] = "nail_care_tone3", ["💅🏾"] = "nail_care_tone4", ["💅🏿"] = "nail_care_tone5", ["🤳"] = "selfie", ["🤳🏻"] = "selfie_tone1", ["🤳🏼"] = "selfie_tone2", ["🤳🏽"] = "selfie_tone3", ["🤳🏾"] = "selfie_tone4", ["🤳🏿"] = "selfie_tone5", ["💃"] = "dancer", ["💃🏻"] = "dancer_tone1", ["💃🏼"] = "dancer_tone2", ["💃🏽"] = "dancer_tone3", ["💃🏾"] = "dancer_tone4", ["💃🏿"] = "dancer_tone5", ["🕺"] = "man_dancing", ["🕺🏻"] = "man_dancing_tone1", ["🕺🏼"] = "man_dancing_tone2", ["🕺🏽"] = "man_dancing_tone3", ["🕺🏿"] = "man_dancing_tone5", ["🕺🏾"] = "man_dancing_tone4", ["👯"] = "people_with_bunny_ears_partying", ["👯‍♀️"] = "women_with_bunny_ears_partying", ["👯‍♂️"] = "men_with_bunny_ears_partying", ["🕴️"] = "levitate", ["🕴🏻"] = "levitate_tone1", ["🕴🏼"] = "levitate_tone2", ["🕴🏽"] = "levitate_tone3", ["🕴🏾"] = "levitate_tone4", ["🕴🏿"] = "levitate_tone5", ["🧑‍🦽"] = "person_in_manual_wheelchair", ["🧑🏻‍🦽"] = "person_in_manual_wheelchair_tone1", ["🧑🏼‍🦽"] = "person_in_manual_wheelchair_tone2", ["🧑🏽‍🦽"] = "person_in_manual_wheelchair_tone3", ["🧑🏾‍🦽"] = "person_in_manual_wheelchair_tone4", ["🧑🏿‍🦽"] = "person_in_manual_wheelchair_tone5", ["👩‍🦽"] = "woman_in_manual_wheelchair", ["👩🏻‍🦽"] = "woman_in_manual_wheelchair_tone1", ["👩🏼‍🦽"] = "woman_in_manual_wheelchair_tone2", ["👩🏽‍🦽"] = "woman_in_manual_wheelchair_tone3", ["👩🏾‍🦽"] = "woman_in_manual_wheelchair_tone4", ["👩🏿‍🦽"] = "woman_in_manual_wheelchair_tone5", ["👨‍🦽"] = "man_in_manual_wheelchair", ["👨🏻‍🦽"] = "man_in_manual_wheelchair_tone1", ["👨🏼‍🦽"] = "man_in_manual_wheelchair_tone2", ["👨🏽‍🦽"] = "man_in_manual_wheelchair_tone3", ["👨🏾‍🦽"] = "man_in_manual_wheelchair_tone4", ["👨🏿‍🦽"] = "man_in_manual_wheelchair_tone5", ["🧑‍🦼"] = "person_in_motorized_wheelchair", ["🧑🏻‍🦼"] = "person_in_motorized_wheelchair_tone1", ["🧑🏼‍🦼"] = "person_in_motorized_wheelchair_tone2", ["🧑🏽‍🦼"] = "person_in_motorized_wheelchair_tone3", ["🧑🏾‍🦼"] = "person_in_motorized_wheelchair_tone4", ["🧑🏿‍🦼"] = "person_in_motorized_wheelchair_tone5", ["👩‍🦼"] = "woman_in_motorized_wheelchair", ["👩🏻‍🦼"] = "woman_in_motorized_wheelchair_tone1", ["👩🏼‍🦼"] = "woman_in_motorized_wheelchair_tone2", ["👩🏽‍🦼"] = "woman_in_motorized_wheelchair_tone3", ["👩🏾‍🦼"] = "woman_in_motorized_wheelchair_tone4", ["👩🏿‍🦼"] = "woman_in_motorized_wheelchair_tone5", ["👨‍🦼"] = "man_in_motorized_wheelchair", ["👨🏻‍🦼"] = "man_in_motorized_wheelchair_tone1", ["👨🏼‍🦼"] = "man_in_motorized_wheelchair_tone2", ["👨🏽‍🦼"] = "man_in_motorized_wheelchair_tone3", ["👨🏾‍🦼"] = "man_in_motorized_wheelchair_tone4", ["👨🏿‍🦼"] = "man_in_motorized_wheelchair_tone5", ["🚶"] = "person_walking", ["🚶🏻"] = "person_walking_tone1", ["🚶🏼"] = "person_walking_tone2", ["🚶🏽"] = "person_walking_tone3", ["🚶🏾"] = "person_walking_tone4", ["🚶🏿"] = "person_walking_tone5", ["🚶‍♀️"] = "woman_walking", ["🚶🏻‍♀️"] = "woman_walking_tone1", ["🚶🏼‍♀️"] = "woman_walking_tone2", ["🚶🏽‍♀️"] = "woman_walking_tone3", ["🚶🏾‍♀️"] = "woman_walking_tone4", ["🚶🏿‍♀️"] = "woman_walking_tone5", ["🚶‍♂️"] = "man_walking", ["🚶🏻‍♂️"] = "man_walking_tone1", ["🚶🏼‍♂️"] = "man_walking_tone2", ["🚶🏽‍♂️"] = "man_walking_tone3", ["🚶🏾‍♂️"] = "man_walking_tone4", ["🚶🏿‍♂️"] = "man_walking_tone5", ["🧑‍🦯"] = "person_with_probing_cane", ["🧑🏻‍🦯"] = "person_with_probing_cane_tone1", ["🧑🏼‍🦯"] = "person_with_probing_cane_tone2", ["🧑🏽‍🦯"] = "person_with_probing_cane_tone3", ["🧑🏾‍🦯"] = "person_with_probing_cane_tone4", ["🧑🏿‍🦯"] = "person_with_probing_cane_tone5", ["👩‍🦯"] = "woman_with_probing_cane", ["👩🏻‍🦯"] = "woman_with_probing_cane_tone1", ["👩🏼‍🦯"] = "woman_with_probing_cane_tone2", ["👩🏽‍🦯"] = "woman_with_probing_cane_tone3", ["👩🏾‍🦯"] = "woman_with_probing_cane_tone4", ["👩🏿‍🦯"] = "woman_with_probing_cane_tone5", ["👨‍🦯"] = "man_with_probing_cane", ["👨🏻‍🦯"] = "man_with_probing_cane_tone1", ["👨🏽‍🦯"] = "man_with_probing_cane_tone3", ["👨🏼‍🦯"] = "man_with_probing_cane_tone2", ["👨🏾‍🦯"] = "man_with_probing_cane_tone4", ["👨🏿‍🦯"] = "man_with_probing_cane_tone5", ["🧎"] = "person_kneeling", ["🧎🏻"] = "person_kneeling_tone1", ["🧎🏼"] = "person_kneeling_tone2", ["🧎🏽"] = "person_kneeling_tone3", ["🧎🏾"] = "person_kneeling_tone4", ["🧎🏿"] = "person_kneeling_tone5", ["🧎‍♀️"] = "woman_kneeling", ["🧎🏻‍♀️"] = "woman_kneeling_tone1", ["🧎🏼‍♀️"] = "woman_kneeling_tone2", ["🧎🏽‍♀️"] = "woman_kneeling_tone3", ["🧎🏾‍♀️"] = "woman_kneeling_tone4", ["🧎🏿‍♀️"] = "woman_kneeling_tone5", ["🧎‍♂️"] = "man_kneeling", ["🧎🏻‍♂️"] = "man_kneeling_tone1", ["🧎🏼‍♂️"] = "man_kneeling_tone2", ["🧎🏽‍♂️"] = "man_kneeling_tone3", ["🧎🏾‍♂️"] = "man_kneeling_tone4", ["🧎🏿‍♂️"] = "man_kneeling_tone5", ["🏃"] = "person_running", ["🏃🏻"] = "person_running_tone1", ["🏃🏼"] = "person_running_tone2", ["🏃🏽"] = "person_running_tone3", ["🏃🏾"] = "person_running_tone4", ["🏃🏿"] = "person_running_tone5", ["🏃‍♀️"] = "woman_running", ["🏃🏻‍♀️"] = "woman_running_tone1", ["🏃🏼‍♀️"] = "woman_running_tone2", ["🏃🏽‍♀️"] = "woman_running_tone3", ["🏃🏾‍♀️"] = "woman_running_tone4", ["🏃🏿‍♀️"] = "woman_running_tone5", ["🏃‍♂️"] = "man_running", ["🏃🏻‍♂️"] = "man_running_tone1", ["🏃🏼‍♂️"] = "man_running_tone2", ["🏃🏽‍♂️"] = "man_running_tone3", ["🏃🏾‍♂️"] = "man_running_tone4", ["🏃🏿‍♂️"] = "man_running_tone5", ["🧍"] = "person_standing", ["🧍🏻"] = "person_standing_tone1", ["🧍🏼"] = "person_standing_tone2", ["🧍🏽"] = "person_standing_tone3", ["🧍🏾"] = "person_standing_tone4", ["🧍🏿"] = "person_standing_tone5", ["🧍‍♀️"] = "woman_standing", ["🧍🏻‍♀️"] = "woman_standing_tone1", ["🧍🏼‍♀️"] = "woman_standing_tone2", ["🧍🏽‍♀️"] = "woman_standing_tone3", ["🧍🏾‍♀️"] = "woman_standing_tone4", ["🧍🏿‍♀️"] = "woman_standing_tone5", ["🧍‍♂️"] = "man_standing", ["🧍🏻‍♂️"] = "man_standing_tone1", ["🧍🏼‍♂️"] = "man_standing_tone2", ["🧍🏽‍♂️"] = "man_standing_tone3", ["🧍🏾‍♂️"] = "man_standing_tone4", ["🧍🏿‍♂️"] = "man_standing_tone5", ["🧑‍🤝‍🧑"] = "people_holding_hands", ["🧑🏻‍🤝‍🧑🏻"] = "people_holding_hands_tone1", ["🧑🏻‍🤝‍🧑🏼"] = "people_holding_hands_tone1_tone2", ["🧑🏻‍🤝‍🧑🏽"] = "people_holding_hands_tone1_tone3", ["🧑🏻‍🤝‍🧑🏾"] = "people_holding_hands_tone1_tone4", ["🧑🏻‍🤝‍🧑🏿"] = "people_holding_hands_tone1_tone5", ["🧑🏼‍🤝‍🧑🏻"] = "people_holding_hands_tone2_tone1", ["🧑🏼‍🤝‍🧑🏼"] = "people_holding_hands_tone2", ["🧑🏼‍🤝‍🧑🏽"] = "people_holding_hands_tone2_tone3", ["🧑🏼‍🤝‍🧑🏾"] = "people_holding_hands_tone2_tone4", ["🧑🏼‍🤝‍🧑🏿"] = "people_holding_hands_tone2_tone5", ["🧑🏽‍🤝‍🧑🏻"] = "people_holding_hands_tone3_tone1", ["🧑🏽‍🤝‍🧑🏼"] = "people_holding_hands_tone3_tone2", ["🧑🏽‍🤝‍🧑🏽"] = "people_holding_hands_tone3", ["🧑🏽‍🤝‍🧑🏾"] = "people_holding_hands_tone3_tone4", ["🧑🏽‍🤝‍🧑🏿"] = "people_holding_hands_tone3_tone5", ["🧑🏾‍🤝‍🧑🏻"] = "people_holding_hands_tone4_tone1", ["🧑🏾‍🤝‍🧑🏼"] = "people_holding_hands_tone4_tone2", ["🧑🏾‍🤝‍🧑🏽"] = "people_holding_hands_tone4_tone3", ["🧑🏾‍🤝‍🧑🏾"] = "people_holding_hands_tone4", ["🧑🏾‍🤝‍🧑🏿"] = "people_holding_hands_tone4_tone5", ["🧑🏿‍🤝‍🧑🏻"] = "people_holding_hands_tone5_tone1", ["🧑🏿‍🤝‍🧑🏼"] = "people_holding_hands_tone5_tone2", ["🧑🏿‍🤝‍🧑🏽"] = "people_holding_hands_tone5_tone3", ["🧑🏿‍🤝‍🧑🏾"] = "people_holding_hands_tone5_tone4", ["🧑🏿‍🤝‍🧑🏿"] = "people_holding_hands_tone5", ["👫"] = "couple", ["👫🏻"] = "woman_and_man_holding_hands_tone1", ["👩🏻‍🤝‍👨🏼"] = "woman_and_man_holding_hands_tone1_tone2", ["👩🏻‍🤝‍👨🏽"] = "woman_and_man_holding_hands_tone1_tone3", ["👩🏻‍🤝‍👨🏾"] = "woman_and_man_holding_hands_tone1_tone4", ["👩🏻‍🤝‍👨🏿"] = "woman_and_man_holding_hands_tone1_tone5", ["👩🏼‍🤝‍👨🏻"] = "woman_and_man_holding_hands_tone2_tone1", ["👫🏼"] = "woman_and_man_holding_hands_tone2", ["👩🏼‍🤝‍👨🏽"] = "woman_and_man_holding_hands_tone2_tone3", ["👩🏼‍🤝‍👨🏾"] = "woman_and_man_holding_hands_tone2_tone4", ["👩🏼‍🤝‍👨🏿"] = "woman_and_man_holding_hands_tone2_tone5", ["👩🏽‍🤝‍👨🏻"] = "woman_and_man_holding_hands_tone3_tone1", ["👩🏽‍🤝‍👨🏼"] = "woman_and_man_holding_hands_tone3_tone2", ["👫🏽"] = "woman_and_man_holding_hands_tone3", ["👩🏽‍🤝‍👨🏾"] = "woman_and_man_holding_hands_tone3_tone4", ["👩🏽‍🤝‍👨🏿"] = "woman_and_man_holding_hands_tone3_tone5", ["👩🏾‍🤝‍👨🏻"] = "woman_and_man_holding_hands_tone4_tone1", ["👩🏾‍🤝‍👨🏼"] = "woman_and_man_holding_hands_tone4_tone2", ["👩🏾‍🤝‍👨🏽"] = "woman_and_man_holding_hands_tone4_tone3", ["👫🏾"] = "woman_and_man_holding_hands_tone4", ["👩🏾‍🤝‍👨🏿"] = "woman_and_man_holding_hands_tone4_tone5", ["👩🏿‍🤝‍👨🏻"] = "woman_and_man_holding_hands_tone5_tone1", ["👩🏿‍🤝‍👨🏼"] = "woman_and_man_holding_hands_tone5_tone2", ["👩🏿‍🤝‍👨🏽"] = "woman_and_man_holding_hands_tone5_tone3", ["👩🏿‍🤝‍👨🏾"] = "woman_and_man_holding_hands_tone5_tone4", ["👫🏿"] = "woman_and_man_holding_hands_tone5", ["👭"] = "two_women_holding_hands", ["👭🏻"] = "women_holding_hands_tone1", ["👩🏻‍🤝‍👩🏼"] = "women_holding_hands_tone1_tone2", ["👩🏻‍🤝‍👩🏽"] = "women_holding_hands_tone1_tone3", ["👩🏻‍🤝‍👩🏾"] = "women_holding_hands_tone1_tone4", ["👩🏻‍🤝‍👩🏿"] = "women_holding_hands_tone1_tone5", ["👩🏼‍🤝‍👩🏻"] = "women_holding_hands_tone2_tone1", ["👭🏼"] = "women_holding_hands_tone2", ["👩🏼‍🤝‍👩🏽"] = "women_holding_hands_tone2_tone3", ["👩🏼‍🤝‍👩🏾"] = "women_holding_hands_tone2_tone4", ["👩🏼‍🤝‍👩🏿"] = "women_holding_hands_tone2_tone5", ["👩🏽‍🤝‍👩🏻"] = "women_holding_hands_tone3_tone1", ["👩🏽‍🤝‍👩🏼"] = "women_holding_hands_tone3_tone2", ["👭🏽"] = "women_holding_hands_tone3", ["👩🏽‍🤝‍👩🏾"] = "women_holding_hands_tone3_tone4", ["👩🏽‍🤝‍👩🏿"] = "women_holding_hands_tone3_tone5", ["👩🏾‍🤝‍👩🏻"] = "women_holding_hands_tone4_tone1", ["👩🏾‍🤝‍👩🏼"] = "women_holding_hands_tone4_tone2", ["👩🏾‍🤝‍👩🏽"] = "women_holding_hands_tone4_tone3", ["👭🏾"] = "women_holding_hands_tone4", ["👩🏾‍🤝‍👩🏿"] = "women_holding_hands_tone4_tone5", ["👩🏿‍🤝‍👩🏻"] = "women_holding_hands_tone5_tone1", ["👩🏿‍🤝‍👩🏼"] = "women_holding_hands_tone5_tone2", ["👩🏿‍🤝‍👩🏽"] = "women_holding_hands_tone5_tone3", ["👩🏿‍🤝‍👩🏾"] = "women_holding_hands_tone5_tone4", ["👭🏿"] = "women_holding_hands_tone5", ["👬"] = "two_men_holding_hands", ["👬🏻"] = "men_holding_hands_tone1", ["👨🏻‍🤝‍👨🏼"] = "men_holding_hands_tone1_tone2", ["👨🏻‍🤝‍👨🏽"] = "men_holding_hands_tone1_tone3", ["👨🏻‍🤝‍👨🏾"] = "men_holding_hands_tone1_tone4", ["👨🏻‍🤝‍👨🏿"] = "men_holding_hands_tone1_tone5", ["👨🏼‍🤝‍👨🏻"] = "men_holding_hands_tone2_tone1", ["👬🏼"] = "men_holding_hands_tone2", ["👨🏼‍🤝‍👨🏽"] = "men_holding_hands_tone2_tone3", ["👨🏼‍🤝‍👨🏾"] = "men_holding_hands_tone2_tone4", ["👨🏼‍🤝‍👨🏿"] = "men_holding_hands_tone2_tone5", ["👨🏽‍🤝‍👨🏻"] = "men_holding_hands_tone3_tone1", ["👨🏽‍🤝‍👨🏼"] = "men_holding_hands_tone3_tone2", ["👬🏽"] = "men_holding_hands_tone3", ["👨🏽‍🤝‍👨🏾"] = "men_holding_hands_tone3_tone4", ["👨🏽‍🤝‍👨🏿"] = "men_holding_hands_tone3_tone5", ["👨🏾‍🤝‍👨🏻"] = "men_holding_hands_tone4_tone1", ["👨🏾‍🤝‍👨🏼"] = "men_holding_hands_tone4_tone2", ["👨🏾‍🤝‍👨🏽"] = "men_holding_hands_tone4_tone3", ["👬🏾"] = "men_holding_hands_tone4", ["👨🏾‍🤝‍👨🏿"] = "men_holding_hands_tone4_tone5", ["👨🏿‍🤝‍👨🏻"] = "men_holding_hands_tone5_tone1", ["👨🏿‍🤝‍👨🏼"] = "men_holding_hands_tone5_tone2", ["👨🏿‍🤝‍👨🏽"] = "men_holding_hands_tone5_tone3", ["👨🏿‍🤝‍👨🏾"] = "men_holding_hands_tone5_tone4", ["👬🏿"] = "men_holding_hands_tone5", ["💑"] = "couple_with_heart", ["💑🏻"] = "couple_with_heart_tone1", ["🧑🏻‍❤️‍🧑🏼"] = "couple_with_heart_person_person_tone1_tone2", ["🧑🏻‍❤️‍🧑🏽"] = "couple_with_heart_person_person_tone1_tone3", ["🧑🏻‍❤️‍🧑🏾"] = "couple_with_heart_person_person_tone1_tone4", ["🧑🏻‍❤️‍🧑🏿"] = "couple_with_heart_person_person_tone1_tone5", ["🧑🏼‍❤️‍🧑🏻"] = "couple_with_heart_person_person_tone2_tone1", ["💑🏼"] = "couple_with_heart_tone2", ["🧑🏼‍❤️‍🧑🏽"] = "couple_with_heart_person_person_tone2_tone3", ["🧑🏼‍❤️‍🧑🏾"] = "couple_with_heart_person_person_tone2_tone4", ["🧑🏼‍❤️‍🧑🏿"] = "couple_with_heart_person_person_tone2_tone5", ["🧑🏽‍❤️‍🧑🏻"] = "couple_with_heart_person_person_tone3_tone1", ["🧑🏽‍❤️‍🧑🏼"] = "couple_with_heart_person_person_tone3_tone2", ["💑🏽"] = "couple_with_heart_tone3", ["🧑🏽‍❤️‍🧑🏾"] = "couple_with_heart_person_person_tone3_tone4", ["🧑🏽‍❤️‍🧑🏿"] = "couple_with_heart_person_person_tone3_tone5", ["🧑🏾‍❤️‍🧑🏻"] = "couple_with_heart_person_person_tone4_tone1", ["🧑🏾‍❤️‍🧑🏼"] = "couple_with_heart_person_person_tone4_tone2", ["🧑🏾‍❤️‍🧑🏽"] = "couple_with_heart_person_person_tone4_tone3", ["💑🏾"] = "couple_with_heart_tone4", ["🧑🏾‍❤️‍🧑🏿"] = "couple_with_heart_person_person_tone4_tone5", ["🧑🏿‍❤️‍🧑🏻"] = "couple_with_heart_person_person_tone5_tone1", ["🧑🏿‍❤️‍🧑🏼"] = "couple_with_heart_person_person_tone5_tone2", ["🧑🏿‍❤️‍🧑🏽"] = "couple_with_heart_person_person_tone5_tone3", ["🧑🏿‍❤️‍🧑🏾"] = "couple_with_heart_person_person_tone5_tone4", ["💑🏿"] = "couple_with_heart_tone5", ["👩‍❤️‍👨"] = "couple_with_heart_woman_man", ["👩🏻‍❤️‍👨🏻"] = "couple_with_heart_woman_man_tone1", ["👩🏻‍❤️‍👨🏼"] = "couple_with_heart_woman_man_tone1_tone2", ["👩🏻‍❤️‍👨🏽"] = "couple_with_heart_woman_man_tone1_tone3", ["👩🏻‍❤️‍👨🏾"] = "couple_with_heart_woman_man_tone1_tone4", ["👩🏻‍❤️‍👨🏿"] = "couple_with_heart_woman_man_tone1_tone5", ["👩🏼‍❤️‍👨🏻"] = "couple_with_heart_woman_man_tone2_tone1", ["👩🏼‍❤️‍👨🏼"] = "couple_with_heart_woman_man_tone2", ["👩🏼‍❤️‍👨🏽"] = "couple_with_heart_woman_man_tone2_tone3", ["👩🏼‍❤️‍👨🏾"] = "couple_with_heart_woman_man_tone2_tone4", ["👩🏼‍❤️‍👨🏿"] = "couple_with_heart_woman_man_tone2_tone5", ["👩🏽‍❤️‍👨🏻"] = "couple_with_heart_woman_man_tone3_tone1", ["👩🏽‍❤️‍👨🏼"] = "couple_with_heart_woman_man_tone3_tone2", ["👩🏽‍❤️‍👨🏽"] = "couple_with_heart_woman_man_tone3", ["👩🏽‍❤️‍👨🏾"] = "couple_with_heart_woman_man_tone3_tone4", ["👩🏽‍❤️‍👨🏿"] = "couple_with_heart_woman_man_tone3_tone5", ["👩🏾‍❤️‍👨🏻"] = "couple_with_heart_woman_man_tone4_tone1", ["👩🏾‍❤️‍👨🏼"] = "couple_with_heart_woman_man_tone4_tone2", ["👩🏾‍❤️‍👨🏽"] = "couple_with_heart_woman_man_tone4_tone3", ["👩🏾‍❤️‍👨🏾"] = "couple_with_heart_woman_man_tone4", ["👩🏾‍❤️‍👨🏿"] = "couple_with_heart_woman_man_tone4_tone5", ["👩🏿‍❤️‍👨🏻"] = "couple_with_heart_woman_man_tone5_tone1", ["👩🏿‍❤️‍👨🏼"] = "couple_with_heart_woman_man_tone5_tone2", ["👩🏿‍❤️‍👨🏽"] = "couple_with_heart_woman_man_tone5_tone3", ["👩🏿‍❤️‍👨🏾"] = "couple_with_heart_woman_man_tone5_tone4", ["👩🏿‍❤️‍👨🏿"] = "couple_with_heart_woman_man_tone5", ["👩‍❤️‍👩"] = "couple_ww", ["👩🏻‍❤️‍👩🏻"] = "couple_with_heart_woman_woman_tone1", ["👩🏻‍❤️‍👩🏼"] = "couple_with_heart_woman_woman_tone1_tone2", ["👩🏻‍❤️‍👩🏽"] = "couple_with_heart_woman_woman_tone1_tone3", ["👩🏻‍❤️‍👩🏾"] = "couple_with_heart_woman_woman_tone1_tone4", ["👩🏻‍❤️‍👩🏿"] = "couple_with_heart_woman_woman_tone1_tone5", ["👩🏼‍❤️‍👩🏻"] = "couple_with_heart_woman_woman_tone2_tone1", ["👩🏼‍❤️‍👩🏼"] = "couple_with_heart_woman_woman_tone2", ["👩🏼‍❤️‍👩🏽"] = "couple_with_heart_woman_woman_tone2_tone3", ["👩🏼‍❤️‍👩🏾"] = "couple_with_heart_woman_woman_tone2_tone4", ["👩🏼‍❤️‍👩🏿"] = "couple_with_heart_woman_woman_tone2_tone5", ["👩🏽‍❤️‍👩🏻"] = "couple_with_heart_woman_woman_tone3_tone1", ["👩🏽‍❤️‍👩🏼"] = "couple_with_heart_woman_woman_tone3_tone2", ["👩🏽‍❤️‍👩🏽"] = "couple_with_heart_woman_woman_tone3", ["👩🏽‍❤️‍👩🏾"] = "couple_with_heart_woman_woman_tone3_tone4", ["👩🏽‍❤️‍👩🏿"] = "couple_with_heart_woman_woman_tone3_tone5", ["👩🏾‍❤️‍👩🏻"] = "couple_with_heart_woman_woman_tone4_tone1", ["👩🏾‍❤️‍👩🏼"] = "couple_with_heart_woman_woman_tone4_tone2", ["👩🏾‍❤️‍👩🏽"] = "couple_with_heart_woman_woman_tone4_tone3", ["👩🏾‍❤️‍👩🏾"] = "couple_with_heart_woman_woman_tone4", ["👩🏾‍❤️‍👩🏿"] = "couple_with_heart_woman_woman_tone4_tone5", ["👩🏿‍❤️‍👩🏻"] = "couple_with_heart_woman_woman_tone5_tone1", ["👩🏿‍❤️‍👩🏼"] = "couple_with_heart_woman_woman_tone5_tone2", ["👩🏿‍❤️‍👩🏽"] = "couple_with_heart_woman_woman_tone5_tone3", ["👩🏿‍❤️‍👩🏾"] = "couple_with_heart_woman_woman_tone5_tone4", ["👩🏿‍❤️‍👩🏿"] = "couple_with_heart_woman_woman_tone5", ["👨‍❤️‍👨"] = "couple_mm", ["👨🏻‍❤️‍👨🏻"] = "couple_with_heart_man_man_tone1", ["👨🏻‍❤️‍👨🏼"] = "couple_with_heart_man_man_tone1_tone2", ["👨🏻‍❤️‍👨🏽"] = "couple_with_heart_man_man_tone1_tone3", ["👨🏻‍❤️‍👨🏾"] = "couple_with_heart_man_man_tone1_tone4", ["👨🏻‍❤️‍👨🏿"] = "couple_with_heart_man_man_tone1_tone5", ["👨🏼‍❤️‍👨🏻"] = "couple_with_heart_man_man_tone2_tone1", ["👨🏼‍❤️‍👨🏼"] = "couple_with_heart_man_man_tone2", ["👨🏼‍❤️‍👨🏽"] = "couple_with_heart_man_man_tone2_tone3", ["👨🏼‍❤️‍👨🏾"] = "couple_with_heart_man_man_tone2_tone4", ["👨🏼‍❤️‍👨🏿"] = "couple_with_heart_man_man_tone2_tone5", ["👨🏽‍❤️‍👨🏻"] = "couple_with_heart_man_man_tone3_tone1", ["👨🏽‍❤️‍👨🏼"] = "couple_with_heart_man_man_tone3_tone2", ["👨🏽‍❤️‍👨🏽"] = "couple_with_heart_man_man_tone3", ["👨🏽‍❤️‍👨🏾"] = "couple_with_heart_man_man_tone3_tone4", ["👨🏽‍❤️‍👨🏿"] = "couple_with_heart_man_man_tone3_tone5", ["👨🏾‍❤️‍👨🏻"] = "couple_with_heart_man_man_tone4_tone1", ["👨🏾‍❤️‍👨🏼"] = "couple_with_heart_man_man_tone4_tone2", ["👨🏾‍❤️‍👨🏽"] = "couple_with_heart_man_man_tone4_tone3", ["👨🏾‍❤️‍👨🏾"] = "couple_with_heart_man_man_tone4", ["👨🏾‍❤️‍👨🏿"] = "couple_with_heart_man_man_tone4_tone5", ["👨🏿‍❤️‍👨🏻"] = "couple_with_heart_man_man_tone5_tone1", ["👨🏿‍❤️‍👨🏼"] = "couple_with_heart_man_man_tone5_tone2", ["👨🏿‍❤️‍👨🏽"] = "couple_with_heart_man_man_tone5_tone3", ["👨🏿‍❤️‍👨🏾"] = "couple_with_heart_man_man_tone5_tone4", ["👨🏿‍❤️‍👨🏿"] = "couple_with_heart_man_man_tone5", ["💏"] = "couplekiss", ["🧑🏿‍❤️‍💋‍🧑🏾"] = "kiss_person_person_tone5_tone4", ["💏🏻"] = "kiss_tone1", ["🧑🏻‍❤️‍💋‍🧑🏼"] = "kiss_person_person_tone1_tone2", ["🧑🏻‍❤️‍💋‍🧑🏽"] = "kiss_person_person_tone1_tone3", ["🧑🏻‍❤️‍💋‍🧑🏾"] = "kiss_person_person_tone1_tone4", ["🧑🏻‍❤️‍💋‍🧑🏿"] = "kiss_person_person_tone1_tone5", ["🧑🏼‍❤️‍💋‍🧑🏻"] = "kiss_person_person_tone2_tone1", ["💏🏼"] = "kiss_tone2", ["🧑🏼‍❤️‍💋‍🧑🏽"] = "kiss_person_person_tone2_tone3", ["🧑🏼‍❤️‍💋‍🧑🏾"] = "kiss_person_person_tone2_tone4", ["🧑🏼‍❤️‍💋‍🧑🏿"] = "kiss_person_person_tone2_tone5", ["🧑🏽‍❤️‍💋‍🧑🏻"] = "kiss_person_person_tone3_tone1", ["🧑🏽‍❤️‍💋‍🧑🏼"] = "kiss_person_person_tone3_tone2", ["💏🏽"] = "kiss_tone3", ["🧑🏽‍❤️‍💋‍🧑🏾"] = "kiss_person_person_tone3_tone4", ["🧑🏽‍❤️‍💋‍🧑🏿"] = "kiss_person_person_tone3_tone5", ["🧑🏾‍❤️‍💋‍🧑🏻"] = "kiss_person_person_tone4_tone1", ["🧑🏾‍❤️‍💋‍🧑🏼"] = "kiss_person_person_tone4_tone2", ["🧑🏾‍❤️‍💋‍🧑🏽"] = "kiss_person_person_tone4_tone3", ["💏🏾"] = "kiss_tone4", ["🧑🏾‍❤️‍💋‍🧑🏿"] = "kiss_person_person_tone4_tone5", ["🧑🏿‍❤️‍💋‍🧑🏻"] = "kiss_person_person_tone5_tone1", ["🧑🏿‍❤️‍💋‍🧑🏼"] = "kiss_person_person_tone5_tone2", ["🧑🏿‍❤️‍💋‍🧑🏽"] = "kiss_person_person_tone5_tone3", ["💏🏿"] = "kiss_tone5", ["👩‍❤️‍💋‍👨"] = "kiss_woman_man", ["👩🏻‍❤️‍💋‍👨🏻"] = "kiss_woman_man_tone1", ["👩🏻‍❤️‍💋‍👨🏼"] = "kiss_woman_man_tone1_tone2", ["👩🏻‍❤️‍💋‍👨🏽"] = "kiss_woman_man_tone1_tone3", ["👩🏻‍❤️‍💋‍👨🏾"] = "kiss_woman_man_tone1_tone4", ["👩🏻‍❤️‍💋‍👨🏿"] = "kiss_woman_man_tone1_tone5", ["👩🏼‍❤️‍💋‍👨🏻"] = "kiss_woman_man_tone2_tone1", ["👩🏼‍❤️‍💋‍👨🏼"] = "kiss_woman_man_tone2", ["👩🏼‍❤️‍💋‍👨🏽"] = "kiss_woman_man_tone2_tone3", ["👩🏼‍❤️‍💋‍👨🏾"] = "kiss_woman_man_tone2_tone4", ["👩🏼‍❤️‍💋‍👨🏿"] = "kiss_woman_man_tone2_tone5", ["👩🏽‍❤️‍💋‍👨🏻"] = "kiss_woman_man_tone3_tone1", ["👩🏽‍❤️‍💋‍👨🏼"] = "kiss_woman_man_tone3_tone2", ["👩🏽‍❤️‍💋‍👨🏽"] = "kiss_woman_man_tone3", ["👩🏽‍❤️‍💋‍👨🏾"] = "kiss_woman_man_tone3_tone4", ["👩🏽‍❤️‍💋‍👨🏿"] = "kiss_woman_man_tone3_tone5", ["👩🏾‍❤️‍💋‍👨🏻"] = "kiss_woman_man_tone4_tone1", ["👩🏾‍❤️‍💋‍👨🏼"] = "kiss_woman_man_tone4_tone2", ["👩🏾‍❤️‍💋‍👨🏽"] = "kiss_woman_man_tone4_tone3", ["👩🏾‍❤️‍💋‍👨🏾"] = "kiss_woman_man_tone4", ["👩🏾‍❤️‍💋‍👨🏿"] = "kiss_woman_man_tone4_tone5", ["👩🏿‍❤️‍💋‍👨🏻"] = "kiss_woman_man_tone5_tone1", ["👩🏿‍❤️‍💋‍👨🏼"] = "kiss_woman_man_tone5_tone2", ["👩🏿‍❤️‍💋‍👨🏽"] = "kiss_woman_man_tone5_tone3", ["👩🏿‍❤️‍💋‍👨🏾"] = "kiss_woman_man_tone5_tone4", ["👩🏿‍❤️‍💋‍👨🏿"] = "kiss_woman_man_tone5", ["👩‍❤️‍💋‍👩"] = "kiss_ww", ["👩🏻‍❤️‍💋‍👩🏻"] = "kiss_woman_woman_tone1", ["👩🏻‍❤️‍💋‍👩🏼"] = "kiss_woman_woman_tone1_tone2", ["👩🏻‍❤️‍💋‍👩🏽"] = "kiss_woman_woman_tone1_tone3", ["👩🏻‍❤️‍💋‍👩🏾"] = "kiss_woman_woman_tone1_tone4", ["👩🏻‍❤️‍💋‍👩🏿"] = "kiss_woman_woman_tone1_tone5", ["👩🏼‍❤️‍💋‍👩🏻"] = "kiss_woman_woman_tone2_tone1", ["👩🏼‍❤️‍💋‍👩🏼"] = "kiss_woman_woman_tone2", ["👩🏼‍❤️‍💋‍👩🏽"] = "kiss_woman_woman_tone2_tone3", ["👩🏼‍❤️‍💋‍👩🏾"] = "kiss_woman_woman_tone2_tone4", ["👩🏼‍❤️‍💋‍👩🏿"] = "kiss_woman_woman_tone2_tone5", ["👩🏽‍❤️‍💋‍👩🏻"] = "kiss_woman_woman_tone3_tone1", ["👩🏽‍❤️‍💋‍👩🏼"] = "kiss_woman_woman_tone3_tone2", ["👩🏽‍❤️‍💋‍👩🏽"] = "kiss_woman_woman_tone3", ["👩🏽‍❤️‍💋‍👩🏾"] = "kiss_woman_woman_tone3_tone4", ["👩🏽‍❤️‍💋‍👩🏿"] = "kiss_woman_woman_tone3_tone5", ["👩🏾‍❤️‍💋‍👩🏻"] = "kiss_woman_woman_tone4_tone1", ["👩🏾‍❤️‍💋‍👩🏼"] = "kiss_woman_woman_tone4_tone2", ["👩🏾‍❤️‍💋‍👩🏽"] = "kiss_woman_woman_tone4_tone3", ["👩🏾‍❤️‍💋‍👩🏾"] = "kiss_woman_woman_tone4", ["👩🏾‍❤️‍💋‍👩🏿"] = "kiss_woman_woman_tone4_tone5", ["👩🏿‍❤️‍💋‍👩🏻"] = "kiss_woman_woman_tone5_tone1", ["👩🏿‍❤️‍💋‍👩🏼"] = "kiss_woman_woman_tone5_tone2", ["👩🏿‍❤️‍💋‍👩🏽"] = "kiss_woman_woman_tone5_tone3", ["👩🏿‍❤️‍💋‍👩🏾"] = "kiss_woman_woman_tone5_tone4", ["👩🏿‍❤️‍💋‍👩🏿"] = "kiss_woman_woman_tone5", ["👨‍❤️‍💋‍👨"] = "kiss_mm", ["👨🏻‍❤️‍💋‍👨🏻"] = "kiss_man_man_tone1", ["👨🏻‍❤️‍💋‍👨🏼"] = "kiss_man_man_tone1_tone2", ["👨🏻‍❤️‍💋‍👨🏽"] = "kiss_man_man_tone1_tone3", ["👨🏻‍❤️‍💋‍👨🏾"] = "kiss_man_man_tone1_tone4", ["👨🏻‍❤️‍💋‍👨🏿"] = "kiss_man_man_tone1_tone5", ["👨🏼‍❤️‍💋‍👨🏻"] = "kiss_man_man_tone2_tone1", ["👨🏼‍❤️‍💋‍👨🏼"] = "kiss_man_man_tone2", ["👨🏼‍❤️‍💋‍👨🏽"] = "kiss_man_man_tone2_tone3", ["👨🏼‍❤️‍💋‍👨🏾"] = "kiss_man_man_tone2_tone4", ["👨🏼‍❤️‍💋‍👨🏿"] = "kiss_man_man_tone2_tone5", ["👨🏽‍❤️‍💋‍👨🏻"] = "kiss_man_man_tone3_tone1", ["👨🏽‍❤️‍💋‍👨🏼"] = "kiss_man_man_tone3_tone2", ["👨🏽‍❤️‍💋‍👨🏽"] = "kiss_man_man_tone3", ["👨🏽‍❤️‍💋‍👨🏾"] = "kiss_man_man_tone3_tone4", ["👨🏽‍❤️‍💋‍👨🏿"] = "kiss_man_man_tone3_tone5", ["👨🏾‍❤️‍💋‍👨🏻"] = "kiss_man_man_tone4_tone1", ["👨🏾‍❤️‍💋‍👨🏼"] = "kiss_man_man_tone4_tone2", ["👨🏾‍❤️‍💋‍👨🏽"] = "kiss_man_man_tone4_tone3", ["👨🏾‍❤️‍💋‍👨🏾"] = "kiss_man_man_tone4", ["👨🏾‍❤️‍💋‍👨🏿"] = "kiss_man_man_tone4_tone5", ["👨🏿‍❤️‍💋‍👨🏻"] = "kiss_man_man_tone5_tone1", ["👨🏿‍❤️‍💋‍👨🏼"] = "kiss_man_man_tone5_tone2", ["👨🏿‍❤️‍💋‍👨🏽"] = "kiss_man_man_tone5_tone3", ["👨🏿‍❤️‍💋‍👨🏾"] = "kiss_man_man_tone5_tone4", ["👨🏿‍❤️‍💋‍👨🏿"] = "kiss_man_man_tone5", ["👪"] = "family", ["👨‍👩‍👦"] = "family_man_woman_boy", ["👨‍👩‍👧"] = "family_mwg", ["👨‍👩‍👧‍👦"] = "family_mwgb", ["👨‍👩‍👦‍👦"] = "family_mwbb", ["👨‍👩‍👧‍👧"] = "family_mwgg", ["👩‍👩‍👦"] = "family_wwb", ["👩‍👩‍👧"] = "family_wwg", ["👩‍👩‍👧‍👦"] = "family_wwgb", ["👩‍👩‍👦‍👦"] = "family_wwbb", ["👩‍👩‍👧‍👧"] = "family_wwgg", ["👨‍👨‍👦"] = "family_mmb", ["👨‍👨‍👧"] = "family_mmg", ["👨‍👨‍👧‍👦"] = "family_mmgb", ["👨‍👨‍👦‍👦"] = "family_mmbb", ["👨‍👨‍👧‍👧"] = "family_mmgg", ["👩‍👦"] = "family_woman_boy", ["👩‍👧"] = "family_woman_girl", ["👩‍👧‍👦"] = "family_woman_girl_boy", ["👩‍👦‍👦"] = "family_woman_boy_boy", ["👩‍👧‍👧"] = "family_woman_girl_girl", ["👨‍👦"] = "family_man_boy", ["👨‍👧"] = "family_man_girl", ["👨‍👧‍👦"] = "family_man_girl_boy", ["👨‍👦‍👦"] = "family_man_boy_boy", ["👨‍👧‍👧"] = "family_man_girl_girl", ["🧶"] = "yarn", ["🧵"] = "thread", ["🧥"] = "coat", ["🥼"] = "lab_coat", ["🦺"] = "safety_vest", ["👚"] = "womans_clothes", ["👕"] = "shirt", ["👖"] = "jeans", ["🩲"] = "briefs", ["🩳"] = "shorts", ["👔"] = "necktie", ["👗"] = "dress", ["👙"] = "bikini", ["🩱"] = "one_piece_swimsuit", ["👘"] = "kimono", ["🥻"] = "sari", ["🥿"] = "womans_flat_shoe", ["👠"] = "high_heel", ["👡"] = "sandal", ["👢"] = "boot", ["👞"] = "mans_shoe", ["👟"] = "athletic_shoe", ["🥾"] = "hiking_boot", ["🩴"] = "thong_sandal", ["🧦"] = "socks", ["🧤"] = "gloves", ["🧣"] = "scarf", ["🎩"] = "tophat", ["🧢"] = "billed_cap", ["👒"] = "womans_hat", ["🎓"] = "mortar_board", ["⛑️"] = "helmet_with_cross", ["🪖"] = "military_helmet", ["👑"] = "crown", ["💍"] = "ring", ["👝"] = "pouch", ["👛"] = "purse", ["👜"] = "handbag", ["💼"] = "briefcase", ["🎒"] = "school_satchel", ["🧳"] = "luggage", ["👓"] = "eyeglasses", ["🕶️"] = "dark_sunglasses", ["🥽"] = "goggles", ["🌂"] = "closed_umbrella", ["🐶"] = "dog", ["🐱"] = "cat", ["🐭"] = "mouse", ["🐹"] = "hamster", ["🐰"] = "rabbit", ["🦊"] = "fox", ["🐻"] = "bear", ["🐼"] = "panda_face", ["🐻‍❄️"] = "polar_bear", ["🐨"] = "koala", ["🐯"] = "tiger", ["🦁"] = "lion_face", ["🐮"] = "cow", ["🐷"] = "pig", ["🐽"] = "pig_nose", ["🐸"] = "frog", ["🐵"] = "monkey_face", ["🙈"] = "see_no_evil", ["🙉"] = "hear_no_evil", ["🙊"] = "speak_no_evil", ["🐒"] = "monkey", ["🐔"] = "chicken", ["🐧"] = "penguin", ["🐦"] = "bird", ["🐤"] = "baby_chick", ["🐣"] = "hatching_chick", ["🐥"] = "hatched_chick", ["🦆"] = "duck", ["🦤"] = "dodo", ["🦅"] = "eagle", ["🦉"] = "owl", ["🦇"] = "bat", ["🐺"] = "wolf", ["🐗"] = "boar", ["🐴"] = "horse", ["🦄"] = "unicorn", ["🐝"] = "bee", ["🐛"] = "bug", ["🦋"] = "butterfly", ["🐌"] = "snail", ["🪱"] = "worm", ["🐞"] = "lady_beetle", ["🐜"] = "ant", ["🪰"] = "fly", ["🦟"] = "mosquito", ["🪳"] = "cockroach", ["🪲"] = "beetle", ["🦗"] = "cricket", ["🕷️"] = "spider", ["🕸️"] = "spider_web", ["🦂"] = "scorpion", ["🐢"] = "turtle", ["🐍"] = "snake", ["🦎"] = "lizard", ["🦖"] = "t_rex", ["🦕"] = "sauropod", ["🐙"] = "octopus", ["🦑"] = "squid", ["🦐"] = "shrimp", ["🦞"] = "lobster", ["🦀"] = "crab", ["🐡"] = "blowfish", ["🐠"] = "tropical_fish", ["🐟"] = "fish", ["🦭"] = "seal", ["🐬"] = "dolphin", ["🐳"] = "whale", ["🐋"] = "whale2", ["🦈"] = "shark", ["🐊"] = "crocodile", ["🐅"] = "tiger2", ["🐆"] = "leopard", ["🦓"] = "zebra", ["🦍"] = "gorilla", ["🦧"] = "orangutan", ["🐘"] = "elephant", ["🦣"] = "mammoth", ["🦬"] = "bison", ["🦛"] = "hippopotamus", ["🦏"] = "rhino", ["🐪"] = "dromedary_camel", ["🐫"] = "camel", ["🦒"] = "giraffe", ["🦘"] = "kangaroo", ["🐃"] = "water_buffalo", ["🐂"] = "ox", ["🐄"] = "cow2", ["🐎"] = "racehorse", ["🐖"] = "pig2", ["🐏"] = "ram", ["🐑"] = "sheep", ["🦙"] = "llama", ["🐐"] = "goat", ["🦌"] = "deer", ["🐕"] = "dog2", ["🐩"] = "poodle", ["🦮"] = "guide_dog", ["🐕‍🦺"] = "service_dog", ["🐈"] = "cat2", ["🐈‍⬛"] = "black_cat", ["🐓"] = "rooster", ["🦃"] = "turkey", ["🦚"] = "peacock", ["🦜"] = "parrot", ["🦢"] = "swan", ["🦩"] = "flamingo", ["🕊️"] = "dove", ["🐇"] = "rabbit2", ["🦝"] = "raccoon", ["🦨"] = "skunk", ["🦡"] = "badger", ["🦫"] = "beaver", ["🦦"] = "otter", ["🦥"] = "sloth", ["🐁"] = "mouse2", ["🐀"] = "rat", ["🐿️"] = "chipmunk", ["🦔"] = "hedgehog", ["🐾"] = "feet", ["🐉"] = "dragon", ["🐲"] = "dragon_face", ["🌵"] = "cactus", ["🎄"] = "christmas_tree", ["🌲"] = "evergreen_tree", ["🌳"] = "deciduous_tree", ["🌴"] = "palm_tree", ["🌱"] = "seedling", ["🌿"] = "herb", ["☘️"] = "shamrock", ["🍀"] = "four_leaf_clover", ["🎍"] = "bamboo", ["🎋"] = "tanabata_tree", ["🍃"] = "leaves", ["🍂"] = "fallen_leaf", ["🍁"] = "maple_leaf", ["🪶"] = "feather", ["🍄"] = "mushroom", ["🐚"] = "shell", ["🪨"] = "rock", ["🪵"] = "wood", ["🌾"] = "ear_of_rice", ["🪴"] = "potted_plant", ["💐"] = "bouquet", ["🌷"] = "tulip", ["🌹"] = "rose", ["🥀"] = "wilted_rose", ["🌺"] = "hibiscus", ["🌸"] = "cherry_blossom", ["🌼"] = "blossom", ["🌻"] = "sunflower", ["🌞"] = "sun_with_face", ["🌝"] = "full_moon_with_face", ["🌛"] = "first_quarter_moon_with_face", ["🌜"] = "last_quarter_moon_with_face", ["🌚"] = "new_moon_with_face", ["🌕"] = "full_moon", ["🌖"] = "waning_gibbous_moon", ["🌗"] = "last_quarter_moon", ["🌘"] = "waning_crescent_moon", ["🌑"] = "new_moon", ["🌒"] = "waxing_crescent_moon", ["🌓"] = "first_quarter_moon", ["🌔"] = "waxing_gibbous_moon", ["🌙"] = "crescent_moon", ["🌎"] = "earth_americas", ["🌍"] = "earth_africa", ["🌏"] = "earth_asia", ["🪐"] = "ringed_planet", ["💫"] = "dizzy", ["⭐"] = "star", ["🌟"] = "star2", ["✨"] = "sparkles", ["⚡"] = "zap", ["☄️"] = "comet", ["💥"] = "boom", ["🔥"] = "fire", ["🌪️"] = "cloud_tornado", ["🌈"] = "rainbow", ["☀️"] = "sunny", ["🌤️"] = "white_sun_small_cloud", ["⛅"] = "partly_sunny", ["🌥️"] = "white_sun_cloud", ["☁️"] = "cloud", ["🌦️"] = "white_sun_rain_cloud", ["🌧️"] = "cloud_rain", ["⛈️"] = "thunder_cloud_rain", ["🌩️"] = "cloud_lightning", ["🌨️"] = "cloud_snow", ["❄️"] = "snowflake", ["☃️"] = "snowman2", ["⛄"] = "snowman", ["🌬️"] = "wind_blowing_face", ["💨"] = "dash", ["💧"] = "droplet", ["💦"] = "sweat_drops", ["☔"] = "umbrella", ["☂️"] = "umbrella2", ["🌊"] = "ocean", ["🌫️"] = "fog", ["🍏"] = "green_apple", ["🍎"] = "apple", ["🍐"] = "pear", ["🍊"] = "tangerine", ["🍋"] = "lemon", ["🍌"] = "banana", ["🍉"] = "watermelon", ["🍇"] = "grapes", ["🫐"] = "blueberries", ["🍓"] = "strawberry", ["🍈"] = "melon", ["🍒"] = "cherries", ["🍑"] = "peach", ["🥭"] = "mango", ["🍍"] = "pineapple", ["🥥"] = "coconut", ["🥝"] = "kiwi", ["🍅"] = "tomato", ["🍆"] = "eggplant", ["🥑"] = "avocado", ["🫒"] = "olive", ["🥦"] = "broccoli", ["🥬"] = "leafy_green", ["🫑"] = "bell_pepper", ["🥒"] = "cucumber", ["🌶️"] = "hot_pepper", ["🌽"] = "corn", ["🥕"] = "carrot", ["🧄"] = "garlic", ["🧅"] = "onion", ["🥔"] = "potato", ["🍠"] = "sweet_potato", ["🥐"] = "croissant", ["🥯"] = "bagel", ["🍞"] = "bread", ["🥖"] = "french_bread", ["🫓"] = "flatbread", ["🥨"] = "pretzel", ["🧀"] = "cheese", ["🥚"] = "egg", ["🍳"] = "cooking", ["🧈"] = "butter", ["🥞"] = "pancakes", ["🧇"] = "waffle", ["🥓"] = "bacon", ["🥩"] = "cut_of_meat", ["🍗"] = "poultry_leg", ["🍖"] = "meat_on_bone", ["🌭"] = "hotdog", ["🍔"] = "hamburger", ["🍟"] = "fries", ["🍕"] = "pizza", ["🥪"] = "sandwich", ["🥙"] = "stuffed_flatbread", ["🧆"] = "falafel", ["🌮"] = "taco", ["🌯"] = "burrito", ["🫔"] = "tamale", ["🥗"] = "salad", ["🥘"] = "shallow_pan_of_food", ["🫕"] = "fondue", ["🥫"] = "canned_food", ["🍝"] = "spaghetti", ["🍜"] = "ramen", ["🍲"] = "stew", ["🍛"] = "curry", ["🍣"] = "sushi", ["🍱"] = "bento", ["🥟"] = "dumpling", ["🦪"] = "oyster", ["🍤"] = "fried_shrimp", ["🍙"] = "rice_ball", ["🍚"] = "rice", ["🍘"] = "rice_cracker", ["🍥"] = "fish_cake", ["🥠"] = "fortune_cookie", ["🥮"] = "moon_cake", ["🍢"] = "oden", ["🍡"] = "dango", ["🍧"] = "shaved_ice", ["🍨"] = "ice_cream", ["🍦"] = "icecream", ["🥧"] = "pie", ["🧁"] = "cupcake", ["🍰"] = "cake", ["🎂"] = "birthday", ["🍮"] = "custard", ["🍭"] = "lollipop", ["🍬"] = "candy", ["🍫"] = "chocolate_bar", ["🍿"] = "popcorn", ["🍩"] = "doughnut", ["🍪"] = "cookie", ["🌰"] = "chestnut", ["🥜"] = "peanuts", ["🍯"] = "honey_pot", ["🥛"] = "milk", ["🍼"] = "baby_bottle", ["☕"] = "coffee", ["🍵"] = "tea", ["🫖"] = "teapot", ["🧉"] = "mate", ["🧋"] = "bubble_tea", ["🧃"] = "beverage_box", ["🥤"] = "cup_with_straw", ["🍶"] = "sake", ["🍺"] = "beer", ["🍻"] = "beers", ["🥂"] = "champagne_glass", ["🍷"] = "wine_glass", ["🥃"] = "tumbler_glass", ["🍸"] = "cocktail", ["🍹"] = "tropical_drink", ["🍾"] = "champagne", ["🧊"] = "ice_cube", ["🥄"] = "spoon", ["🍴"] = "fork_and_knife", ["🍽️"] = "fork_knife_plate", ["🥣"] = "bowl_with_spoon", ["🥡"] = "takeout_box", ["🥢"] = "chopsticks", ["🧂"] = "salt", ["⚽"] = "soccer", ["🏀"] = "basketball", ["🏈"] = "football", ["⚾"] = "baseball", ["🥎"] = "softball", ["🎾"] = "tennis", ["🏐"] = "volleyball", ["🏉"] = "rugby_football", ["🥏"] = "flying_disc", ["🪃"] = "boomerang", ["🎱"] = "8ball", ["🪀"] = "yo_yo", ["🏓"] = "ping_pong", ["🏸"] = "badminton", ["🏒"] = "hockey", ["🏑"] = "field_hockey", ["🥍"] = "lacrosse", ["🏏"] = "cricket_game", ["🥅"] = "goal", ["⛳"] = "golf", ["🪁"] = "kite", ["🏹"] = "bow_and_arrow", ["🎣"] = "fishing_pole_and_fish", ["🤿"] = "diving_mask", ["🥊"] = "boxing_glove", ["🥋"] = "martial_arts_uniform", ["🎽"] = "running_shirt_with_sash", ["🛹"] = "skateboard", ["🛼"] = "roller_skate", ["🛷"] = "sled", ["⛸️"] = "ice_skate", ["🥌"] = "curling_stone", ["🎿"] = "ski", ["⛷️"] = "skier", ["🏂"] = "snowboarder", ["🏂🏻"] = "snowboarder_tone1", ["🏂🏼"] = "snowboarder_tone2", ["🏂🏽"] = "snowboarder_tone3", ["🏂🏾"] = "snowboarder_tone4", ["🏂🏿"] = "snowboarder_tone5", ["🪂"] = "parachute", ["🏋️"] = "person_lifting_weights", ["🏋🏻"] = "person_lifting_weights_tone1", ["🏋🏼"] = "person_lifting_weights_tone2", ["🏋🏽"] = "person_lifting_weights_tone3", ["🏋🏾"] = "person_lifting_weights_tone4", ["🏋🏿"] = "person_lifting_weights_tone5", ["🏋️‍♀️"] = "woman_lifting_weights", ["🏋🏻‍♀️"] = "woman_lifting_weights_tone1", ["🏋🏼‍♀️"] = "woman_lifting_weights_tone2", ["🏋🏽‍♀️"] = "woman_lifting_weights_tone3", ["🏋🏾‍♀️"] = "woman_lifting_weights_tone4", ["🏋🏿‍♀️"] = "woman_lifting_weights_tone5", ["🏋️‍♂️"] = "man_lifting_weights", ["🏋🏻‍♂️"] = "man_lifting_weights_tone1", ["🏋🏼‍♂️"] = "man_lifting_weights_tone2", ["🏋🏽‍♂️"] = "man_lifting_weights_tone3", ["🏋🏾‍♂️"] = "man_lifting_weights_tone4", ["🏋🏿‍♂️"] = "man_lifting_weights_tone5", ["🤼"] = "people_wrestling", ["🤼‍♀️"] = "women_wrestling", ["🤼‍♂️"] = "men_wrestling", ["🤸"] = "person_doing_cartwheel", ["🤸🏻"] = "person_doing_cartwheel_tone1", ["🤸🏼"] = "person_doing_cartwheel_tone2", ["🤸🏽"] = "person_doing_cartwheel_tone3", ["🤸🏾"] = "person_doing_cartwheel_tone4", ["🤸🏿"] = "person_doing_cartwheel_tone5", ["🤸‍♀️"] = "woman_cartwheeling", ["🤸🏻‍♀️"] = "woman_cartwheeling_tone1", ["🤸🏼‍♀️"] = "woman_cartwheeling_tone2", ["🤸🏽‍♀️"] = "woman_cartwheeling_tone3", ["🤸🏾‍♀️"] = "woman_cartwheeling_tone4", ["🤸🏿‍♀️"] = "woman_cartwheeling_tone5", ["🤸‍♂️"] = "man_cartwheeling", ["🤸🏻‍♂️"] = "man_cartwheeling_tone1", ["🤸🏼‍♂️"] = "man_cartwheeling_tone2", ["🤸🏽‍♂️"] = "man_cartwheeling_tone3", ["🤸🏾‍♂️"] = "man_cartwheeling_tone4", ["🤸🏿‍♂️"] = "man_cartwheeling_tone5", ["⛹️"] = "person_bouncing_ball", ["⛹🏻"] = "person_bouncing_ball_tone1", ["⛹🏼"] = "person_bouncing_ball_tone2", ["⛹🏽"] = "person_bouncing_ball_tone3", ["⛹🏾"] = "person_bouncing_ball_tone4", ["⛹🏿"] = "person_bouncing_ball_tone5", ["⛹️‍♀️"] = "woman_bouncing_ball", ["⛹🏻‍♀️"] = "woman_bouncing_ball_tone1", ["⛹🏼‍♀️"] = "woman_bouncing_ball_tone2", ["⛹🏽‍♀️"] = "woman_bouncing_ball_tone3", ["⛹🏾‍♀️"] = "woman_bouncing_ball_tone4", ["⛹🏿‍♀️"] = "woman_bouncing_ball_tone5", ["⛹️‍♂️"] = "man_bouncing_ball", ["⛹🏻‍♂️"] = "man_bouncing_ball_tone1", ["⛹🏼‍♂️"] = "man_bouncing_ball_tone2", ["⛹🏽‍♂️"] = "man_bouncing_ball_tone3", ["⛹🏾‍♂️"] = "man_bouncing_ball_tone4", ["⛹🏿‍♂️"] = "man_bouncing_ball_tone5", ["🤺"] = "person_fencing", ["🤾"] = "person_playing_handball", ["🤾🏻"] = "person_playing_handball_tone1", ["🤾🏼"] = "person_playing_handball_tone2", ["🤾🏽"] = "person_playing_handball_tone3", ["🤾🏾"] = "person_playing_handball_tone4", ["🤾🏿"] = "person_playing_handball_tone5", ["🤾‍♀️"] = "woman_playing_handball", ["🤾🏻‍♀️"] = "woman_playing_handball_tone1", ["🤾🏼‍♀️"] = "woman_playing_handball_tone2", ["🤾🏽‍♀️"] = "woman_playing_handball_tone3", ["🤾🏾‍♀️"] = "woman_playing_handball_tone4", ["🤾🏿‍♀️"] = "woman_playing_handball_tone5", ["🤾‍♂️"] = "man_playing_handball", ["🤾🏻‍♂️"] = "man_playing_handball_tone1", ["🤾🏼‍♂️"] = "man_playing_handball_tone2", ["🤾🏽‍♂️"] = "man_playing_handball_tone3", ["🤾🏾‍♂️"] = "man_playing_handball_tone4", ["🤾🏿‍♂️"] = "man_playing_handball_tone5", ["🏌️"] = "person_golfing", ["🏌🏻"] = "person_golfing_tone1", ["🏌🏼"] = "person_golfing_tone2", ["🏌🏽"] = "person_golfing_tone3", ["🏌🏾"] = "person_golfing_tone4", ["🏌🏿"] = "person_golfing_tone5", ["🏌️‍♀️"] = "woman_golfing", ["🏌🏻‍♀️"] = "woman_golfing_tone1", ["🏌🏼‍♀️"] = "woman_golfing_tone2", ["🏌🏽‍♀️"] = "woman_golfing_tone3", ["🏌🏾‍♀️"] = "woman_golfing_tone4", ["🏌🏿‍♀️"] = "woman_golfing_tone5", ["🏌️‍♂️"] = "man_golfing", ["🏌🏻‍♂️"] = "man_golfing_tone1", ["🏌🏼‍♂️"] = "man_golfing_tone2", ["🏌🏽‍♂️"] = "man_golfing_tone3", ["🏌🏾‍♂️"] = "man_golfing_tone4", ["🏌🏿‍♂️"] = "man_golfing_tone5", ["🏇"] = "horse_racing", ["🏇🏻"] = "horse_racing_tone1", ["🏇🏼"] = "horse_racing_tone2", ["🏇🏽"] = "horse_racing_tone3", ["🏇🏾"] = "horse_racing_tone4", ["🏇🏿"] = "horse_racing_tone5", ["🧘"] = "person_in_lotus_position", ["🧘🏻"] = "person_in_lotus_position_tone1", ["🧘🏼"] = "person_in_lotus_position_tone2", ["🧘🏽"] = "person_in_lotus_position_tone3", ["🧘🏾"] = "person_in_lotus_position_tone4", ["🧘🏿"] = "person_in_lotus_position_tone5", ["🧘‍♀️"] = "woman_in_lotus_position", ["🧘🏻‍♀️"] = "woman_in_lotus_position_tone1", ["🧘🏼‍♀️"] = "woman_in_lotus_position_tone2", ["🧘🏽‍♀️"] = "woman_in_lotus_position_tone3", ["🧘🏾‍♀️"] = "woman_in_lotus_position_tone4", ["🧘🏿‍♀️"] = "woman_in_lotus_position_tone5", ["🧘‍♂️"] = "man_in_lotus_position", ["🧘🏻‍♂️"] = "man_in_lotus_position_tone1", ["🧘🏼‍♂️"] = "man_in_lotus_position_tone2", ["🧘🏽‍♂️"] = "man_in_lotus_position_tone3", ["🧘🏾‍♂️"] = "man_in_lotus_position_tone4", ["🧘🏿‍♂️"] = "man_in_lotus_position_tone5", ["🏄"] = "person_surfing", ["🏄🏻"] = "person_surfing_tone1", ["🏄🏼"] = "person_surfing_tone2", ["🏄🏽"] = "person_surfing_tone3", ["🏄🏾"] = "person_surfing_tone4", ["🏄🏿"] = "person_surfing_tone5", ["🏄‍♀️"] = "woman_surfing", ["🏄🏻‍♀️"] = "woman_surfing_tone1", ["🏄🏼‍♀️"] = "woman_surfing_tone2", ["🏄🏽‍♀️"] = "woman_surfing_tone3", ["🏄🏾‍♀️"] = "woman_surfing_tone4", ["🏄🏿‍♀️"] = "woman_surfing_tone5", ["🏄‍♂️"] = "man_surfing", ["🏄🏻‍♂️"] = "man_surfing_tone1", ["🏄🏼‍♂️"] = "man_surfing_tone2", ["🏄🏽‍♂️"] = "man_surfing_tone3", ["🏄🏾‍♂️"] = "man_surfing_tone4", ["🏄🏿‍♂️"] = "man_surfing_tone5", ["🏊"] = "person_swimming", ["🏊🏻"] = "person_swimming_tone1", ["🏊🏼"] = "person_swimming_tone2", ["🏊🏽"] = "person_swimming_tone3", ["🏊🏾"] = "person_swimming_tone4", ["🏊🏿"] = "person_swimming_tone5", ["🏊‍♀️"] = "woman_swimming", ["🏊🏻‍♀️"] = "woman_swimming_tone1", ["🏊🏼‍♀️"] = "woman_swimming_tone2", ["🏊🏽‍♀️"] = "woman_swimming_tone3", ["🏊🏾‍♀️"] = "woman_swimming_tone4", ["🏊🏿‍♀️"] = "woman_swimming_tone5", ["🏊‍♂️"] = "man_swimming", ["🏊🏻‍♂️"] = "man_swimming_tone1", ["🏊🏼‍♂️"] = "man_swimming_tone2", ["🏊🏽‍♂️"] = "man_swimming_tone3", ["🏊🏾‍♂️"] = "man_swimming_tone4", ["🏊🏿‍♂️"] = "man_swimming_tone5", ["🤽"] = "person_playing_water_polo", ["🤽🏻"] = "person_playing_water_polo_tone1", ["🤽🏼"] = "person_playing_water_polo_tone2", ["🤽🏽"] = "person_playing_water_polo_tone3", ["🤽🏾"] = "person_playing_water_polo_tone4", ["🤽🏿"] = "person_playing_water_polo_tone5", ["🤽‍♀️"] = "woman_playing_water_polo", ["🤽🏻‍♀️"] = "woman_playing_water_polo_tone1", ["🤽🏼‍♀️"] = "woman_playing_water_polo_tone2", ["🤽🏽‍♀️"] = "woman_playing_water_polo_tone3", ["🤽🏾‍♀️"] = "woman_playing_water_polo_tone4", ["🤽🏿‍♀️"] = "woman_playing_water_polo_tone5", ["🤽‍♂️"] = "man_playing_water_polo", ["🤽🏻‍♂️"] = "man_playing_water_polo_tone1", ["🤽🏼‍♂️"] = "man_playing_water_polo_tone2", ["🤽🏽‍♂️"] = "man_playing_water_polo_tone3", ["🤽🏾‍♂️"] = "man_playing_water_polo_tone4", ["🤽🏿‍♂️"] = "man_playing_water_polo_tone5", ["🚣"] = "person_rowing_boat", ["🚣🏻"] = "person_rowing_boat_tone1", ["🚣🏼"] = "person_rowing_boat_tone2", ["🚣🏽"] = "person_rowing_boat_tone3", ["🚣🏾"] = "person_rowing_boat_tone4", ["🚣🏿"] = "person_rowing_boat_tone5", ["🚣‍♀️"] = "woman_rowing_boat", ["🚣🏻‍♀️"] = "woman_rowing_boat_tone1", ["🚣🏼‍♀️"] = "woman_rowing_boat_tone2", ["🚣🏽‍♀️"] = "woman_rowing_boat_tone3", ["🚣🏾‍♀️"] = "woman_rowing_boat_tone4", ["🚣🏿‍♀️"] = "woman_rowing_boat_tone5", ["🚣‍♂️"] = "man_rowing_boat", ["🚣🏻‍♂️"] = "man_rowing_boat_tone1", ["🚣🏼‍♂️"] = "man_rowing_boat_tone2", ["🚣🏽‍♂️"] = "man_rowing_boat_tone3", ["🚣🏾‍♂️"] = "man_rowing_boat_tone4", ["🚣🏿‍♂️"] = "man_rowing_boat_tone5", ["🧗"] = "person_climbing", ["🧗🏻"] = "person_climbing_tone1", ["🧗🏼"] = "person_climbing_tone2", ["🧗🏽"] = "person_climbing_tone3", ["🧗🏾"] = "person_climbing_tone4", ["🧗🏿"] = "person_climbing_tone5", ["🧗‍♀️"] = "woman_climbing", ["🧗🏻‍♀️"] = "woman_climbing_tone1", ["🧗🏼‍♀️"] = "woman_climbing_tone2", ["🧗🏽‍♀️"] = "woman_climbing_tone3", ["🧗🏾‍♀️"] = "woman_climbing_tone4", ["🧗🏿‍♀️"] = "woman_climbing_tone5", ["🧗‍♂️"] = "man_climbing", ["🧗🏻‍♂️"] = "man_climbing_tone1", ["🧗🏼‍♂️"] = "man_climbing_tone2", ["🧗🏽‍♂️"] = "man_climbing_tone3", ["🧗🏾‍♂️"] = "man_climbing_tone4", ["🧗🏿‍♂️"] = "man_climbing_tone5", ["🚵"] = "person_mountain_biking", ["🚵🏻"] = "person_mountain_biking_tone1", ["🚵🏼"] = "person_mountain_biking_tone2", ["🚵🏽"] = "person_mountain_biking_tone3", ["🚵🏾"] = "person_mountain_biking_tone4", ["🚵🏿"] = "person_mountain_biking_tone5", ["🚵‍♀️"] = "woman_mountain_biking", ["🚵🏻‍♀️"] = "woman_mountain_biking_tone1", ["🚵🏼‍♀️"] = "woman_mountain_biking_tone2", ["🚵🏽‍♀️"] = "woman_mountain_biking_tone3", ["🚵🏾‍♀️"] = "woman_mountain_biking_tone4", ["🚵🏿‍♀️"] = "woman_mountain_biking_tone5", ["🚵‍♂️"] = "man_mountain_biking", ["🚵🏻‍♂️"] = "man_mountain_biking_tone1", ["🚵🏼‍♂️"] = "man_mountain_biking_tone2", ["🚵🏽‍♂️"] = "man_mountain_biking_tone3", ["🚵🏾‍♂️"] = "man_mountain_biking_tone4", ["🚵🏿‍♂️"] = "man_mountain_biking_tone5", ["🚴"] = "person_biking", ["🚴🏻"] = "person_biking_tone1", ["🚴🏼"] = "person_biking_tone2", ["🚴🏽"] = "person_biking_tone3", ["🚴🏾"] = "person_biking_tone4", ["🚴🏿"] = "person_biking_tone5", ["🚴‍♀️"] = "woman_biking", ["🚴🏻‍♀️"] = "woman_biking_tone1", ["🚴🏼‍♀️"] = "woman_biking_tone2", ["🚴🏽‍♀️"] = "woman_biking_tone3", ["🚴🏾‍♀️"] = "woman_biking_tone4", ["🚴🏿‍♀️"] = "woman_biking_tone5", ["🚴‍♂️"] = "man_biking", ["🚴🏻‍♂️"] = "man_biking_tone1", ["🚴🏼‍♂️"] = "man_biking_tone2", ["🚴🏽‍♂️"] = "man_biking_tone3", ["🚴🏾‍♂️"] = "man_biking_tone4", ["🚴🏿‍♂️"] = "man_biking_tone5", ["🏆"] = "trophy", ["🥇"] = "first_place", ["🥈"] = "second_place", ["🥉"] = "third_place", ["🏅"] = "medal", ["🎖️"] = "military_medal", ["🏵️"] = "rosette", ["🎗️"] = "reminder_ribbon", ["🎫"] = "ticket", ["🎟️"] = "tickets", ["🎪"] = "circus_tent", ["🤹"] = "person_juggling", ["🤹🏻"] = "person_juggling_tone1", ["🤹🏼"] = "person_juggling_tone2", ["🤹🏽"] = "person_juggling_tone3", ["🤹🏾"] = "person_juggling_tone4", ["🤹🏿"] = "person_juggling_tone5", ["🤹‍♀️"] = "woman_juggling", ["🤹🏻‍♀️"] = "woman_juggling_tone1", ["🤹🏼‍♀️"] = "woman_juggling_tone2", ["🤹🏽‍♀️"] = "woman_juggling_tone3", ["🤹🏾‍♀️"] = "woman_juggling_tone4", ["🤹🏿‍♀️"] = "woman_juggling_tone5", ["🤹‍♂️"] = "man_juggling", ["🤹🏻‍♂️"] = "man_juggling_tone1", ["🤹🏼‍♂️"] = "man_juggling_tone2", ["🤹🏽‍♂️"] = "man_juggling_tone3", ["🤹🏾‍♂️"] = "man_juggling_tone4", ["🤹🏿‍♂️"] = "man_juggling_tone5", ["🎭"] = "performing_arts", ["🩰"] = "ballet_shoes", ["🎨"] = "art", ["🎬"] = "clapper", ["🎤"] = "microphone", ["🎧"] = "headphones", ["🎼"] = "musical_score", ["🎹"] = "musical_keyboard", ["🥁"] = "drum", ["🪘"] = "long_drum", ["🎷"] = "saxophone", ["🎺"] = "trumpet", ["🎸"] = "guitar", ["🪕"] = "banjo", ["🎻"] = "violin", ["🪗"] = "accordion", ["🎲"] = "game_die", ["♟️"] = "chess_pawn", ["🎯"] = "dart", ["🎳"] = "bowling", ["🎮"] = "video_game", ["🎰"] = "slot_machine", ["🧩"] = "jigsaw", ["🚗"] = "red_car", ["🚕"] = "taxi", ["🚙"] = "blue_car", ["🛻"] = "pickup_truck", ["🚌"] = "bus", ["🚎"] = "trolleybus", ["🏎️"] = "race_car", ["🚓"] = "police_car", ["🚑"] = "ambulance", ["🚒"] = "fire_engine", ["🚐"] = "minibus", ["🚚"] = "truck", ["🚛"] = "articulated_lorry", ["🚜"] = "tractor", ["🦯"] = "probing_cane", ["🦽"] = "manual_wheelchair", ["🦼"] = "motorized_wheelchair", ["🛴"] = "scooter", ["🚲"] = "bike", ["🛵"] = "motor_scooter", ["🏍️"] = "motorcycle", ["🛺"] = "auto_rickshaw", ["🚨"] = "rotating_light", ["🚔"] = "oncoming_police_car", ["🚍"] = "oncoming_bus", ["🚘"] = "oncoming_automobile", ["🚖"] = "oncoming_taxi", ["🚡"] = "aerial_tramway", ["🚠"] = "mountain_cableway", ["🚟"] = "suspension_railway", ["🚃"] = "railway_car", ["🚋"] = "train", ["🚞"] = "mountain_railway", ["🚝"] = "monorail", ["🚄"] = "bullettrain_side", ["🚅"] = "bullettrain_front", ["🚈"] = "light_rail", ["🚂"] = "steam_locomotive", ["🚆"] = "train2", ["🚇"] = "metro", ["🚊"] = "tram", ["🚉"] = "station", ["✈️"] = "airplane", ["🛫"] = "airplane_departure", ["🛬"] = "airplane_arriving", ["🛩️"] = "airplane_small", ["💺"] = "seat", ["🛰️"] = "satellite_orbital", ["🚀"] = "rocket", ["🛸"] = "flying_saucer", ["🚁"] = "helicopter", ["🛶"] = "canoe", ["⛵"] = "sailboat", ["🚤"] = "speedboat", ["🛥️"] = "motorboat", ["🛳️"] = "cruise_ship", ["⛴️"] = "ferry", ["🚢"] = "ship", ["⚓"] = "anchor", ["⛽"] = "fuelpump", ["🚧"] = "construction", ["🚦"] = "vertical_traffic_light", ["🚥"] = "traffic_light", ["🚏"] = "busstop", ["🗺️"] = "map", ["🗿"] = "moyai", ["🗽"] = "statue_of_liberty", ["🗼"] = "tokyo_tower", ["🏰"] = "european_castle", ["🏯"] = "japanese_castle", ["🏟️"] = "stadium", ["🎡"] = "ferris_wheel", ["🎢"] = "roller_coaster", ["🎠"] = "carousel_horse", ["⛲"] = "fountain", ["⛱️"] = "beach_umbrella", ["🏖️"] = "beach", ["🏝️"] = "island", ["🏜️"] = "desert", ["🌋"] = "volcano", ["⛰️"] = "mountain", ["🏔️"] = "mountain_snow", ["🗻"] = "mount_fuji", ["🏕️"] = "camping", ["⛺"] = "tent", ["🏠"] = "house", ["🏡"] = "house_with_garden", ["🏘️"] = "homes", ["🏚️"] = "house_abandoned", ["🛖"] = "hut", ["🏗️"] = "construction_site", ["🏭"] = "factory", ["🏢"] = "office", ["🏬"] = "department_store", ["🏣"] = "post_office", ["🏤"] = "european_post_office", ["🏥"] = "hospital", ["🏦"] = "bank", ["🏨"] = "hotel", ["🏪"] = "convenience_store", ["🏫"] = "school", ["🏩"] = "love_hotel", ["💒"] = "wedding", ["🏛️"] = "classical_building", ["⛪"] = "church", ["🕌"] = "mosque", ["🕍"] = "synagogue", ["🛕"] = "hindu_temple", ["🕋"] = "kaaba", ["⛩️"] = "shinto_shrine", ["🛤️"] = "railway_track", ["🛣️"] = "motorway", ["🗾"] = "japan", ["🎑"] = "rice_scene", ["🏞️"] = "park", ["🌅"] = "sunrise", ["🌄"] = "sunrise_over_mountains", ["🌠"] = "stars", ["🎇"] = "sparkler", ["🎆"] = "fireworks", ["🌇"] = "city_sunset", ["🌆"] = "city_dusk", ["🏙️"] = "cityscape", ["🌃"] = "night_with_stars", ["🌌"] = "milky_way", ["🌉"] = "bridge_at_night", ["🌁"] = "foggy", ["⌚"] = "watch", ["📱"] = "mobile_phone", ["📲"] = "calling", ["💻"] = "computer", ["⌨️"] = "keyboard", ["🖥️"] = "desktop", ["🖨️"] = "printer", ["🖱️"] = "mouse_three_button", ["🖲️"] = "trackball", ["🕹️"] = "joystick", ["🗜️"] = "compression", ["💽"] = "minidisc", ["💾"] = "floppy_disk", ["💿"] = "cd", ["📀"] = "dvd", ["📼"] = "vhs", ["📷"] = "camera", ["📸"] = "camera_with_flash", ["📹"] = "video_camera", ["🎥"] = "movie_camera", ["📽️"] = "projector", ["🎞️"] = "film_frames", ["📞"] = "telephone_receiver", ["☎️"] = "telephone", ["📟"] = "pager", ["📠"] = "fax", ["📺"] = "tv", ["📻"] = "radio", ["🎙️"] = "microphone2", ["🎚️"] = "level_slider", ["🎛️"] = "control_knobs", ["🧭"] = "compass", ["⏱️"] = "stopwatch", ["⏲️"] = "timer", ["⏰"] = "alarm_clock", ["🕰️"] = "clock", ["⌛"] = "hourglass", ["⏳"] = "hourglass_flowing_sand", ["📡"] = "satellite", ["🔋"] = "battery", ["🔌"] = "electric_plug", ["💡"] = "bulb", ["🔦"] = "flashlight", ["🕯️"] = "candle", ["🪔"] = "diya_lamp", ["🧯"] = "fire_extinguisher", ["🛢️"] = "oil", ["💸"] = "money_with_wings", ["💵"] = "dollar", ["💴"] = "yen", ["💶"] = "euro", ["💷"] = "pound", ["🪙"] = "coin", ["💰"] = "moneybag", ["💳"] = "credit_card", ["💎"] = "gem", ["⚖️"] = "scales", ["🪜"] = "ladder", ["🧰"] = "toolbox", ["🪛"] = "screwdriver", ["🔧"] = "wrench", ["🔨"] = "hammer", ["⚒️"] = "hammer_pick", ["🛠️"] = "tools", ["⛏️"] = "pick", ["🔩"] = "nut_and_bolt", ["⚙️"] = "gear", ["🧱"] = "bricks", ["⛓️"] = "chains", ["🪝"] = "hook", ["🪢"] = "knot", ["🧲"] = "magnet", ["🔫"] = "gun", ["💣"] = "bomb", ["🧨"] = "firecracker", ["🪓"] = "axe", ["🪚"] = "carpentry_saw", ["🔪"] = "knife", ["🗡️"] = "dagger", ["⚔️"] = "crossed_swords", ["🛡️"] = "shield", ["🚬"] = "smoking", ["⚰️"] = "coffin", ["🪦"] = "headstone", ["⚱️"] = "urn", ["🏺"] = "amphora", ["🪄"] = "magic_wand", ["🔮"] = "crystal_ball", ["📿"] = "prayer_beads", ["🧿"] = "nazar_amulet", ["💈"] = "barber", ["⚗️"] = "alembic", ["🔭"] = "telescope", ["🔬"] = "microscope", ["🕳️"] = "hole", ["🪟"] = "window", ["🩹"] = "adhesive_bandage", ["🩺"] = "stethoscope", ["💊"] = "pill", ["💉"] = "syringe", ["🩸"] = "drop_of_blood", ["🧬"] = "dna", ["🦠"] = "microbe", ["🧫"] = "petri_dish", ["🧪"] = "test_tube", ["🌡️"] = "thermometer", ["🪤"] = "mouse_trap", ["🧹"] = "broom", ["🧺"] = "basket", ["🪡"] = "sewing_needle", ["🧻"] = "roll_of_paper", ["🚽"] = "toilet", ["🪠"] = "plunger", ["🪣"] = "bucket", ["🚰"] = "potable_water", ["🚿"] = "shower", ["🛁"] = "bathtub", ["🛀"] = "bath", ["🛀🏻"] = "bath_tone1", ["🛀🏼"] = "bath_tone2", ["🛀🏽"] = "bath_tone3", ["🛀🏾"] = "bath_tone4", ["🛀🏿"] = "bath_tone5", ["🪥"] = "toothbrush", ["🧼"] = "soap", ["🪒"] = "razor", ["🧽"] = "sponge", ["🧴"] = "squeeze_bottle", ["🛎️"] = "bellhop", ["🔑"] = "key", ["🗝️"] = "key2", ["🚪"] = "door", ["🪑"] = "chair", ["🪞"] = "mirror", ["🛋️"] = "couch", ["🛏️"] = "bed", ["🛌"] = "sleeping_accommodation", ["🛌🏻"] = "person_in_bed_tone1", ["🛌🏼"] = "person_in_bed_tone2", ["🛌🏽"] = "person_in_bed_tone3", ["🛌🏾"] = "person_in_bed_tone4", ["🛌🏿"] = "person_in_bed_tone5", ["🧸"] = "teddy_bear", ["🖼️"] = "frame_photo", ["🛍️"] = "shopping_bags", ["🛒"] = "shopping_cart", ["🎁"] = "gift", ["🎈"] = "balloon", ["🎏"] = "flags", ["🎀"] = "ribbon", ["🎊"] = "confetti_ball", ["🎉"] = "tada", ["🪅"] = "piñata", ["🪆"] = "nesting_dolls", ["🎎"] = "dolls", ["🏮"] = "izakaya_lantern", ["🎐"] = "wind_chime", ["🧧"] = "red_envelope", ["✉️"] = "envelope", ["📩"] = "envelope_with_arrow", ["📨"] = "incoming_envelope", ["📧"] = "e_mail", ["💌"] = "love_letter", ["📥"] = "inbox_tray", ["📤"] = "outbox_tray", ["📦"] = "package", ["🏷️"] = "label", ["📪"] = "mailbox_closed", ["📫"] = "mailbox", ["📬"] = "mailbox_with_mail", ["📭"] = "mailbox_with_no_mail", ["📮"] = "postbox", ["📯"] = "postal_horn", ["🪧"] = "placard", ["📜"] = "scroll", ["📃"] = "page_with_curl", ["📄"] = "page_facing_up", ["📑"] = "bookmark_tabs", ["🧾"] = "receipt", ["📊"] = "bar_chart", ["📈"] = "chart_with_upwards_trend", ["📉"] = "chart_with_downwards_trend", ["🗒️"] = "notepad_spiral", ["🗓️"] = "calendar_spiral", ["📆"] = "calendar", ["📅"] = "date", ["🗑️"] = "wastebasket", ["📇"] = "card_index", ["🗃️"] = "card_box", ["🗳️"] = "ballot_box", ["🗄️"] = "file_cabinet", ["📋"] = "clipboard", ["📁"] = "file_folder", ["📂"] = "open_file_folder", ["🗂️"] = "dividers", ["🗞️"] = "newspaper2", ["📰"] = "newspaper", ["📓"] = "notebook", ["📔"] = "notebook_with_decorative_cover", ["📒"] = "ledger", ["📕"] = "closed_book", ["📗"] = "green_book", ["📘"] = "blue_book", ["📙"] = "orange_book", ["📚"] = "books", ["📖"] = "book", ["🔖"] = "bookmark", ["🧷"] = "safety_pin", ["🔗"] = "link", ["📎"] = "paperclip", ["🖇️"] = "paperclips", ["📐"] = "triangular_ruler", ["📏"] = "straight_ruler", ["🧮"] = "abacus", ["📌"] = "pushpin", ["📍"] = "round_pushpin", ["✂️"] = "scissors", ["🖊️"] = "pen_ballpoint", ["🖋️"] = "pen_fountain", ["✒️"] = "black_nib", ["🖌️"] = "paintbrush", ["🖍️"] = "crayon", ["📝"] = "pencil", ["✏️"] = "pencil2", ["🔍"] = "mag", ["🔎"] = "mag_right", ["🔏"] = "lock_with_ink_pen", ["🔐"] = "closed_lock_with_key", ["🔒"] = "lock", ["🔓"] = "unlock", ["❤️"] = "heart", ["🧡"] = "orange_heart", ["💛"] = "yellow_heart", ["💚"] = "green_heart", ["💙"] = "blue_heart", ["💜"] = "purple_heart", ["🖤"] = "black_heart", ["🤎"] = "brown_heart", ["🤍"] = "white_heart", ["💔"] = "broken_heart", ["❣️"] = "heart_exclamation", ["💕"] = "two_hearts", ["💞"] = "revolving_hearts", ["💓"] = "heartbeat", ["💗"] = "heartpulse", ["💖"] = "sparkling_heart", ["💘"] = "cupid", ["💝"] = "gift_heart", ["❤️‍🩹"] = "mending_heart", ["❤️‍🔥"] = "heart_on_fire", ["💟"] = "heart_decoration", ["☮️"] = "peace", ["✝️"] = "cross", ["☪️"] = "star_and_crescent", ["🕉️"] = "om_symbol", ["☸️"] = "wheel_of_dharma", ["✡️"] = "star_of_david", ["🔯"] = "six_pointed_star", ["🕎"] = "menorah", ["☯️"] = "yin_yang", ["☦️"] = "orthodox_cross", ["🛐"] = "place_of_worship", ["⛎"] = "ophiuchus", ["♈"] = "aries", ["♉"] = "taurus", ["♊"] = "gemini", ["♋"] = "cancer", ["♌"] = "leo", ["♍"] = "virgo", ["♎"] = "libra", ["♏"] = "scorpius", ["♐"] = "sagittarius", ["♑"] = "capricorn", ["♒"] = "aquarius", ["♓"] = "pisces", ["🆔"] = "id", ["⚛️"] = "atom", ["🉑"] = "accept", ["☢️"] = "radioactive", ["☣️"] = "biohazard", ["📴"] = "mobile_phone_off", ["📳"] = "vibration_mode", ["🈶"] = "u6709", ["🈚"] = "u7121", ["🈸"] = "u7533", ["🈺"] = "u55b6", ["🈷️"] = "u6708", ["✴️"] = "eight_pointed_black_star", ["🆚"] = "vs", ["💮"] = "white_flower", ["🉐"] = "ideograph_advantage", ["㊙️"] = "secret", ["㊗️"] = "congratulations", ["🈴"] = "u5408", ["🈵"] = "u6e80", ["🈹"] = "u5272", ["🈲"] = "u7981", ["🅰️"] = "a", ["🅱️"] = "b", ["🆎"] = "ab", ["🆑"] = "cl", ["🅾️"] = "o2", ["🆘"] = "sos", ["❌"] = "x", ["⭕"] = "o", ["🛑"] = "octagonal_sign", ["⛔"] = "no_entry", ["📛"] = "name_badge", ["🚫"] = "no_entry_sign", ["💯"] = "100", ["💢"] = "anger", ["♨️"] = "hotsprings", ["🚷"] = "no_pedestrians", ["🚯"] = "do_not_litter", ["🚳"] = "no_bicycles", ["🚱"] = "non_potable_water", ["🔞"] = "underage", ["📵"] = "no_mobile_phones", ["🚭"] = "no_smoking", ["❗"] = "exclamation", ["❕"] = "grey_exclamation", ["❓"] = "question", ["❔"] = "grey_question", ["‼️"] = "bangbang", ["⁉️"] = "interrobang", ["🔅"] = "low_brightness", ["🔆"] = "high_brightness", ["〽️"] = "part_alternation_mark", ["⚠️"] = "warning", ["🚸"] = "children_crossing", ["🔱"] = "trident", ["⚜️"] = "fleur_de_lis", ["🔰"] = "beginner", ["♻️"] = "recycle", ["✅"] = "white_check_mark", ["🈯"] = "u6307", ["💹"] = "chart", ["❇️"] = "sparkle", ["✳️"] = "eight_spoked_asterisk", ["❎"] = "negative_squared_cross_mark", ["🌐"] = "globe_with_meridians", ["💠"] = "diamond_shape_with_a_dot_inside", ["Ⓜ️"] = "m", ["🌀"] = "cyclone", ["💤"] = "zzz", ["🏧"] = "atm", ["🚾"] = "wc", ["♿"] = "wheelchair", ["🅿️"] = "parking", ["🈳"] = "u7a7a", ["🈂️"] = "sa", ["🛂"] = "passport_control", ["🛃"] = "customs", ["🛄"] = "baggage_claim", ["🛅"] = "left_luggage", ["🛗"] = "elevator", ["🚹"] = "mens", ["🚺"] = "womens", ["🚼"] = "baby_symbol", ["🚻"] = "restroom", ["🚮"] = "put_litter_in_its_place", ["🎦"] = "cinema", ["📶"] = "signal_strength", ["🈁"] = "koko", ["🔣"] = "symbols", ["ℹ️"] = "information_source", ["🔤"] = "abc", ["🔡"] = "abcd", ["🔠"] = "capital_abcd", ["🆖"] = "ng", ["🆗"] = "ok", ["🆙"] = "up", ["🆒"] = "cool", ["🆕"] = "new", ["🆓"] = "free", ["0️⃣"] = "zero", ["1️⃣"] = "one", ["2️⃣"] = "two", ["3️⃣"] = "three", ["4️⃣"] = "four", ["5️⃣"] = "five", ["6️⃣"] = "six", ["7️⃣"] = "seven", ["8️⃣"] = "eight", ["9️⃣"] = "nine", ["🔟"] = "keycap_ten", ["🔢"] = "1234", ["#️⃣"] = "hash", ["*️⃣"] = "asterisk", ["⏏️"] = "eject", ["▶️"] = "arrow_forward", ["⏸️"] = "pause_button", ["⏯️"] = "play_pause", ["⏹️"] = "stop_button", ["⏺️"] = "record_button", ["⏭️"] = "track_next", ["⏮️"] = "track_previous", ["⏩"] = "fast_forward", ["⏪"] = "rewind", ["⏫"] = "arrow_double_up", ["⏬"] = "arrow_double_down", ["◀️"] = "arrow_backward", ["🔼"] = "arrow_up_small", ["🔽"] = "arrow_down_small", ["➡️"] = "arrow_right", ["⬅️"] = "arrow_left", ["⬆️"] = "arrow_up", ["⬇️"] = "arrow_down", ["↗️"] = "arrow_upper_right", ["↘️"] = "arrow_lower_right", ["↙️"] = "arrow_lower_left", ["↖️"] = "arrow_upper_left", ["↕️"] = "arrow_up_down", ["↔️"] = "left_right_arrow", ["↪️"] = "arrow_right_hook", ["↩️"] = "leftwards_arrow_with_hook", ["⤴️"] = "arrow_heading_up", ["⤵️"] = "arrow_heading_down", ["🔀"] = "twisted_rightwards_arrows", ["🔁"] = "repeat", ["🔂"] = "repeat_one", ["🔄"] = "arrows_counterclockwise", ["🔃"] = "arrows_clockwise", ["🎵"] = "musical_note", ["🎶"] = "notes", ["➕"] = "heavy_plus_sign", ["➖"] = "heavy_minus_sign", ["➗"] = "heavy_division_sign", ["✖️"] = "heavy_multiplication_x", ["♾️"] = "infinity", ["💲"] = "heavy_dollar_sign", ["💱"] = "currency_exchange", ["™️"] = "tm", ["©️"] = "copyright", ["®️"] = "registered", ["〰️"] = "wavy_dash", ["➰"] = "curly_loop", ["➿"] = "loop", ["🔚"] = "end", ["🔙"] = "back", ["🔛"] = "on", ["🔝"] = "top", ["🔜"] = "soon", ["✔️"] = "heavy_check_mark", ["☑️"] = "ballot_box_with_check", ["🔘"] = "radio_button", ["⚪"] = "white_circle", ["⚫"] = "black_circle", ["🔴"] = "red_circle", ["🔵"] = "blue_circle", ["🟤"] = "brown_circle", ["🟣"] = "purple_circle", ["🟢"] = "green_circle", ["🟡"] = "yellow_circle", ["🟠"] = "orange_circle", ["🔺"] = "small_red_triangle", ["🔻"] = "small_red_triangle_down", ["🔸"] = "small_orange_diamond", ["🔹"] = "small_blue_diamond", ["🔶"] = "large_orange_diamond", ["🔷"] = "large_blue_diamond", ["🔳"] = "white_square_button", ["🔲"] = "black_square_button", ["▪️"] = "black_small_square", ["▫️"] = "white_small_square", ["◾"] = "black_medium_small_square", ["◽"] = "white_medium_small_square", ["◼️"] = "black_medium_square", ["◻️"] = "white_medium_square", ["⬛"] = "black_large_square", ["⬜"] = "white_large_square", ["🟧"] = "orange_square", ["🟦"] = "blue_square", ["🟥"] = "red_square", ["🟫"] = "brown_square", ["🟪"] = "purple_square", ["🟩"] = "green_square", ["🟨"] = "yellow_square", ["🔈"] = "speaker", ["🔇"] = "mute", ["🔉"] = "sound", ["🔊"] = "loud_sound", ["🔔"] = "bell", ["🔕"] = "no_bell", ["📣"] = "mega", ["📢"] = "loudspeaker", ["🗨️"] = "speech_left", ["👁‍🗨"] = "eye_in_speech_bubble", ["💬"] = "speech_balloon", ["💭"] = "thought_balloon", ["🗯️"] = "anger_right", ["♠️"] = "spades", ["♣️"] = "clubs", ["♥️"] = "hearts", ["♦️"] = "diamonds", ["🃏"] = "black_joker", ["🎴"] = "flower_playing_cards", ["🀄"] = "mahjong", ["🕐"] = "clock1", ["🕑"] = "clock2", ["🕒"] = "clock3", ["🕓"] = "clock4", ["🕔"] = "clock5", ["🕕"] = "clock6", ["🕖"] = "clock7", ["🕗"] = "clock8", ["🕘"] = "clock9", ["🕙"] = "clock10", ["🕚"] = "clock11", ["🕛"] = "clock12", ["🕜"] = "clock130", ["🕝"] = "clock230", ["🕞"] = "clock330", ["🕟"] = "clock430", ["🕠"] = "clock530", ["🕡"] = "clock630", ["🕢"] = "clock730", ["🕣"] = "clock830", ["🕤"] = "clock930", ["🕥"] = "clock1030", ["🕦"] = "clock1130", ["🕧"] = "clock1230", ["♀️"] = "female_sign", ["♂️"] = "male_sign", ["⚧"] = "transgender_symbol", ["⚕️"] = "medical_symbol", ["🇿"] = "regional_indicator_z", ["🇾"] = "regional_indicator_y", ["🇽"] = "regional_indicator_x", ["🇼"] = "regional_indicator_w", ["🇻"] = "regional_indicator_v", ["🇺"] = "regional_indicator_u", ["🇹"] = "regional_indicator_t", ["🇸"] = "regional_indicator_s", ["🇷"] = "regional_indicator_r", ["🇶"] = "regional_indicator_q", ["🇵"] = "regional_indicator_p", ["🇴"] = "regional_indicator_o", ["🇳"] = "regional_indicator_n", ["🇲"] = "regional_indicator_m", ["🇱"] = "regional_indicator_l", ["🇰"] = "regional_indicator_k", ["🇯"] = "regional_indicator_j", ["🇮"] = "regional_indicator_i", ["🇭"] = "regional_indicator_h", ["🇬"] = "regional_indicator_g", ["🇫"] = "regional_indicator_f", ["🇪"] = "regional_indicator_e", ["🇩"] = "regional_indicator_d", ["🇨"] = "regional_indicator_c", ["🇧"] = "regional_indicator_b", ["🇦"] = "regional_indicator_a", ["🏳️"] = "flag_white", ["🏴"] = "flag_black", ["🏁"] = "checkered_flag", ["🚩"] = "triangular_flag_on_post", ["🏳️‍🌈"] = "rainbow_flag", ["🏳️‍⚧️"] = "transgender_flag", ["🏴‍☠️"] = "pirate_flag", ["🇦🇫"] = "flag_af", ["🇦🇽"] = "flag_ax", ["🇦🇱"] = "flag_al", ["🇩🇿"] = "flag_dz", ["🇦🇸"] = "flag_as", ["🇦🇩"] = "flag_ad", ["🇦🇴"] = "flag_ao", ["🇦🇮"] = "flag_ai", ["🇦🇶"] = "flag_aq", ["🇦🇬"] = "flag_ag", ["🇦🇷"] = "flag_ar", ["🇦🇲"] = "flag_am", ["🇦🇼"] = "flag_aw", ["🇦🇺"] = "flag_au", ["🇦🇹"] = "flag_at", ["🇦🇿"] = "flag_az", ["🇧🇸"] = "flag_bs", ["🇧🇭"] = "flag_bh", ["🇧🇩"] = "flag_bd", ["🇧🇧"] = "flag_bb", ["🇧🇾"] = "flag_by", ["🇧🇪"] = "flag_be", ["🇧🇿"] = "flag_bz", ["🇧🇯"] = "flag_bj", ["🇧🇲"] = "flag_bm", ["🇧🇹"] = "flag_bt", ["🇧🇴"] = "flag_bo", ["🇧🇦"] = "flag_ba", ["🇧🇼"] = "flag_bw", ["🇧🇷"] = "flag_br", ["🇮🇴"] = "flag_io", ["🇻🇬"] = "flag_vg", ["🇧🇳"] = "flag_bn", ["🇧🇬"] = "flag_bg", ["🇧🇫"] = "flag_bf", ["🇧🇮"] = "flag_bi", ["🇰🇭"] = "flag_kh", ["🇨🇲"] = "flag_cm", ["🇨🇦"] = "flag_ca", ["🇮🇨"] = "flag_ic", ["🇨🇻"] = "flag_cv", ["🇧🇶"] = "flag_bq", ["🇰🇾"] = "flag_ky", ["🇨🇫"] = "flag_cf", ["🇹🇩"] = "flag_td", ["🇨🇱"] = "flag_cl", ["🇨🇳"] = "flag_cn", ["🇨🇽"] = "flag_cx", ["🇨🇨"] = "flag_cc", ["🇨🇴"] = "flag_co", ["🇰🇲"] = "flag_km", ["🇨🇬"] = "flag_cg", ["🇨🇩"] = "flag_cd", ["🇨🇰"] = "flag_ck", ["🇨🇷"] = "flag_cr", ["🇨🇮"] = "flag_ci", ["🇭🇷"] = "flag_hr", ["🇨🇺"] = "flag_cu", ["🇨🇼"] = "flag_cw", ["🇨🇾"] = "flag_cy", ["🇨🇿"] = "flag_cz", ["🇩🇰"] = "flag_dk", ["🇩🇯"] = "flag_dj", ["🇩🇲"] = "flag_dm", ["🇩🇴"] = "flag_do", ["🇪🇨"] = "flag_ec", ["🇪🇬"] = "flag_eg", ["🇸🇻"] = "flag_sv", ["🇬🇶"] = "flag_gq", ["🇪🇷"] = "flag_er", ["🇪🇪"] = "flag_ee", ["🇪🇹"] = "flag_et", ["🇪🇺"] = "flag_eu", ["🇫🇰"] = "flag_fk", ["🇫🇴"] = "flag_fo", ["🇫🇯"] = "flag_fj", ["🇫🇮"] = "flag_fi", ["🇫🇷"] = "flag_fr", ["🇬🇫"] = "flag_gf", ["🇵🇫"] = "flag_pf", ["🇹🇫"] = "flag_tf", ["🇬🇦"] = "flag_ga", ["🇬🇲"] = "flag_gm", ["🇬🇪"] = "flag_ge", ["🇩🇪"] = "flag_de", ["🇬🇭"] = "flag_gh", ["🇬🇮"] = "flag_gi", ["🇬🇷"] = "flag_gr", ["🇬🇱"] = "flag_gl", ["🇬🇩"] = "flag_gd", ["🇬🇵"] = "flag_gp", ["🇬🇺"] = "flag_gu", ["🇬🇹"] = "flag_gt", ["🇬🇬"] = "flag_gg", ["🇬🇳"] = "flag_gn", ["🇬🇼"] = "flag_gw", ["🇬🇾"] = "flag_gy", ["🇭🇹"] = "flag_ht", ["🇭🇳"] = "flag_hn", ["🇭🇰"] = "flag_hk", ["🇭🇺"] = "flag_hu", ["🇮🇸"] = "flag_is", ["🇮🇳"] = "flag_in", ["🇮🇩"] = "flag_id", ["🇮🇷"] = "flag_ir", ["🇮🇶"] = "flag_iq", ["🇮🇪"] = "flag_ie", ["🇮🇲"] = "flag_im", ["🇮🇱"] = "flag_il", ["🇮🇹"] = "flag_it", ["🇯🇲"] = "flag_jm", ["🇯🇵"] = "flag_jp", ["🎌"] = "crossed_flags", ["🇯🇪"] = "flag_je", ["🇯🇴"] = "flag_jo", ["🇰🇿"] = "flag_kz", ["🇰🇪"] = "flag_ke", ["🇰🇮"] = "flag_ki", ["🇽🇰"] = "flag_xk", ["🇰🇼"] = "flag_kw", ["🇰🇬"] = "flag_kg", ["🇱🇦"] = "flag_la", ["🇱🇻"] = "flag_lv", ["🇱🇧"] = "flag_lb", ["🇱🇸"] = "flag_ls", ["🇱🇷"] = "flag_lr", ["🇱🇾"] = "flag_ly", ["🇱🇮"] = "flag_li", ["🇱🇹"] = "flag_lt", ["🇱🇺"] = "flag_lu", ["🇲🇴"] = "flag_mo", ["🇲🇰"] = "flag_mk", ["🇲🇬"] = "flag_mg", ["🇲🇼"] = "flag_mw", ["🇲🇾"] = "flag_my", ["🇲🇻"] = "flag_mv", ["🇲🇱"] = "flag_ml", ["🇲🇹"] = "flag_mt", ["🇲🇭"] = "flag_mh", ["🇲🇶"] = "flag_mq", ["🇲🇷"] = "flag_mr", ["🇲🇺"] = "flag_mu", ["🇾🇹"] = "flag_yt", ["🇲🇽"] = "flag_mx", ["🇫🇲"] = "flag_fm", ["🇲🇩"] = "flag_md", ["🇲🇨"] = "flag_mc", ["🇲🇳"] = "flag_mn", ["🇲🇪"] = "flag_me", ["🇲🇸"] = "flag_ms", ["🇲🇦"] = "flag_ma", ["🇲🇿"] = "flag_mz", ["🇲🇲"] = "flag_mm", ["🇳🇦"] = "flag_na", ["🇳🇷"] = "flag_nr", ["🇳🇵"] = "flag_np", ["🇳🇱"] = "flag_nl", ["🇳🇨"] = "flag_nc", ["🇳🇿"] = "flag_nz", ["🇳🇮"] = "flag_ni", ["🇳🇪"] = "flag_ne", ["🇳🇬"] = "flag_ng", ["🇳🇺"] = "flag_nu", ["🇳🇫"] = "flag_nf", ["🇰🇵"] = "flag_kp", ["🇲🇵"] = "flag_mp", ["🇳🇴"] = "flag_no", ["🇴🇲"] = "flag_om", ["🇵🇰"] = "flag_pk", ["🇵🇼"] = "flag_pw", ["🇵🇸"] = "flag_ps", ["🇵🇦"] = "flag_pa", ["🇵🇬"] = "flag_pg", ["🇵🇾"] = "flag_py", ["🇵🇪"] = "flag_pe", ["🇵🇭"] = "flag_ph", ["🇵🇳"] = "flag_pn", ["🇵🇱"] = "flag_pl", ["🇵🇹"] = "flag_pt", ["🇵🇷"] = "flag_pr", ["🇶🇦"] = "flag_qa", ["🇷🇪"] = "flag_re", ["🇷🇴"] = "flag_ro", ["🇷🇺"] = "flag_ru", ["🇷🇼"] = "flag_rw", ["🇼🇸"] = "flag_ws", ["🇸🇲"] = "flag_sm", ["🇸🇹"] = "flag_st", ["🇸🇦"] = "flag_sa", ["🇸🇳"] = "flag_sn", ["🇷🇸"] = "flag_rs", ["🇸🇨"] = "flag_sc", ["🇸🇱"] = "flag_sl", ["🇸🇬"] = "flag_sg", ["🇸🇽"] = "flag_sx", ["🇸🇰"] = "flag_sk", ["🇸🇮"] = "flag_si", ["🇬🇸"] = "flag_gs", ["🇸🇧"] = "flag_sb", ["🇸🇴"] = "flag_so", ["🇿🇦"] = "flag_za", ["🇰🇷"] = "flag_kr", ["🇸🇸"] = "flag_ss", ["🇪🇸"] = "flag_es", ["🇱🇰"] = "flag_lk", ["🇧🇱"] = "flag_bl", ["🇸🇭"] = "flag_sh", ["🇰🇳"] = "flag_kn", ["🇱🇨"] = "flag_lc", ["🇵🇲"] = "flag_pm", ["🇻🇨"] = "flag_vc", ["🇸🇩"] = "flag_sd", ["🇸🇷"] = "flag_sr", ["🇸🇿"] = "flag_sz", ["🇸🇪"] = "flag_se", ["🇨🇭"] = "flag_ch", ["🇸🇾"] = "flag_sy", ["🇹🇼"] = "flag_tw", ["🇹🇯"] = "flag_tj", ["🇹🇿"] = "flag_tz", ["🇹🇭"] = "flag_th", ["🇹🇱"] = "flag_tl", ["🇹🇬"] = "flag_tg", ["🇹🇰"] = "flag_tk", ["🇹🇴"] = "flag_to", ["🇹🇹"] = "flag_tt", ["🇹🇳"] = "flag_tn", ["🇹🇷"] = "flag_tr", ["🇹🇲"] = "flag_tm", ["🇹🇨"] = "flag_tc", ["🇻🇮"] = "flag_vi", ["🇹🇻"] = "flag_tv", ["🇺🇬"] = "flag_ug", ["🇺🇦"] = "flag_ua", ["🇦🇪"] = "flag_ae", ["🇬🇧"] = "flag_gb", ["🏴󠁧󠁢󠁥󠁮󠁧󠁿"] = "england", ["🏴󠁧󠁢󠁳󠁣󠁴󠁿"] = "scotland", ["🏴󠁧󠁢󠁷󠁬󠁳󠁿"] = "wales", ["🇺🇸"] = "flag_us", ["🇺🇾"] = "flag_uy", ["🇺🇿"] = "flag_uz", ["🇻🇺"] = "flag_vu", ["🇻🇦"] = "flag_va", ["🇻🇪"] = "flag_ve", ["🇻🇳"] = "flag_vn", ["🇼🇫"] = "flag_wf", ["🇪🇭"] = "flag_eh", ["🇾🇪"] = "flag_ye", ["🇿🇲"] = "flag_zm", ["🇿🇼"] = "flag_zw", ["🇦🇨"] = "flag_ac", ["🇧🇻"] = "flag_bv", ["🇨🇵"] = "flag_cp", ["🇪🇦"] = "flag_ea", ["🇩🇬"] = "flag_dg", ["🇭🇲"] = "flag_hm", ["🇲🇫"] = "flag_mf", ["🇸🇯"] = "flag_sj", ["🇹🇦"] = "flag_ta", ["🇺🇲"] = "flag_um", ["🇺🇳"] = "united_nations", }; private static Dictionary _fromCodes = new(5000, StringComparer.Ordinal) { ["grinning"] = "😀", ["smiley"] = "😃", ["smile"] = "😄", ["grin"] = "😁", ["laughing"] = "😆", ["satisfied"] = "😆", ["sweat_smile"] = "😅", ["joy"] = "😂", ["rofl"] = "🤣", ["rolling_on_the_floor_laughing"] = "🤣", ["relaxed"] = "☺️", ["blush"] = "😊", ["innocent"] = "😇", ["slight_smile"] = "🙂", ["slightly_smiling_face"] = "🙂", ["upside_down"] = "🙃", ["upside_down_face"] = "🙃", ["wink"] = "😉", ["relieved"] = "😌", ["smiling_face_with_tear"] = "🥲", ["heart_eyes"] = "😍", ["smiling_face_with_3_hearts"] = "🥰", ["kissing_heart"] = "😘", ["kissing"] = "😗", ["kissing_smiling_eyes"] = "😙", ["kissing_closed_eyes"] = "😚", ["yum"] = "😋", ["stuck_out_tongue"] = "😛", ["stuck_out_tongue_closed_eyes"] = "😝", ["stuck_out_tongue_winking_eye"] = "😜", ["zany_face"] = "🤪", ["face_with_raised_eyebrow"] = "🤨", ["face_with_monocle"] = "🧐", ["nerd"] = "🤓", ["nerd_face"] = "🤓", ["sunglasses"] = "😎", ["star_struck"] = "🤩", ["partying_face"] = "🥳", ["smirk"] = "😏", ["unamused"] = "😒", ["disappointed"] = "😞", ["pensive"] = "😔", ["worried"] = "😟", ["confused"] = "😕", ["slight_frown"] = "🙁", ["slightly_frowning_face"] = "🙁", ["frowning2"] = "☹️", ["white_frowning_face"] = "☹️", ["persevere"] = "😣", ["confounded"] = "😖", ["tired_face"] = "😫", ["weary"] = "😩", ["pleading_face"] = "🥺", ["cry"] = "😢", ["sob"] = "😭", ["triumph"] = "😤", ["face_exhaling"] = "😮‍💨", ["angry"] = "😠", ["rage"] = "😡", ["face_with_symbols_over_mouth"] = "🤬", ["exploding_head"] = "🤯", ["flushed"] = "😳", ["face_in_clouds"] = "😶‍🌫️", ["hot_face"] = "🥵", ["cold_face"] = "🥶", ["scream"] = "😱", ["fearful"] = "😨", ["cold_sweat"] = "😰", ["disappointed_relieved"] = "😥", ["sweat"] = "😓", ["hugging"] = "🤗", ["hugging_face"] = "🤗", ["thinking"] = "🤔", ["thinking_face"] = "🤔", ["face_with_hand_over_mouth"] = "🤭", ["yawning_face"] = "🥱", ["shushing_face"] = "🤫", ["lying_face"] = "🤥", ["liar"] = "🤥", ["no_mouth"] = "😶", ["neutral_face"] = "😐", ["expressionless"] = "😑", ["grimacing"] = "😬", ["rolling_eyes"] = "🙄", ["face_with_rolling_eyes"] = "🙄", ["hushed"] = "😯", ["frowning"] = "😦", ["anguished"] = "😧", ["open_mouth"] = "😮", ["astonished"] = "😲", ["sleeping"] = "😴", ["drooling_face"] = "🤤", ["drool"] = "🤤", ["sleepy"] = "😪", ["dizzy_face"] = "😵", ["face_with_spiral_eyes"] = "😵‍💫", ["zipper_mouth"] = "🤐", ["zipper_mouth_face"] = "🤐", ["woozy_face"] = "🥴", ["nauseated_face"] = "🤢", ["sick"] = "🤢", ["face_vomiting"] = "🤮", ["sneezing_face"] = "🤧", ["sneeze"] = "🤧", ["mask"] = "😷", ["thermometer_face"] = "🤒", ["face_with_thermometer"] = "🤒", ["head_bandage"] = "🤕", ["face_with_head_bandage"] = "🤕", ["money_mouth"] = "🤑", ["money_mouth_face"] = "🤑", ["cowboy"] = "🤠", ["face_with_cowboy_hat"] = "🤠", ["disguised_face"] = "🥸", ["smiling_imp"] = "😈", ["imp"] = "👿", ["japanese_ogre"] = "👹", ["japanese_goblin"] = "👺", ["clown"] = "🤡", ["clown_face"] = "🤡", ["poop"] = "💩", ["shit"] = "💩", ["hankey"] = "💩", ["poo"] = "💩", ["ghost"] = "👻", ["skull"] = "💀", ["skeleton"] = "💀", ["skull_crossbones"] = "☠️", ["skull_and_crossbones"] = "☠️", ["alien"] = "👽", ["space_invader"] = "👾", ["robot"] = "🤖", ["robot_face"] = "🤖", ["jack_o_lantern"] = "🎃", ["smiley_cat"] = "😺", ["smile_cat"] = "😸", ["joy_cat"] = "😹", ["heart_eyes_cat"] = "😻", ["smirk_cat"] = "😼", ["kissing_cat"] = "😽", ["scream_cat"] = "🙀", ["crying_cat_face"] = "😿", ["pouting_cat"] = "😾", ["palms_up_together"] = "🤲", ["palms_up_together_tone1"] = "🤲🏻", ["palms_up_together_light_skin_tone"] = "🤲🏻", ["palms_up_together_tone2"] = "🤲🏼", ["palms_up_together_medium_light_skin_tone"] = "🤲🏼", ["palms_up_together_tone3"] = "🤲🏽", ["palms_up_together_medium_skin_tone"] = "🤲🏽", ["palms_up_together_tone4"] = "🤲🏾", ["palms_up_together_medium_dark_skin_tone"] = "🤲🏾", ["palms_up_together_tone5"] = "🤲🏿", ["palms_up_together_dark_skin_tone"] = "🤲🏿", ["open_hands"] = "👐", ["open_hands_tone1"] = "👐🏻", ["open_hands_tone2"] = "👐🏼", ["open_hands_tone3"] = "👐🏽", ["open_hands_tone4"] = "👐🏾", ["open_hands_tone5"] = "👐🏿", ["raised_hands"] = "🙌", ["raised_hands_tone1"] = "🙌🏻", ["raised_hands_tone2"] = "🙌🏼", ["raised_hands_tone3"] = "🙌🏽", ["raised_hands_tone4"] = "🙌🏾", ["raised_hands_tone5"] = "🙌🏿", ["clap"] = "👏", ["clap_tone1"] = "👏🏻", ["clap_tone2"] = "👏🏼", ["clap_tone3"] = "👏🏽", ["clap_tone4"] = "👏🏾", ["clap_tone5"] = "👏🏿", ["handshake"] = "🤝", ["shaking_hands"] = "🤝", ["thumbsup"] = "👍", ["+1"] = "👍", ["thumbup"] = "👍", ["thumbsup_tone1"] = "👍🏻", ["+1_tone1"] = "👍🏻", ["thumbup_tone1"] = "👍🏻", ["thumbsup_tone2"] = "👍🏼", ["+1_tone2"] = "👍🏼", ["thumbup_tone2"] = "👍🏼", ["thumbsup_tone3"] = "👍🏽", ["+1_tone3"] = "👍🏽", ["thumbup_tone3"] = "👍🏽", ["thumbsup_tone4"] = "👍🏾", ["+1_tone4"] = "👍🏾", ["thumbup_tone4"] = "👍🏾", ["thumbsup_tone5"] = "👍🏿", ["+1_tone5"] = "👍🏿", ["thumbup_tone5"] = "👍🏿", ["thumbsdown"] = "👎", ["-1"] = "👎", ["thumbdown"] = "👎", ["thumbsdown_tone1"] = "👎🏻", ["_1_tone1"] = "👎🏻", ["thumbdown_tone1"] = "👎🏻", ["thumbsdown_tone2"] = "👎🏼", ["_1_tone2"] = "👎🏼", ["thumbdown_tone2"] = "👎🏼", ["thumbsdown_tone3"] = "👎🏽", ["_1_tone3"] = "👎🏽", ["thumbdown_tone3"] = "👎🏽", ["thumbsdown_tone4"] = "👎🏾", ["_1_tone4"] = "👎🏾", ["thumbdown_tone4"] = "👎🏾", ["thumbsdown_tone5"] = "👎🏿", ["_1_tone5"] = "👎🏿", ["thumbdown_tone5"] = "👎🏿", ["punch"] = "👊", ["punch_tone1"] = "👊🏻", ["punch_tone2"] = "👊🏼", ["punch_tone3"] = "👊🏽", ["punch_tone4"] = "👊🏾", ["punch_tone5"] = "👊🏿", ["fist"] = "✊", ["fist_tone1"] = "✊🏻", ["fist_tone2"] = "✊🏼", ["fist_tone3"] = "✊🏽", ["fist_tone4"] = "✊🏾", ["fist_tone5"] = "✊🏿", ["left_facing_fist"] = "🤛", ["left_fist"] = "🤛", ["left_facing_fist_tone1"] = "🤛🏻", ["left_fist_tone1"] = "🤛🏻", ["left_facing_fist_tone2"] = "🤛🏼", ["left_fist_tone2"] = "🤛🏼", ["left_facing_fist_tone3"] = "🤛🏽", ["left_fist_tone3"] = "🤛🏽", ["left_facing_fist_tone4"] = "🤛🏾", ["left_fist_tone4"] = "🤛🏾", ["left_facing_fist_tone5"] = "🤛🏿", ["left_fist_tone5"] = "🤛🏿", ["right_facing_fist"] = "🤜", ["right_fist"] = "🤜", ["right_facing_fist_tone1"] = "🤜🏻", ["right_fist_tone1"] = "🤜🏻", ["right_facing_fist_tone2"] = "🤜🏼", ["right_fist_tone2"] = "🤜🏼", ["right_facing_fist_tone3"] = "🤜🏽", ["right_fist_tone3"] = "🤜🏽", ["right_facing_fist_tone4"] = "🤜🏾", ["right_fist_tone4"] = "🤜🏾", ["right_facing_fist_tone5"] = "🤜🏿", ["right_fist_tone5"] = "🤜🏿", ["fingers_crossed"] = "🤞", ["hand_with_index_and_middle_finger_crossed"] = "🤞", ["fingers_crossed_tone1"] = "🤞🏻", ["hand_with_index_and_middle_fingers_crossed_tone1"] = "🤞🏻", ["fingers_crossed_tone2"] = "🤞🏼", ["hand_with_index_and_middle_fingers_crossed_tone2"] = "🤞🏼", ["fingers_crossed_tone3"] = "🤞🏽", ["hand_with_index_and_middle_fingers_crossed_tone3"] = "🤞🏽", ["fingers_crossed_tone4"] = "🤞🏾", ["hand_with_index_and_middle_fingers_crossed_tone4"] = "🤞🏾", ["fingers_crossed_tone5"] = "🤞🏿", ["hand_with_index_and_middle_fingers_crossed_tone5"] = "🤞🏿", ["v"] = "✌️", ["v_tone1"] = "✌🏻", ["v_tone2"] = "✌🏼", ["v_tone3"] = "✌🏽", ["v_tone4"] = "✌🏾", ["v_tone5"] = "✌🏿", ["love_you_gesture"] = "🤟", ["love_you_gesture_tone1"] = "🤟🏻", ["love_you_gesture_light_skin_tone"] = "🤟🏻", ["love_you_gesture_tone2"] = "🤟🏼", ["love_you_gesture_medium_light_skin_tone"] = "🤟🏼", ["love_you_gesture_tone3"] = "🤟🏽", ["love_you_gesture_medium_skin_tone"] = "🤟🏽", ["love_you_gesture_tone4"] = "🤟🏾", ["love_you_gesture_medium_dark_skin_tone"] = "🤟🏾", ["love_you_gesture_tone5"] = "🤟🏿", ["love_you_gesture_dark_skin_tone"] = "🤟🏿", ["metal"] = "🤘", ["sign_of_the_horns"] = "🤘", ["metal_tone1"] = "🤘🏻", ["sign_of_the_horns_tone1"] = "🤘🏻", ["metal_tone2"] = "🤘🏼", ["sign_of_the_horns_tone2"] = "🤘🏼", ["metal_tone3"] = "🤘🏽", ["sign_of_the_horns_tone3"] = "🤘🏽", ["metal_tone4"] = "🤘🏾", ["sign_of_the_horns_tone4"] = "🤘🏾", ["metal_tone5"] = "🤘🏿", ["sign_of_the_horns_tone5"] = "🤘🏿", ["ok_hand"] = "👌", ["ok_hand_tone1"] = "👌🏻", ["ok_hand_tone2"] = "👌🏼", ["ok_hand_tone3"] = "👌🏽", ["ok_hand_tone4"] = "👌🏾", ["ok_hand_tone5"] = "👌🏿", ["pinching_hand"] = "🤏", ["pinching_hand_tone1"] = "🤏🏻", ["pinching_hand_light_skin_tone"] = "🤏🏻", ["pinching_hand_tone2"] = "🤏🏼", ["pinching_hand_medium_light_skin_tone"] = "🤏🏼", ["pinching_hand_tone3"] = "🤏🏽", ["pinching_hand_medium_skin_tone"] = "🤏🏽", ["pinching_hand_tone4"] = "🤏🏾", ["pinching_hand_medium_dark_skin_tone"] = "🤏🏾", ["pinching_hand_tone5"] = "🤏🏿", ["pinching_hand_dark_skin_tone"] = "🤏🏿", ["pinched_fingers"] = "🤌", ["pinched_fingers_tone2"] = "🤌🏼", ["pinched_fingers_medium_light_skin_tone"] = "🤌🏼", ["pinched_fingers_tone1"] = "🤌🏻", ["pinched_fingers_light_skin_tone"] = "🤌🏻", ["pinched_fingers_tone3"] = "🤌🏽", ["pinched_fingers_medium_skin_tone"] = "🤌🏽", ["pinched_fingers_tone4"] = "🤌🏾", ["pinched_fingers_medium_dark_skin_tone"] = "🤌🏾", ["pinched_fingers_tone5"] = "🤌🏿", ["pinched_fingers_dark_skin_tone"] = "🤌🏿", ["point_left"] = "👈", ["point_left_tone1"] = "👈🏻", ["point_left_tone2"] = "👈🏼", ["point_left_tone3"] = "👈🏽", ["point_left_tone4"] = "👈🏾", ["point_left_tone5"] = "👈🏿", ["point_right"] = "👉", ["point_right_tone1"] = "👉🏻", ["point_right_tone2"] = "👉🏼", ["point_right_tone3"] = "👉🏽", ["point_right_tone4"] = "👉🏾", ["point_right_tone5"] = "👉🏿", ["point_up_2"] = "👆", ["point_up_2_tone1"] = "👆🏻", ["point_up_2_tone2"] = "👆🏼", ["point_up_2_tone3"] = "👆🏽", ["point_up_2_tone4"] = "👆🏾", ["point_up_2_tone5"] = "👆🏿", ["point_down"] = "👇", ["point_down_tone1"] = "👇🏻", ["point_down_tone2"] = "👇🏼", ["point_down_tone3"] = "👇🏽", ["point_down_tone4"] = "👇🏾", ["point_down_tone5"] = "👇🏿", ["point_up"] = "☝️", ["point_up_tone1"] = "☝🏻", ["point_up_tone2"] = "☝🏼", ["point_up_tone3"] = "☝🏽", ["point_up_tone4"] = "☝🏾", ["point_up_tone5"] = "☝🏿", ["raised_hand"] = "✋", ["raised_hand_tone1"] = "✋🏻", ["raised_hand_tone2"] = "✋🏼", ["raised_hand_tone3"] = "✋🏽", ["raised_hand_tone4"] = "✋🏾", ["raised_hand_tone5"] = "✋🏿", ["raised_back_of_hand"] = "🤚", ["back_of_hand"] = "🤚", ["raised_back_of_hand_tone1"] = "🤚🏻", ["back_of_hand_tone1"] = "🤚🏻", ["raised_back_of_hand_tone2"] = "🤚🏼", ["back_of_hand_tone2"] = "🤚🏼", ["raised_back_of_hand_tone3"] = "🤚🏽", ["back_of_hand_tone3"] = "🤚🏽", ["raised_back_of_hand_tone4"] = "🤚🏾", ["back_of_hand_tone4"] = "🤚🏾", ["raised_back_of_hand_tone5"] = "🤚🏿", ["back_of_hand_tone5"] = "🤚🏿", ["hand_splayed"] = "🖐️", ["raised_hand_with_fingers_splayed"] = "🖐️", ["hand_splayed_tone1"] = "🖐🏻", ["raised_hand_with_fingers_splayed_tone1"] = "🖐🏻", ["hand_splayed_tone2"] = "🖐🏼", ["raised_hand_with_fingers_splayed_tone2"] = "🖐🏼", ["hand_splayed_tone3"] = "🖐🏽", ["raised_hand_with_fingers_splayed_tone3"] = "🖐🏽", ["hand_splayed_tone4"] = "🖐🏾", ["raised_hand_with_fingers_splayed_tone4"] = "🖐🏾", ["hand_splayed_tone5"] = "🖐🏿", ["raised_hand_with_fingers_splayed_tone5"] = "🖐🏿", ["vulcan"] = "🖖", ["raised_hand_with_part_between_middle_and_ring_fingers"] = "🖖", ["vulcan_tone1"] = "🖖🏻", ["raised_hand_with_part_between_middle_and_ring_fingers_tone1"] = "🖖🏻", ["vulcan_tone2"] = "🖖🏼", ["raised_hand_with_part_between_middle_and_ring_fingers_tone2"] = "🖖🏼", ["vulcan_tone3"] = "🖖🏽", ["raised_hand_with_part_between_middle_and_ring_fingers_tone3"] = "🖖🏽", ["vulcan_tone4"] = "🖖🏾", ["raised_hand_with_part_between_middle_and_ring_fingers_tone4"] = "🖖🏾", ["vulcan_tone5"] = "🖖🏿", ["raised_hand_with_part_between_middle_and_ring_fingers_tone5"] = "🖖🏿", ["wave"] = "👋", ["wave_tone1"] = "👋🏻", ["wave_tone2"] = "👋🏼", ["wave_tone3"] = "👋🏽", ["wave_tone4"] = "👋🏾", ["wave_tone5"] = "👋🏿", ["call_me"] = "🤙", ["call_me_hand"] = "🤙", ["call_me_tone1"] = "🤙🏻", ["call_me_hand_tone1"] = "🤙🏻", ["call_me_tone2"] = "🤙🏼", ["call_me_hand_tone2"] = "🤙🏼", ["call_me_tone3"] = "🤙🏽", ["call_me_hand_tone3"] = "🤙🏽", ["call_me_tone4"] = "🤙🏾", ["call_me_hand_tone4"] = "🤙🏾", ["call_me_tone5"] = "🤙🏿", ["call_me_hand_tone5"] = "🤙🏿", ["muscle"] = "💪", ["muscle_tone1"] = "💪🏻", ["muscle_tone2"] = "💪🏼", ["muscle_tone3"] = "💪🏽", ["muscle_tone4"] = "💪🏾", ["muscle_tone5"] = "💪🏿", ["mechanical_arm"] = "🦾", ["middle_finger"] = "🖕", ["reversed_hand_with_middle_finger_extended"] = "🖕", ["middle_finger_tone1"] = "🖕🏻", ["reversed_hand_with_middle_finger_extended_tone1"] = "🖕🏻", ["middle_finger_tone2"] = "🖕🏼", ["reversed_hand_with_middle_finger_extended_tone2"] = "🖕🏼", ["middle_finger_tone3"] = "🖕🏽", ["reversed_hand_with_middle_finger_extended_tone3"] = "🖕🏽", ["middle_finger_tone4"] = "🖕🏾", ["reversed_hand_with_middle_finger_extended_tone4"] = "🖕🏾", ["middle_finger_tone5"] = "🖕🏿", ["reversed_hand_with_middle_finger_extended_tone5"] = "🖕🏿", ["writing_hand"] = "✍️", ["writing_hand_tone1"] = "✍🏻", ["writing_hand_tone2"] = "✍🏼", ["writing_hand_tone3"] = "✍🏽", ["writing_hand_tone4"] = "✍🏾", ["writing_hand_tone5"] = "✍🏿", ["pray"] = "🙏", ["pray_tone1"] = "🙏🏻", ["pray_tone2"] = "🙏🏼", ["pray_tone3"] = "🙏🏽", ["pray_tone4"] = "🙏🏾", ["pray_tone5"] = "🙏🏿", ["foot"] = "🦶", ["foot_tone1"] = "🦶🏻", ["foot_light_skin_tone"] = "🦶🏻", ["foot_tone2"] = "🦶🏼", ["foot_medium_light_skin_tone"] = "🦶🏼", ["foot_tone3"] = "🦶🏽", ["foot_medium_skin_tone"] = "🦶🏽", ["foot_tone4"] = "🦶🏾", ["foot_medium_dark_skin_tone"] = "🦶🏾", ["foot_tone5"] = "🦶🏿", ["foot_dark_skin_tone"] = "🦶🏿", ["leg"] = "🦵", ["leg_tone1"] = "🦵🏻", ["leg_light_skin_tone"] = "🦵🏻", ["leg_tone2"] = "🦵🏼", ["leg_medium_light_skin_tone"] = "🦵🏼", ["leg_tone3"] = "🦵🏽", ["leg_medium_skin_tone"] = "🦵🏽", ["leg_tone4"] = "🦵🏾", ["leg_medium_dark_skin_tone"] = "🦵🏾", ["leg_tone5"] = "🦵🏿", ["leg_dark_skin_tone"] = "🦵🏿", ["mechanical_leg"] = "🦿", ["lipstick"] = "💄", ["kiss"] = "💋", ["lips"] = "👄", ["tooth"] = "🦷", ["tongue"] = "👅", ["ear"] = "👂", ["ear_tone1"] = "👂🏻", ["ear_tone2"] = "👂🏼", ["ear_tone3"] = "👂🏽", ["ear_tone4"] = "👂🏾", ["ear_tone5"] = "👂🏿", ["ear_with_hearing_aid"] = "🦻", ["ear_with_hearing_aid_tone1"] = "🦻🏻", ["ear_with_hearing_aid_light_skin_tone"] = "🦻🏻", ["ear_with_hearing_aid_tone2"] = "🦻🏼", ["ear_with_hearing_aid_medium_light_skin_tone"] = "🦻🏼", ["ear_with_hearing_aid_tone3"] = "🦻🏽", ["ear_with_hearing_aid_medium_skin_tone"] = "🦻🏽", ["ear_with_hearing_aid_tone4"] = "🦻🏾", ["ear_with_hearing_aid_medium_dark_skin_tone"] = "🦻🏾", ["ear_with_hearing_aid_tone5"] = "🦻🏿", ["ear_with_hearing_aid_dark_skin_tone"] = "🦻🏿", ["nose"] = "👃", ["nose_tone1"] = "👃🏻", ["nose_tone2"] = "👃🏼", ["nose_tone3"] = "👃🏽", ["nose_tone4"] = "👃🏾", ["nose_tone5"] = "👃🏿", ["footprints"] = "👣", ["eye"] = "👁️", ["eyes"] = "👀", ["brain"] = "🧠", ["anatomical_heart"] = "🫀", ["lungs"] = "🫁", ["bone"] = "🦴", ["speaking_head"] = "🗣️", ["speaking_head_in_silhouette"] = "🗣️", ["bust_in_silhouette"] = "👤", ["busts_in_silhouette"] = "👥", ["people_hugging"] = "🫂", ["baby"] = "👶", ["baby_tone1"] = "👶🏻", ["baby_tone2"] = "👶🏼", ["baby_tone3"] = "👶🏽", ["baby_tone4"] = "👶🏾", ["baby_tone5"] = "👶🏿", ["girl"] = "👧", ["girl_tone1"] = "👧🏻", ["girl_tone2"] = "👧🏼", ["girl_tone3"] = "👧🏽", ["girl_tone4"] = "👧🏾", ["girl_tone5"] = "👧🏿", ["child"] = "🧒", ["child_tone1"] = "🧒🏻", ["child_light_skin_tone"] = "🧒🏻", ["child_tone2"] = "🧒🏼", ["child_medium_light_skin_tone"] = "🧒🏼", ["child_tone3"] = "🧒🏽", ["child_medium_skin_tone"] = "🧒🏽", ["child_tone4"] = "🧒🏾", ["child_medium_dark_skin_tone"] = "🧒🏾", ["child_tone5"] = "🧒🏿", ["child_dark_skin_tone"] = "🧒🏿", ["boy"] = "👦", ["boy_tone1"] = "👦🏻", ["boy_tone2"] = "👦🏼", ["boy_tone3"] = "👦🏽", ["boy_tone4"] = "👦🏾", ["boy_tone5"] = "👦🏿", ["woman"] = "👩", ["woman_tone1"] = "👩🏻", ["woman_tone2"] = "👩🏼", ["woman_tone3"] = "👩🏽", ["woman_tone4"] = "👩🏾", ["woman_tone5"] = "👩🏿", ["adult"] = "🧑", ["adult_tone1"] = "🧑🏻", ["adult_light_skin_tone"] = "🧑🏻", ["adult_tone2"] = "🧑🏼", ["adult_medium_light_skin_tone"] = "🧑🏼", ["adult_tone3"] = "🧑🏽", ["adult_medium_skin_tone"] = "🧑🏽", ["adult_tone4"] = "🧑🏾", ["adult_medium_dark_skin_tone"] = "🧑🏾", ["adult_tone5"] = "🧑🏿", ["adult_dark_skin_tone"] = "🧑🏿", ["man"] = "👨", ["man_tone1"] = "👨🏻", ["man_tone2"] = "👨🏼", ["man_tone3"] = "👨🏽", ["man_tone4"] = "👨🏾", ["man_tone5"] = "👨🏿", ["person_curly_hair"] = "🧑‍🦱", ["person_tone1_curly_hair"] = "🧑🏻‍🦱", ["person_light_skin_tone_curly_hair"] = "🧑🏻‍🦱", ["person_tone2_curly_hair"] = "🧑🏼‍🦱", ["person_medium_light_skin_tone_curly_hair"] = "🧑🏼‍🦱", ["person_tone3_curly_hair"] = "🧑🏽‍🦱", ["person_medium_skin_tone_curly_hair"] = "🧑🏽‍🦱", ["person_tone4_curly_hair"] = "🧑🏾‍🦱", ["person_medium_dark_skin_tone_curly_hair"] = "🧑🏾‍🦱", ["person_tone5_curly_hair"] = "🧑🏿‍🦱", ["person_dark_skin_tone_curly_hair"] = "🧑🏿‍🦱", ["woman_curly_haired"] = "👩‍🦱", ["woman_curly_haired_tone1"] = "👩🏻‍🦱", ["woman_curly_haired_light_skin_tone"] = "👩🏻‍🦱", ["woman_curly_haired_tone2"] = "👩🏼‍🦱", ["woman_curly_haired_medium_light_skin_tone"] = "👩🏼‍🦱", ["woman_curly_haired_tone3"] = "👩🏽‍🦱", ["woman_curly_haired_medium_skin_tone"] = "👩🏽‍🦱", ["woman_curly_haired_tone4"] = "👩🏾‍🦱", ["woman_curly_haired_medium_dark_skin_tone"] = "👩🏾‍🦱", ["woman_curly_haired_tone5"] = "👩🏿‍🦱", ["woman_curly_haired_dark_skin_tone"] = "👩🏿‍🦱", ["man_curly_haired"] = "👨‍🦱", ["man_curly_haired_tone1"] = "👨🏻‍🦱", ["man_curly_haired_light_skin_tone"] = "👨🏻‍🦱", ["man_curly_haired_tone2"] = "👨🏼‍🦱", ["man_curly_haired_medium_light_skin_tone"] = "👨🏼‍🦱", ["man_curly_haired_tone3"] = "👨🏽‍🦱", ["man_curly_haired_medium_skin_tone"] = "👨🏽‍🦱", ["man_curly_haired_tone4"] = "👨🏾‍🦱", ["man_curly_haired_medium_dark_skin_tone"] = "👨🏾‍🦱", ["man_curly_haired_tone5"] = "👨🏿‍🦱", ["man_curly_haired_dark_skin_tone"] = "👨🏿‍🦱", ["person_red_hair"] = "🧑‍🦰", ["person_tone1_red_hair"] = "🧑🏻‍🦰", ["person_light_skin_tone_red_hair"] = "🧑🏻‍🦰", ["person_tone2_red_hair"] = "🧑🏼‍🦰", ["person_medium_light_skin_tone_red_hair"] = "🧑🏼‍🦰", ["person_tone3_red_hair"] = "🧑🏽‍🦰", ["person_medium_skin_tone_red_hair"] = "🧑🏽‍🦰", ["person_tone4_red_hair"] = "🧑🏾‍🦰", ["person_medium_dark_skin_tone_red_hair"] = "🧑🏾‍🦰", ["person_tone5_red_hair"] = "🧑🏿‍🦰", ["person_dark_skin_tone_red_hair"] = "🧑🏿‍🦰", ["woman_red_haired"] = "👩‍🦰", ["woman_red_haired_tone1"] = "👩🏻‍🦰", ["woman_red_haired_light_skin_tone"] = "👩🏻‍🦰", ["woman_red_haired_tone2"] = "👩🏼‍🦰", ["woman_red_haired_medium_light_skin_tone"] = "👩🏼‍🦰", ["woman_red_haired_tone3"] = "👩🏽‍🦰", ["woman_red_haired_medium_skin_tone"] = "👩🏽‍🦰", ["woman_red_haired_tone4"] = "👩🏾‍🦰", ["woman_red_haired_medium_dark_skin_tone"] = "👩🏾‍🦰", ["woman_red_haired_tone5"] = "👩🏿‍🦰", ["woman_red_haired_dark_skin_tone"] = "👩🏿‍🦰", ["man_red_haired"] = "👨‍🦰", ["man_red_haired_tone1"] = "👨🏻‍🦰", ["man_red_haired_light_skin_tone"] = "👨🏻‍🦰", ["man_red_haired_tone2"] = "👨🏼‍🦰", ["man_red_haired_medium_light_skin_tone"] = "👨🏼‍🦰", ["man_red_haired_tone3"] = "👨🏽‍🦰", ["man_red_haired_medium_skin_tone"] = "👨🏽‍🦰", ["man_red_haired_tone4"] = "👨🏾‍🦰", ["man_red_haired_medium_dark_skin_tone"] = "👨🏾‍🦰", ["man_red_haired_tone5"] = "👨🏿‍🦰", ["man_red_haired_dark_skin_tone"] = "👨🏿‍🦰", ["blond_haired_woman"] = "👱‍♀️", ["blond_haired_woman_tone1"] = "👱🏻‍♀️", ["blond_haired_woman_light_skin_tone"] = "👱🏻‍♀️", ["blond_haired_woman_tone2"] = "👱🏼‍♀️", ["blond_haired_woman_medium_light_skin_tone"] = "👱🏼‍♀️", ["blond_haired_woman_tone3"] = "👱🏽‍♀️", ["blond_haired_woman_medium_skin_tone"] = "👱🏽‍♀️", ["blond_haired_woman_tone4"] = "👱🏾‍♀️", ["blond_haired_woman_medium_dark_skin_tone"] = "👱🏾‍♀️", ["blond_haired_woman_tone5"] = "👱🏿‍♀️", ["blond_haired_woman_dark_skin_tone"] = "👱🏿‍♀️", ["blond_haired_person"] = "👱", ["person_with_blond_hair"] = "👱", ["blond_haired_person_tone1"] = "👱🏻", ["person_with_blond_hair_tone1"] = "👱🏻", ["blond_haired_person_tone2"] = "👱🏼", ["person_with_blond_hair_tone2"] = "👱🏼", ["blond_haired_person_tone3"] = "👱🏽", ["person_with_blond_hair_tone3"] = "👱🏽", ["blond_haired_person_tone4"] = "👱🏾", ["person_with_blond_hair_tone4"] = "👱🏾", ["blond_haired_person_tone5"] = "👱🏿", ["person_with_blond_hair_tone5"] = "👱🏿", ["blond_haired_man"] = "👱‍♂️", ["blond_haired_man_tone1"] = "👱🏻‍♂️", ["blond_haired_man_light_skin_tone"] = "👱🏻‍♂️", ["blond_haired_man_tone2"] = "👱🏼‍♂️", ["blond_haired_man_medium_light_skin_tone"] = "👱🏼‍♂️", ["blond_haired_man_tone3"] = "👱🏽‍♂️", ["blond_haired_man_medium_skin_tone"] = "👱🏽‍♂️", ["blond_haired_man_tone4"] = "👱🏾‍♂️", ["blond_haired_man_medium_dark_skin_tone"] = "👱🏾‍♂️", ["blond_haired_man_tone5"] = "👱🏿‍♂️", ["blond_haired_man_dark_skin_tone"] = "👱🏿‍♂️", ["person_white_hair"] = "🧑‍🦳", ["person_tone1_white_hair"] = "🧑🏻‍🦳", ["person_light_skin_tone_white_hair"] = "🧑🏻‍🦳", ["person_tone2_white_hair"] = "🧑🏼‍🦳", ["person_medium_light_skin_tone_white_hair"] = "🧑🏼‍🦳", ["person_tone3_white_hair"] = "🧑🏽‍🦳", ["person_medium_skin_tone_white_hair"] = "🧑🏽‍🦳", ["person_tone4_white_hair"] = "🧑🏾‍🦳", ["person_medium_dark_skin_tone_white_hair"] = "🧑🏾‍🦳", ["person_tone5_white_hair"] = "🧑🏿‍🦳", ["person_dark_skin_tone_white_hair"] = "🧑🏿‍🦳", ["woman_white_haired"] = "👩‍🦳", ["woman_white_haired_tone1"] = "👩🏻‍🦳", ["woman_white_haired_light_skin_tone"] = "👩🏻‍🦳", ["woman_white_haired_tone2"] = "👩🏼‍🦳", ["woman_white_haired_medium_light_skin_tone"] = "👩🏼‍🦳", ["woman_white_haired_tone3"] = "👩🏽‍🦳", ["woman_white_haired_medium_skin_tone"] = "👩🏽‍🦳", ["woman_white_haired_tone4"] = "👩🏾‍🦳", ["woman_white_haired_medium_dark_skin_tone"] = "👩🏾‍🦳", ["woman_white_haired_tone5"] = "👩🏿‍🦳", ["woman_white_haired_dark_skin_tone"] = "👩🏿‍🦳", ["man_white_haired"] = "👨‍🦳", ["man_white_haired_tone1"] = "👨🏻‍🦳", ["man_white_haired_light_skin_tone"] = "👨🏻‍🦳", ["man_white_haired_tone2"] = "👨🏼‍🦳", ["man_white_haired_medium_light_skin_tone"] = "👨🏼‍🦳", ["man_white_haired_tone3"] = "👨🏽‍🦳", ["man_white_haired_medium_skin_tone"] = "👨🏽‍🦳", ["man_white_haired_tone4"] = "👨🏾‍🦳", ["man_white_haired_medium_dark_skin_tone"] = "👨🏾‍🦳", ["man_white_haired_tone5"] = "👨🏿‍🦳", ["man_white_haired_dark_skin_tone"] = "👨🏿‍🦳", ["person_bald"] = "🧑‍🦲", ["person_tone1_bald"] = "🧑🏻‍🦲", ["person_light_skin_tone_bald"] = "🧑🏻‍🦲", ["person_tone2_bald"] = "🧑🏼‍🦲", ["person_medium_light_skin_tone_bald"] = "🧑🏼‍🦲", ["person_tone3_bald"] = "🧑🏽‍🦲", ["person_medium_skin_tone_bald"] = "🧑🏽‍🦲", ["person_tone4_bald"] = "🧑🏾‍🦲", ["person_medium_dark_skin_tone_bald"] = "🧑🏾‍🦲", ["person_tone5_bald"] = "🧑🏿‍🦲", ["person_dark_skin_tone_bald"] = "🧑🏿‍🦲", ["woman_bald"] = "👩‍🦲", ["woman_bald_tone1"] = "👩🏻‍🦲", ["woman_bald_light_skin_tone"] = "👩🏻‍🦲", ["woman_bald_tone2"] = "👩🏼‍🦲", ["woman_bald_medium_light_skin_tone"] = "👩🏼‍🦲", ["woman_bald_tone3"] = "👩🏽‍🦲", ["woman_bald_medium_skin_tone"] = "👩🏽‍🦲", ["woman_bald_tone4"] = "👩🏾‍🦲", ["woman_bald_medium_dark_skin_tone"] = "👩🏾‍🦲", ["woman_bald_tone5"] = "👩🏿‍🦲", ["woman_bald_dark_skin_tone"] = "👩🏿‍🦲", ["man_bald"] = "👨‍🦲", ["man_bald_tone1"] = "👨🏻‍🦲", ["man_bald_light_skin_tone"] = "👨🏻‍🦲", ["man_bald_tone2"] = "👨🏼‍🦲", ["man_bald_medium_light_skin_tone"] = "👨🏼‍🦲", ["man_bald_tone3"] = "👨🏽‍🦲", ["man_bald_medium_skin_tone"] = "👨🏽‍🦲", ["man_bald_tone4"] = "👨🏾‍🦲", ["man_bald_medium_dark_skin_tone"] = "👨🏾‍🦲", ["man_bald_tone5"] = "👨🏿‍🦲", ["man_bald_dark_skin_tone"] = "👨🏿‍🦲", ["bearded_person"] = "🧔", ["bearded_person_tone1"] = "🧔🏻", ["bearded_person_light_skin_tone"] = "🧔🏻", ["bearded_person_tone2"] = "🧔🏼", ["bearded_person_medium_light_skin_tone"] = "🧔🏼", ["bearded_person_tone3"] = "🧔🏽", ["bearded_person_medium_skin_tone"] = "🧔🏽", ["bearded_person_tone4"] = "🧔🏾", ["bearded_person_medium_dark_skin_tone"] = "🧔🏾", ["bearded_person_tone5"] = "🧔🏿", ["bearded_person_dark_skin_tone"] = "🧔🏿", ["man_beard"] = "🧔‍♂️", ["man_tone1_beard"] = "🧔🏻‍♂️", ["man_light_skin_tone_beard"] = "🧔🏻‍♂️", ["man_tone2_beard"] = "🧔🏼‍♂️", ["man_medium_light_skin_tone_beard"] = "🧔🏼‍♂️", ["man_tone3_beard"] = "🧔🏽‍♂️", ["man_medium_skin_tone_beard"] = "🧔🏽‍♂️", ["man_tone4_beard"] = "🧔🏾‍♂️", ["man_medium_dark_skin_tone_beard"] = "🧔🏾‍♂️", ["man_tone5_beard"] = "🧔🏿‍♂️", ["man_dark_skin_tone_beard"] = "🧔🏿‍♂️", ["woman_beard"] = "🧔‍♀️", ["woman_tone1_beard"] = "🧔🏻‍♀️", ["woman_light_skin_tone_beard"] = "🧔🏻‍♀️", ["woman_tone2_beard"] = "🧔🏼‍♀️", ["woman_medium_light_skin_tone_beard"] = "🧔🏼‍♀️", ["woman_tone3_beard"] = "🧔🏽‍♀️", ["woman_medium_skin_tone_beard"] = "🧔🏽‍♀️", ["woman_tone4_beard"] = "🧔🏾‍♀️", ["woman_medium_dark_skin_tone_beard"] = "🧔🏾‍♀️", ["woman_tone5_beard"] = "🧔🏿‍♀️", ["woman_dark_skin_tone_beard"] = "🧔🏿‍♀️", ["older_woman"] = "👵", ["grandma"] = "👵", ["older_woman_tone1"] = "👵🏻", ["grandma_tone1"] = "👵🏻", ["older_woman_tone2"] = "👵🏼", ["grandma_tone2"] = "👵🏼", ["older_woman_tone3"] = "👵🏽", ["grandma_tone3"] = "👵🏽", ["older_woman_tone4"] = "👵🏾", ["grandma_tone4"] = "👵🏾", ["older_woman_tone5"] = "👵🏿", ["grandma_tone5"] = "👵🏿", ["older_adult"] = "🧓", ["older_adult_tone1"] = "🧓🏻", ["older_adult_light_skin_tone"] = "🧓🏻", ["older_adult_tone2"] = "🧓🏼", ["older_adult_medium_light_skin_tone"] = "🧓🏼", ["older_adult_tone3"] = "🧓🏽", ["older_adult_medium_skin_tone"] = "🧓🏽", ["older_adult_tone4"] = "🧓🏾", ["older_adult_medium_dark_skin_tone"] = "🧓🏾", ["older_adult_tone5"] = "🧓🏿", ["older_adult_dark_skin_tone"] = "🧓🏿", ["older_man"] = "👴", ["older_man_tone1"] = "👴🏻", ["older_man_tone2"] = "👴🏼", ["older_man_tone3"] = "👴🏽", ["older_man_tone4"] = "👴🏾", ["older_man_tone5"] = "👴🏿", ["man_with_chinese_cap"] = "👲", ["man_with_gua_pi_mao"] = "👲", ["man_with_chinese_cap_tone1"] = "👲🏻", ["man_with_gua_pi_mao_tone1"] = "👲🏻", ["man_with_chinese_cap_tone2"] = "👲🏼", ["man_with_gua_pi_mao_tone2"] = "👲🏼", ["man_with_chinese_cap_tone3"] = "👲🏽", ["man_with_gua_pi_mao_tone3"] = "👲🏽", ["man_with_chinese_cap_tone4"] = "👲🏾", ["man_with_gua_pi_mao_tone4"] = "👲🏾", ["man_with_chinese_cap_tone5"] = "👲🏿", ["man_with_gua_pi_mao_tone5"] = "👲🏿", ["person_wearing_turban"] = "👳", ["man_with_turban"] = "👳", ["person_wearing_turban_tone1"] = "👳🏻", ["man_with_turban_tone1"] = "👳🏻", ["person_wearing_turban_tone2"] = "👳🏼", ["man_with_turban_tone2"] = "👳🏼", ["person_wearing_turban_tone3"] = "👳🏽", ["man_with_turban_tone3"] = "👳🏽", ["person_wearing_turban_tone4"] = "👳🏾", ["man_with_turban_tone4"] = "👳🏾", ["person_wearing_turban_tone5"] = "👳🏿", ["man_with_turban_tone5"] = "👳🏿", ["woman_wearing_turban"] = "👳‍♀️", ["woman_wearing_turban_tone1"] = "👳🏻‍♀️", ["woman_wearing_turban_light_skin_tone"] = "👳🏻‍♀️", ["woman_wearing_turban_tone2"] = "👳🏼‍♀️", ["woman_wearing_turban_medium_light_skin_tone"] = "👳🏼‍♀️", ["woman_wearing_turban_tone3"] = "👳🏽‍♀️", ["woman_wearing_turban_medium_skin_tone"] = "👳🏽‍♀️", ["woman_wearing_turban_tone4"] = "👳🏾‍♀️", ["woman_wearing_turban_medium_dark_skin_tone"] = "👳🏾‍♀️", ["woman_wearing_turban_tone5"] = "👳🏿‍♀️", ["woman_wearing_turban_dark_skin_tone"] = "👳🏿‍♀️", ["man_wearing_turban"] = "👳‍♂️", ["man_wearing_turban_tone1"] = "👳🏻‍♂️", ["man_wearing_turban_light_skin_tone"] = "👳🏻‍♂️", ["man_wearing_turban_tone2"] = "👳🏼‍♂️", ["man_wearing_turban_medium_light_skin_tone"] = "👳🏼‍♂️", ["man_wearing_turban_tone3"] = "👳🏽‍♂️", ["man_wearing_turban_medium_skin_tone"] = "👳🏽‍♂️", ["man_wearing_turban_tone4"] = "👳🏾‍♂️", ["man_wearing_turban_medium_dark_skin_tone"] = "👳🏾‍♂️", ["man_wearing_turban_tone5"] = "👳🏿‍♂️", ["man_wearing_turban_dark_skin_tone"] = "👳🏿‍♂️", ["woman_with_headscarf"] = "🧕", ["woman_with_headscarf_tone1"] = "🧕🏻", ["woman_with_headscarf_light_skin_tone"] = "🧕🏻", ["woman_with_headscarf_tone2"] = "🧕🏼", ["woman_with_headscarf_medium_light_skin_tone"] = "🧕🏼", ["woman_with_headscarf_tone3"] = "🧕🏽", ["woman_with_headscarf_medium_skin_tone"] = "🧕🏽", ["woman_with_headscarf_tone4"] = "🧕🏾", ["woman_with_headscarf_medium_dark_skin_tone"] = "🧕🏾", ["woman_with_headscarf_tone5"] = "🧕🏿", ["woman_with_headscarf_dark_skin_tone"] = "🧕🏿", ["police_officer"] = "👮", ["cop"] = "👮", ["police_officer_tone1"] = "👮🏻", ["cop_tone1"] = "👮🏻", ["police_officer_tone2"] = "👮🏼", ["cop_tone2"] = "👮🏼", ["police_officer_tone3"] = "👮🏽", ["cop_tone3"] = "👮🏽", ["police_officer_tone4"] = "👮🏾", ["cop_tone4"] = "👮🏾", ["police_officer_tone5"] = "👮🏿", ["cop_tone5"] = "👮🏿", ["woman_police_officer"] = "👮‍♀️", ["woman_police_officer_tone1"] = "👮🏻‍♀️", ["woman_police_officer_light_skin_tone"] = "👮🏻‍♀️", ["woman_police_officer_tone2"] = "👮🏼‍♀️", ["woman_police_officer_medium_light_skin_tone"] = "👮🏼‍♀️", ["woman_police_officer_tone3"] = "👮🏽‍♀️", ["woman_police_officer_medium_skin_tone"] = "👮🏽‍♀️", ["woman_police_officer_tone4"] = "👮🏾‍♀️", ["woman_police_officer_medium_dark_skin_tone"] = "👮🏾‍♀️", ["woman_police_officer_tone5"] = "👮🏿‍♀️", ["woman_police_officer_dark_skin_tone"] = "👮🏿‍♀️", ["man_police_officer"] = "👮‍♂️", ["man_police_officer_tone1"] = "👮🏻‍♂️", ["man_police_officer_light_skin_tone"] = "👮🏻‍♂️", ["man_police_officer_tone2"] = "👮🏼‍♂️", ["man_police_officer_medium_light_skin_tone"] = "👮🏼‍♂️", ["man_police_officer_tone3"] = "👮🏽‍♂️", ["man_police_officer_medium_skin_tone"] = "👮🏽‍♂️", ["man_police_officer_tone4"] = "👮🏾‍♂️", ["man_police_officer_medium_dark_skin_tone"] = "👮🏾‍♂️", ["man_police_officer_tone5"] = "👮🏿‍♂️", ["man_police_officer_dark_skin_tone"] = "👮🏿‍♂️", ["construction_worker"] = "👷", ["construction_worker_tone1"] = "👷🏻", ["construction_worker_tone2"] = "👷🏼", ["construction_worker_tone3"] = "👷🏽", ["construction_worker_tone4"] = "👷🏾", ["construction_worker_tone5"] = "👷🏿", ["woman_construction_worker"] = "👷‍♀️", ["woman_construction_worker_tone1"] = "👷🏻‍♀️", ["woman_construction_worker_light_skin_tone"] = "👷🏻‍♀️", ["woman_construction_worker_tone2"] = "👷🏼‍♀️", ["woman_construction_worker_medium_light_skin_tone"] = "👷🏼‍♀️", ["woman_construction_worker_tone3"] = "👷🏽‍♀️", ["woman_construction_worker_medium_skin_tone"] = "👷🏽‍♀️", ["woman_construction_worker_tone4"] = "👷🏾‍♀️", ["woman_construction_worker_medium_dark_skin_tone"] = "👷🏾‍♀️", ["woman_construction_worker_tone5"] = "👷🏿‍♀️", ["woman_construction_worker_dark_skin_tone"] = "👷🏿‍♀️", ["man_construction_worker"] = "👷‍♂️", ["man_construction_worker_tone1"] = "👷🏻‍♂️", ["man_construction_worker_light_skin_tone"] = "👷🏻‍♂️", ["man_construction_worker_tone2"] = "👷🏼‍♂️", ["man_construction_worker_medium_light_skin_tone"] = "👷🏼‍♂️", ["man_construction_worker_tone3"] = "👷🏽‍♂️", ["man_construction_worker_medium_skin_tone"] = "👷🏽‍♂️", ["man_construction_worker_tone4"] = "👷🏾‍♂️", ["man_construction_worker_medium_dark_skin_tone"] = "👷🏾‍♂️", ["man_construction_worker_tone5"] = "👷🏿‍♂️", ["man_construction_worker_dark_skin_tone"] = "👷🏿‍♂️", ["guard"] = "💂", ["guardsman"] = "💂", ["guard_tone1"] = "💂🏻", ["guardsman_tone1"] = "💂🏻", ["guard_tone2"] = "💂🏼", ["guardsman_tone2"] = "💂🏼", ["guard_tone3"] = "💂🏽", ["guardsman_tone3"] = "💂🏽", ["guard_tone4"] = "💂🏾", ["guardsman_tone4"] = "💂🏾", ["guard_tone5"] = "💂🏿", ["guardsman_tone5"] = "💂🏿", ["woman_guard"] = "💂‍♀️", ["woman_guard_tone1"] = "💂🏻‍♀️", ["woman_guard_light_skin_tone"] = "💂🏻‍♀️", ["woman_guard_tone2"] = "💂🏼‍♀️", ["woman_guard_medium_light_skin_tone"] = "💂🏼‍♀️", ["woman_guard_tone3"] = "💂🏽‍♀️", ["woman_guard_medium_skin_tone"] = "💂🏽‍♀️", ["woman_guard_tone4"] = "💂🏾‍♀️", ["woman_guard_medium_dark_skin_tone"] = "💂🏾‍♀️", ["woman_guard_tone5"] = "💂🏿‍♀️", ["woman_guard_dark_skin_tone"] = "💂🏿‍♀️", ["man_guard"] = "💂‍♂️", ["man_guard_tone1"] = "💂🏻‍♂️", ["man_guard_light_skin_tone"] = "💂🏻‍♂️", ["man_guard_tone2"] = "💂🏼‍♂️", ["man_guard_medium_light_skin_tone"] = "💂🏼‍♂️", ["man_guard_tone3"] = "💂🏽‍♂️", ["man_guard_medium_skin_tone"] = "💂🏽‍♂️", ["man_guard_tone4"] = "💂🏾‍♂️", ["man_guard_medium_dark_skin_tone"] = "💂🏾‍♂️", ["man_guard_tone5"] = "💂🏿‍♂️", ["man_guard_dark_skin_tone"] = "💂🏿‍♂️", ["detective"] = "🕵️", ["spy"] = "🕵️", ["sleuth_or_spy"] = "🕵️", ["detective_tone1"] = "🕵🏻", ["spy_tone1"] = "🕵🏻", ["sleuth_or_spy_tone1"] = "🕵🏻", ["detective_tone2"] = "🕵🏼", ["spy_tone2"] = "🕵🏼", ["sleuth_or_spy_tone2"] = "🕵🏼", ["detective_tone3"] = "🕵🏽", ["spy_tone3"] = "🕵🏽", ["sleuth_or_spy_tone3"] = "🕵🏽", ["detective_tone4"] = "🕵🏾", ["spy_tone4"] = "🕵🏾", ["sleuth_or_spy_tone4"] = "🕵🏾", ["detective_tone5"] = "🕵🏿", ["spy_tone5"] = "🕵🏿", ["sleuth_or_spy_tone5"] = "🕵🏿", ["woman_detective"] = "🕵️‍♀️", ["woman_detective_tone1"] = "🕵🏻‍♀️", ["woman_detective_light_skin_tone"] = "🕵🏻‍♀️", ["woman_detective_tone2"] = "🕵🏼‍♀️", ["woman_detective_medium_light_skin_tone"] = "🕵🏼‍♀️", ["woman_detective_tone3"] = "🕵🏽‍♀️", ["woman_detective_medium_skin_tone"] = "🕵🏽‍♀️", ["woman_detective_tone4"] = "🕵🏾‍♀️", ["woman_detective_medium_dark_skin_tone"] = "🕵🏾‍♀️", ["woman_detective_tone5"] = "🕵🏿‍♀️", ["woman_detective_dark_skin_tone"] = "🕵🏿‍♀️", ["man_detective"] = "🕵️‍♂️", ["man_detective_tone1"] = "🕵🏻‍♂️", ["man_detective_light_skin_tone"] = "🕵🏻‍♂️", ["man_detective_tone2"] = "🕵🏼‍♂️", ["man_detective_medium_light_skin_tone"] = "🕵🏼‍♂️", ["man_detective_tone3"] = "🕵🏽‍♂️", ["man_detective_medium_skin_tone"] = "🕵🏽‍♂️", ["man_detective_tone4"] = "🕵🏾‍♂️", ["man_detective_medium_dark_skin_tone"] = "🕵🏾‍♂️", ["man_detective_tone5"] = "🕵🏿‍♂️", ["man_detective_dark_skin_tone"] = "🕵🏿‍♂️", ["health_worker"] = "🧑‍⚕️", ["health_worker_tone1"] = "🧑🏻‍⚕️", ["health_worker_light_skin_tone"] = "🧑🏻‍⚕️", ["health_worker_tone2"] = "🧑🏼‍⚕️", ["health_worker_medium_light_skin_tone"] = "🧑🏼‍⚕️", ["health_worker_tone3"] = "🧑🏽‍⚕️", ["health_worker_medium_skin_tone"] = "🧑🏽‍⚕️", ["health_worker_tone4"] = "🧑🏾‍⚕️", ["health_worker_medium_dark_skin_tone"] = "🧑🏾‍⚕️", ["health_worker_tone5"] = "🧑🏿‍⚕️", ["health_worker_dark_skin_tone"] = "🧑🏿‍⚕️", ["woman_health_worker"] = "👩‍⚕️", ["woman_health_worker_tone1"] = "👩🏻‍⚕️", ["woman_health_worker_light_skin_tone"] = "👩🏻‍⚕️", ["woman_health_worker_tone2"] = "👩🏼‍⚕️", ["woman_health_worker_medium_light_skin_tone"] = "👩🏼‍⚕️", ["woman_health_worker_tone3"] = "👩🏽‍⚕️", ["woman_health_worker_medium_skin_tone"] = "👩🏽‍⚕️", ["woman_health_worker_tone4"] = "👩🏾‍⚕️", ["woman_health_worker_medium_dark_skin_tone"] = "👩🏾‍⚕️", ["woman_health_worker_tone5"] = "👩🏿‍⚕️", ["woman_health_worker_dark_skin_tone"] = "👩🏿‍⚕️", ["man_health_worker"] = "👨‍⚕️", ["man_health_worker_tone1"] = "👨🏻‍⚕️", ["man_health_worker_light_skin_tone"] = "👨🏻‍⚕️", ["man_health_worker_tone2"] = "👨🏼‍⚕️", ["man_health_worker_medium_light_skin_tone"] = "👨🏼‍⚕️", ["man_health_worker_tone3"] = "👨🏽‍⚕️", ["man_health_worker_medium_skin_tone"] = "👨🏽‍⚕️", ["man_health_worker_tone4"] = "👨🏾‍⚕️", ["man_health_worker_medium_dark_skin_tone"] = "👨🏾‍⚕️", ["man_health_worker_tone5"] = "👨🏿‍⚕️", ["man_health_worker_dark_skin_tone"] = "👨🏿‍⚕️", ["farmer"] = "🧑‍🌾", ["farmer_tone1"] = "🧑🏻‍🌾", ["farmer_light_skin_tone"] = "🧑🏻‍🌾", ["farmer_tone2"] = "🧑🏼‍🌾", ["farmer_medium_light_skin_tone"] = "🧑🏼‍🌾", ["farmer_tone3"] = "🧑🏽‍🌾", ["farmer_medium_skin_tone"] = "🧑🏽‍🌾", ["farmer_tone4"] = "🧑🏾‍🌾", ["farmer_medium_dark_skin_tone"] = "🧑🏾‍🌾", ["farmer_tone5"] = "🧑🏿‍🌾", ["farmer_dark_skin_tone"] = "🧑🏿‍🌾", ["woman_farmer"] = "👩‍🌾", ["woman_farmer_tone1"] = "👩🏻‍🌾", ["woman_farmer_light_skin_tone"] = "👩🏻‍🌾", ["woman_farmer_tone2"] = "👩🏼‍🌾", ["woman_farmer_medium_light_skin_tone"] = "👩🏼‍🌾", ["woman_farmer_tone3"] = "👩🏽‍🌾", ["woman_farmer_medium_skin_tone"] = "👩🏽‍🌾", ["woman_farmer_tone4"] = "👩🏾‍🌾", ["woman_farmer_medium_dark_skin_tone"] = "👩🏾‍🌾", ["woman_farmer_tone5"] = "👩🏿‍🌾", ["woman_farmer_dark_skin_tone"] = "👩🏿‍🌾", ["man_farmer"] = "👨‍🌾", ["man_farmer_tone1"] = "👨🏻‍🌾", ["man_farmer_light_skin_tone"] = "👨🏻‍🌾", ["man_farmer_tone2"] = "👨🏼‍🌾", ["man_farmer_medium_light_skin_tone"] = "👨🏼‍🌾", ["man_farmer_tone3"] = "👨🏽‍🌾", ["man_farmer_medium_skin_tone"] = "👨🏽‍🌾", ["man_farmer_tone4"] = "👨🏾‍🌾", ["man_farmer_medium_dark_skin_tone"] = "👨🏾‍🌾", ["man_farmer_tone5"] = "👨🏿‍🌾", ["man_farmer_dark_skin_tone"] = "👨🏿‍🌾", ["cook"] = "🧑‍🍳", ["cook_tone1"] = "🧑🏻‍🍳", ["cook_light_skin_tone"] = "🧑🏻‍🍳", ["cook_tone2"] = "🧑🏼‍🍳", ["cook_medium_light_skin_tone"] = "🧑🏼‍🍳", ["cook_tone3"] = "🧑🏽‍🍳", ["cook_medium_skin_tone"] = "🧑🏽‍🍳", ["cook_tone4"] = "🧑🏾‍🍳", ["cook_medium_dark_skin_tone"] = "🧑🏾‍🍳", ["cook_tone5"] = "🧑🏿‍🍳", ["cook_dark_skin_tone"] = "🧑🏿‍🍳", ["woman_cook"] = "👩‍🍳", ["woman_cook_tone1"] = "👩🏻‍🍳", ["woman_cook_light_skin_tone"] = "👩🏻‍🍳", ["woman_cook_tone2"] = "👩🏼‍🍳", ["woman_cook_medium_light_skin_tone"] = "👩🏼‍🍳", ["woman_cook_tone3"] = "👩🏽‍🍳", ["woman_cook_medium_skin_tone"] = "👩🏽‍🍳", ["woman_cook_tone4"] = "👩🏾‍🍳", ["woman_cook_medium_dark_skin_tone"] = "👩🏾‍🍳", ["woman_cook_tone5"] = "👩🏿‍🍳", ["woman_cook_dark_skin_tone"] = "👩🏿‍🍳", ["man_cook"] = "👨‍🍳", ["man_cook_tone1"] = "👨🏻‍🍳", ["man_cook_light_skin_tone"] = "👨🏻‍🍳", ["man_cook_tone2"] = "👨🏼‍🍳", ["man_cook_medium_light_skin_tone"] = "👨🏼‍🍳", ["man_cook_tone3"] = "👨🏽‍🍳", ["man_cook_medium_skin_tone"] = "👨🏽‍🍳", ["man_cook_tone4"] = "👨🏾‍🍳", ["man_cook_medium_dark_skin_tone"] = "👨🏾‍🍳", ["man_cook_tone5"] = "👨🏿‍🍳", ["man_cook_dark_skin_tone"] = "👨🏿‍🍳", ["student"] = "🧑‍🎓", ["student_tone1"] = "🧑🏻‍🎓", ["student_light_skin_tone"] = "🧑🏻‍🎓", ["student_tone2"] = "🧑🏼‍🎓", ["student_medium_light_skin_tone"] = "🧑🏼‍🎓", ["student_tone3"] = "🧑🏽‍🎓", ["student_medium_skin_tone"] = "🧑🏽‍🎓", ["student_tone4"] = "🧑🏾‍🎓", ["student_medium_dark_skin_tone"] = "🧑🏾‍🎓", ["student_tone5"] = "🧑🏿‍🎓", ["student_dark_skin_tone"] = "🧑🏿‍🎓", ["woman_student"] = "👩‍🎓", ["woman_student_tone1"] = "👩🏻‍🎓", ["woman_student_light_skin_tone"] = "👩🏻‍🎓", ["woman_student_tone2"] = "👩🏼‍🎓", ["woman_student_medium_light_skin_tone"] = "👩🏼‍🎓", ["woman_student_tone3"] = "👩🏽‍🎓", ["woman_student_medium_skin_tone"] = "👩🏽‍🎓", ["woman_student_tone4"] = "👩🏾‍🎓", ["woman_student_medium_dark_skin_tone"] = "👩🏾‍🎓", ["woman_student_tone5"] = "👩🏿‍🎓", ["woman_student_dark_skin_tone"] = "👩🏿‍🎓", ["man_student"] = "👨‍🎓", ["man_student_tone1"] = "👨🏻‍🎓", ["man_student_light_skin_tone"] = "👨🏻‍🎓", ["man_student_tone2"] = "👨🏼‍🎓", ["man_student_medium_light_skin_tone"] = "👨🏼‍🎓", ["man_student_tone3"] = "👨🏽‍🎓", ["man_student_medium_skin_tone"] = "👨🏽‍🎓", ["man_student_tone4"] = "👨🏾‍🎓", ["man_student_medium_dark_skin_tone"] = "👨🏾‍🎓", ["man_student_tone5"] = "👨🏿‍🎓", ["man_student_dark_skin_tone"] = "👨🏿‍🎓", ["singer"] = "🧑‍🎤", ["singer_tone1"] = "🧑🏻‍🎤", ["singer_light_skin_tone"] = "🧑🏻‍🎤", ["singer_tone2"] = "🧑🏼‍🎤", ["singer_medium_light_skin_tone"] = "🧑🏼‍🎤", ["singer_tone3"] = "🧑🏽‍🎤", ["singer_medium_skin_tone"] = "🧑🏽‍🎤", ["singer_tone4"] = "🧑🏾‍🎤", ["singer_medium_dark_skin_tone"] = "🧑🏾‍🎤", ["singer_tone5"] = "🧑🏿‍🎤", ["singer_dark_skin_tone"] = "🧑🏿‍🎤", ["woman_singer"] = "👩‍🎤", ["woman_singer_tone1"] = "👩🏻‍🎤", ["woman_singer_light_skin_tone"] = "👩🏻‍🎤", ["woman_singer_tone2"] = "👩🏼‍🎤", ["woman_singer_medium_light_skin_tone"] = "👩🏼‍🎤", ["woman_singer_tone3"] = "👩🏽‍🎤", ["woman_singer_medium_skin_tone"] = "👩🏽‍🎤", ["woman_singer_tone4"] = "👩🏾‍🎤", ["woman_singer_medium_dark_skin_tone"] = "👩🏾‍🎤", ["woman_singer_tone5"] = "👩🏿‍🎤", ["woman_singer_dark_skin_tone"] = "👩🏿‍🎤", ["man_singer"] = "👨‍🎤", ["man_singer_tone1"] = "👨🏻‍🎤", ["man_singer_light_skin_tone"] = "👨🏻‍🎤", ["man_singer_tone2"] = "👨🏼‍🎤", ["man_singer_medium_light_skin_tone"] = "👨🏼‍🎤", ["man_singer_tone3"] = "👨🏽‍🎤", ["man_singer_medium_skin_tone"] = "👨🏽‍🎤", ["man_singer_tone4"] = "👨🏾‍🎤", ["man_singer_medium_dark_skin_tone"] = "👨🏾‍🎤", ["man_singer_tone5"] = "👨🏿‍🎤", ["man_singer_dark_skin_tone"] = "👨🏿‍🎤", ["teacher"] = "🧑‍🏫", ["teacher_tone1"] = "🧑🏻‍🏫", ["teacher_light_skin_tone"] = "🧑🏻‍🏫", ["teacher_tone2"] = "🧑🏼‍🏫", ["teacher_medium_light_skin_tone"] = "🧑🏼‍🏫", ["teacher_tone3"] = "🧑🏽‍🏫", ["teacher_medium_skin_tone"] = "🧑🏽‍🏫", ["teacher_tone4"] = "🧑🏾‍🏫", ["teacher_medium_dark_skin_tone"] = "🧑🏾‍🏫", ["teacher_tone5"] = "🧑🏿‍🏫", ["teacher_dark_skin_tone"] = "🧑🏿‍🏫", ["woman_teacher"] = "👩‍🏫", ["woman_teacher_tone1"] = "👩🏻‍🏫", ["woman_teacher_light_skin_tone"] = "👩🏻‍🏫", ["woman_teacher_tone2"] = "👩🏼‍🏫", ["woman_teacher_medium_light_skin_tone"] = "👩🏼‍🏫", ["woman_teacher_tone3"] = "👩🏽‍🏫", ["woman_teacher_medium_skin_tone"] = "👩🏽‍🏫", ["woman_teacher_tone4"] = "👩🏾‍🏫", ["woman_teacher_medium_dark_skin_tone"] = "👩🏾‍🏫", ["woman_teacher_tone5"] = "👩🏿‍🏫", ["woman_teacher_dark_skin_tone"] = "👩🏿‍🏫", ["man_teacher"] = "👨‍🏫", ["man_teacher_tone1"] = "👨🏻‍🏫", ["man_teacher_light_skin_tone"] = "👨🏻‍🏫", ["man_teacher_tone2"] = "👨🏼‍🏫", ["man_teacher_medium_light_skin_tone"] = "👨🏼‍🏫", ["man_teacher_tone3"] = "👨🏽‍🏫", ["man_teacher_medium_skin_tone"] = "👨🏽‍🏫", ["man_teacher_tone4"] = "👨🏾‍🏫", ["man_teacher_medium_dark_skin_tone"] = "👨🏾‍🏫", ["man_teacher_tone5"] = "👨🏿‍🏫", ["man_teacher_dark_skin_tone"] = "👨🏿‍🏫", ["factory_worker"] = "🧑‍🏭", ["factory_worker_tone1"] = "🧑🏻‍🏭", ["factory_worker_light_skin_tone"] = "🧑🏻‍🏭", ["factory_worker_tone2"] = "🧑🏼‍🏭", ["factory_worker_medium_light_skin_tone"] = "🧑🏼‍🏭", ["factory_worker_tone3"] = "🧑🏽‍🏭", ["factory_worker_medium_skin_tone"] = "🧑🏽‍🏭", ["factory_worker_tone4"] = "🧑🏾‍🏭", ["factory_worker_medium_dark_skin_tone"] = "🧑🏾‍🏭", ["factory_worker_tone5"] = "🧑🏿‍🏭", ["factory_worker_dark_skin_tone"] = "🧑🏿‍🏭", ["woman_factory_worker"] = "👩‍🏭", ["woman_factory_worker_tone1"] = "👩🏻‍🏭", ["woman_factory_worker_light_skin_tone"] = "👩🏻‍🏭", ["woman_factory_worker_tone2"] = "👩🏼‍🏭", ["woman_factory_worker_medium_light_skin_tone"] = "👩🏼‍🏭", ["woman_factory_worker_tone3"] = "👩🏽‍🏭", ["woman_factory_worker_medium_skin_tone"] = "👩🏽‍🏭", ["woman_factory_worker_tone4"] = "👩🏾‍🏭", ["woman_factory_worker_medium_dark_skin_tone"] = "👩🏾‍🏭", ["woman_factory_worker_tone5"] = "👩🏿‍🏭", ["woman_factory_worker_dark_skin_tone"] = "👩🏿‍🏭", ["man_factory_worker"] = "👨‍🏭", ["man_factory_worker_tone1"] = "👨🏻‍🏭", ["man_factory_worker_light_skin_tone"] = "👨🏻‍🏭", ["man_factory_worker_tone2"] = "👨🏼‍🏭", ["man_factory_worker_medium_light_skin_tone"] = "👨🏼‍🏭", ["man_factory_worker_tone3"] = "👨🏽‍🏭", ["man_factory_worker_medium_skin_tone"] = "👨🏽‍🏭", ["man_factory_worker_tone4"] = "👨🏾‍🏭", ["man_factory_worker_medium_dark_skin_tone"] = "👨🏾‍🏭", ["man_factory_worker_tone5"] = "👨🏿‍🏭", ["man_factory_worker_dark_skin_tone"] = "👨🏿‍🏭", ["technologist"] = "🧑‍💻", ["technologist_tone1"] = "🧑🏻‍💻", ["technologist_light_skin_tone"] = "🧑🏻‍💻", ["technologist_tone2"] = "🧑🏼‍💻", ["technologist_medium_light_skin_tone"] = "🧑🏼‍💻", ["technologist_tone3"] = "🧑🏽‍💻", ["technologist_medium_skin_tone"] = "🧑🏽‍💻", ["technologist_tone4"] = "🧑🏾‍💻", ["technologist_medium_dark_skin_tone"] = "🧑🏾‍💻", ["technologist_tone5"] = "🧑🏿‍💻", ["technologist_dark_skin_tone"] = "🧑🏿‍💻", ["woman_technologist"] = "👩‍💻", ["woman_technologist_tone1"] = "👩🏻‍💻", ["woman_technologist_light_skin_tone"] = "👩🏻‍💻", ["woman_technologist_tone2"] = "👩🏼‍💻", ["woman_technologist_medium_light_skin_tone"] = "👩🏼‍💻", ["woman_technologist_tone3"] = "👩🏽‍💻", ["woman_technologist_medium_skin_tone"] = "👩🏽‍💻", ["woman_technologist_tone4"] = "👩🏾‍💻", ["woman_technologist_medium_dark_skin_tone"] = "👩🏾‍💻", ["woman_technologist_tone5"] = "👩🏿‍💻", ["woman_technologist_dark_skin_tone"] = "👩🏿‍💻", ["man_technologist"] = "👨‍💻", ["man_technologist_tone1"] = "👨🏻‍💻", ["man_technologist_light_skin_tone"] = "👨🏻‍💻", ["man_technologist_tone2"] = "👨🏼‍💻", ["man_technologist_medium_light_skin_tone"] = "👨🏼‍💻", ["man_technologist_tone3"] = "👨🏽‍💻", ["man_technologist_medium_skin_tone"] = "👨🏽‍💻", ["man_technologist_tone4"] = "👨🏾‍💻", ["man_technologist_medium_dark_skin_tone"] = "👨🏾‍💻", ["man_technologist_tone5"] = "👨🏿‍💻", ["man_technologist_dark_skin_tone"] = "👨🏿‍💻", ["office_worker"] = "🧑‍💼", ["office_worker_tone1"] = "🧑🏻‍💼", ["office_worker_light_skin_tone"] = "🧑🏻‍💼", ["office_worker_tone2"] = "🧑🏼‍💼", ["office_worker_medium_light_skin_tone"] = "🧑🏼‍💼", ["office_worker_tone3"] = "🧑🏽‍💼", ["office_worker_medium_skin_tone"] = "🧑🏽‍💼", ["office_worker_tone4"] = "🧑🏾‍💼", ["office_worker_medium_dark_skin_tone"] = "🧑🏾‍💼", ["office_worker_tone5"] = "🧑🏿‍💼", ["office_worker_dark_skin_tone"] = "🧑🏿‍💼", ["woman_office_worker"] = "👩‍💼", ["woman_office_worker_tone1"] = "👩🏻‍💼", ["woman_office_worker_light_skin_tone"] = "👩🏻‍💼", ["woman_office_worker_tone2"] = "👩🏼‍💼", ["woman_office_worker_medium_light_skin_tone"] = "👩🏼‍💼", ["woman_office_worker_tone3"] = "👩🏽‍💼", ["woman_office_worker_medium_skin_tone"] = "👩🏽‍💼", ["woman_office_worker_tone4"] = "👩🏾‍💼", ["woman_office_worker_medium_dark_skin_tone"] = "👩🏾‍💼", ["woman_office_worker_tone5"] = "👩🏿‍💼", ["woman_office_worker_dark_skin_tone"] = "👩🏿‍💼", ["man_office_worker"] = "👨‍💼", ["man_office_worker_tone1"] = "👨🏻‍💼", ["man_office_worker_light_skin_tone"] = "👨🏻‍💼", ["man_office_worker_tone2"] = "👨🏼‍💼", ["man_office_worker_medium_light_skin_tone"] = "👨🏼‍💼", ["man_office_worker_tone3"] = "👨🏽‍💼", ["man_office_worker_medium_skin_tone"] = "👨🏽‍💼", ["man_office_worker_tone4"] = "👨🏾‍💼", ["man_office_worker_medium_dark_skin_tone"] = "👨🏾‍💼", ["man_office_worker_tone5"] = "👨🏿‍💼", ["man_office_worker_dark_skin_tone"] = "👨🏿‍💼", ["mechanic"] = "🧑‍🔧", ["mechanic_tone1"] = "🧑🏻‍🔧", ["mechanic_light_skin_tone"] = "🧑🏻‍🔧", ["mechanic_tone2"] = "🧑🏼‍🔧", ["mechanic_medium_light_skin_tone"] = "🧑🏼‍🔧", ["mechanic_tone3"] = "🧑🏽‍🔧", ["mechanic_medium_skin_tone"] = "🧑🏽‍🔧", ["mechanic_tone4"] = "🧑🏾‍🔧", ["mechanic_medium_dark_skin_tone"] = "🧑🏾‍🔧", ["mechanic_tone5"] = "🧑🏿‍🔧", ["mechanic_dark_skin_tone"] = "🧑🏿‍🔧", ["woman_mechanic"] = "👩‍🔧", ["woman_mechanic_tone1"] = "👩🏻‍🔧", ["woman_mechanic_light_skin_tone"] = "👩🏻‍🔧", ["woman_mechanic_tone2"] = "👩🏼‍🔧", ["woman_mechanic_medium_light_skin_tone"] = "👩🏼‍🔧", ["woman_mechanic_tone3"] = "👩🏽‍🔧", ["woman_mechanic_medium_skin_tone"] = "👩🏽‍🔧", ["woman_mechanic_tone4"] = "👩🏾‍🔧", ["woman_mechanic_medium_dark_skin_tone"] = "👩🏾‍🔧", ["woman_mechanic_tone5"] = "👩🏿‍🔧", ["woman_mechanic_dark_skin_tone"] = "👩🏿‍🔧", ["man_mechanic"] = "👨‍🔧", ["man_mechanic_tone1"] = "👨🏻‍🔧", ["man_mechanic_light_skin_tone"] = "👨🏻‍🔧", ["man_mechanic_tone2"] = "👨🏼‍🔧", ["man_mechanic_medium_light_skin_tone"] = "👨🏼‍🔧", ["man_mechanic_tone3"] = "👨🏽‍🔧", ["man_mechanic_medium_skin_tone"] = "👨🏽‍🔧", ["man_mechanic_tone4"] = "👨🏾‍🔧", ["man_mechanic_medium_dark_skin_tone"] = "👨🏾‍🔧", ["man_mechanic_tone5"] = "👨🏿‍🔧", ["man_mechanic_dark_skin_tone"] = "👨🏿‍🔧", ["scientist"] = "🧑‍🔬", ["scientist_tone1"] = "🧑🏻‍🔬", ["scientist_light_skin_tone"] = "🧑🏻‍🔬", ["scientist_tone2"] = "🧑🏼‍🔬", ["scientist_medium_light_skin_tone"] = "🧑🏼‍🔬", ["scientist_tone3"] = "🧑🏽‍🔬", ["scientist_medium_skin_tone"] = "🧑🏽‍🔬", ["scientist_tone4"] = "🧑🏾‍🔬", ["scientist_medium_dark_skin_tone"] = "🧑🏾‍🔬", ["scientist_tone5"] = "🧑🏿‍🔬", ["scientist_dark_skin_tone"] = "🧑🏿‍🔬", ["woman_scientist"] = "👩‍🔬", ["woman_scientist_tone1"] = "👩🏻‍🔬", ["woman_scientist_light_skin_tone"] = "👩🏻‍🔬", ["woman_scientist_tone2"] = "👩🏼‍🔬", ["woman_scientist_medium_light_skin_tone"] = "👩🏼‍🔬", ["woman_scientist_tone3"] = "👩🏽‍🔬", ["woman_scientist_medium_skin_tone"] = "👩🏽‍🔬", ["woman_scientist_tone4"] = "👩🏾‍🔬", ["woman_scientist_medium_dark_skin_tone"] = "👩🏾‍🔬", ["woman_scientist_tone5"] = "👩🏿‍🔬", ["woman_scientist_dark_skin_tone"] = "👩🏿‍🔬", ["man_scientist"] = "👨‍🔬", ["man_scientist_tone1"] = "👨🏻‍🔬", ["man_scientist_light_skin_tone"] = "👨🏻‍🔬", ["man_scientist_tone2"] = "👨🏼‍🔬", ["man_scientist_medium_light_skin_tone"] = "👨🏼‍🔬", ["man_scientist_tone3"] = "👨🏽‍🔬", ["man_scientist_medium_skin_tone"] = "👨🏽‍🔬", ["man_scientist_tone4"] = "👨🏾‍🔬", ["man_scientist_medium_dark_skin_tone"] = "👨🏾‍🔬", ["man_scientist_tone5"] = "👨🏿‍🔬", ["man_scientist_dark_skin_tone"] = "👨🏿‍🔬", ["artist"] = "🧑‍🎨", ["artist_tone1"] = "🧑🏻‍🎨", ["artist_light_skin_tone"] = "🧑🏻‍🎨", ["artist_tone2"] = "🧑🏼‍🎨", ["artist_medium_light_skin_tone"] = "🧑🏼‍🎨", ["artist_tone3"] = "🧑🏽‍🎨", ["artist_medium_skin_tone"] = "🧑🏽‍🎨", ["artist_tone4"] = "🧑🏾‍🎨", ["artist_medium_dark_skin_tone"] = "🧑🏾‍🎨", ["artist_tone5"] = "🧑🏿‍🎨", ["artist_dark_skin_tone"] = "🧑🏿‍🎨", ["woman_artist"] = "👩‍🎨", ["woman_artist_tone1"] = "👩🏻‍🎨", ["woman_artist_light_skin_tone"] = "👩🏻‍🎨", ["woman_artist_tone2"] = "👩🏼‍🎨", ["woman_artist_medium_light_skin_tone"] = "👩🏼‍🎨", ["woman_artist_tone3"] = "👩🏽‍🎨", ["woman_artist_medium_skin_tone"] = "👩🏽‍🎨", ["woman_artist_tone4"] = "👩🏾‍🎨", ["woman_artist_medium_dark_skin_tone"] = "👩🏾‍🎨", ["woman_artist_tone5"] = "👩🏿‍🎨", ["woman_artist_dark_skin_tone"] = "👩🏿‍🎨", ["man_artist"] = "👨‍🎨", ["man_artist_tone1"] = "👨🏻‍🎨", ["man_artist_light_skin_tone"] = "👨🏻‍🎨", ["man_artist_tone2"] = "👨🏼‍🎨", ["man_artist_medium_light_skin_tone"] = "👨🏼‍🎨", ["man_artist_tone3"] = "👨🏽‍🎨", ["man_artist_medium_skin_tone"] = "👨🏽‍🎨", ["man_artist_tone4"] = "👨🏾‍🎨", ["man_artist_medium_dark_skin_tone"] = "👨🏾‍🎨", ["man_artist_tone5"] = "👨🏿‍🎨", ["man_artist_dark_skin_tone"] = "👨🏿‍🎨", ["firefighter"] = "🧑‍🚒", ["firefighter_tone1"] = "🧑🏻‍🚒", ["firefighter_light_skin_tone"] = "🧑🏻‍🚒", ["firefighter_tone2"] = "🧑🏼‍🚒", ["firefighter_medium_light_skin_tone"] = "🧑🏼‍🚒", ["firefighter_tone3"] = "🧑🏽‍🚒", ["firefighter_medium_skin_tone"] = "🧑🏽‍🚒", ["firefighter_tone4"] = "🧑🏾‍🚒", ["firefighter_medium_dark_skin_tone"] = "🧑🏾‍🚒", ["firefighter_tone5"] = "🧑🏿‍🚒", ["firefighter_dark_skin_tone"] = "🧑🏿‍🚒", ["woman_firefighter"] = "👩‍🚒", ["woman_firefighter_tone1"] = "👩🏻‍🚒", ["woman_firefighter_light_skin_tone"] = "👩🏻‍🚒", ["woman_firefighter_tone2"] = "👩🏼‍🚒", ["woman_firefighter_medium_light_skin_tone"] = "👩🏼‍🚒", ["woman_firefighter_tone3"] = "👩🏽‍🚒", ["woman_firefighter_medium_skin_tone"] = "👩🏽‍🚒", ["woman_firefighter_tone4"] = "👩🏾‍🚒", ["woman_firefighter_medium_dark_skin_tone"] = "👩🏾‍🚒", ["woman_firefighter_tone5"] = "👩🏿‍🚒", ["woman_firefighter_dark_skin_tone"] = "👩🏿‍🚒", ["man_firefighter"] = "👨‍🚒", ["man_firefighter_tone1"] = "👨🏻‍🚒", ["man_firefighter_light_skin_tone"] = "👨🏻‍🚒", ["man_firefighter_tone2"] = "👨🏼‍🚒", ["man_firefighter_medium_light_skin_tone"] = "👨🏼‍🚒", ["man_firefighter_tone3"] = "👨🏽‍🚒", ["man_firefighter_medium_skin_tone"] = "👨🏽‍🚒", ["man_firefighter_tone4"] = "👨🏾‍🚒", ["man_firefighter_medium_dark_skin_tone"] = "👨🏾‍🚒", ["man_firefighter_tone5"] = "👨🏿‍🚒", ["man_firefighter_dark_skin_tone"] = "👨🏿‍🚒", ["pilot"] = "🧑‍✈️", ["pilot_tone1"] = "🧑🏻‍✈️", ["pilot_light_skin_tone"] = "🧑🏻‍✈️", ["pilot_tone2"] = "🧑🏼‍✈️", ["pilot_medium_light_skin_tone"] = "🧑🏼‍✈️", ["pilot_tone3"] = "🧑🏽‍✈️", ["pilot_medium_skin_tone"] = "🧑🏽‍✈️", ["pilot_tone4"] = "🧑🏾‍✈️", ["pilot_medium_dark_skin_tone"] = "🧑🏾‍✈️", ["pilot_tone5"] = "🧑🏿‍✈️", ["pilot_dark_skin_tone"] = "🧑🏿‍✈️", ["woman_pilot"] = "👩‍✈️", ["woman_pilot_tone1"] = "👩🏻‍✈️", ["woman_pilot_light_skin_tone"] = "👩🏻‍✈️", ["woman_pilot_tone2"] = "👩🏼‍✈️", ["woman_pilot_medium_light_skin_tone"] = "👩🏼‍✈️", ["woman_pilot_tone3"] = "👩🏽‍✈️", ["woman_pilot_medium_skin_tone"] = "👩🏽‍✈️", ["woman_pilot_tone4"] = "👩🏾‍✈️", ["woman_pilot_medium_dark_skin_tone"] = "👩🏾‍✈️", ["woman_pilot_tone5"] = "👩🏿‍✈️", ["woman_pilot_dark_skin_tone"] = "👩🏿‍✈️", ["man_pilot"] = "👨‍✈️", ["man_pilot_tone1"] = "👨🏻‍✈️", ["man_pilot_light_skin_tone"] = "👨🏻‍✈️", ["man_pilot_tone2"] = "👨🏼‍✈️", ["man_pilot_medium_light_skin_tone"] = "👨🏼‍✈️", ["man_pilot_tone3"] = "👨🏽‍✈️", ["man_pilot_medium_skin_tone"] = "👨🏽‍✈️", ["man_pilot_tone4"] = "👨🏾‍✈️", ["man_pilot_medium_dark_skin_tone"] = "👨🏾‍✈️", ["man_pilot_tone5"] = "👨🏿‍✈️", ["man_pilot_dark_skin_tone"] = "👨🏿‍✈️", ["astronaut"] = "🧑‍🚀", ["astronaut_tone1"] = "🧑🏻‍🚀", ["astronaut_light_skin_tone"] = "🧑🏻‍🚀", ["astronaut_tone2"] = "🧑🏼‍🚀", ["astronaut_medium_light_skin_tone"] = "🧑🏼‍🚀", ["astronaut_tone3"] = "🧑🏽‍🚀", ["astronaut_medium_skin_tone"] = "🧑🏽‍🚀", ["astronaut_tone4"] = "🧑🏾‍🚀", ["astronaut_medium_dark_skin_tone"] = "🧑🏾‍🚀", ["astronaut_tone5"] = "🧑🏿‍🚀", ["astronaut_dark_skin_tone"] = "🧑🏿‍🚀", ["woman_astronaut"] = "👩‍🚀", ["woman_astronaut_tone1"] = "👩🏻‍🚀", ["woman_astronaut_light_skin_tone"] = "👩🏻‍🚀", ["woman_astronaut_tone2"] = "👩🏼‍🚀", ["woman_astronaut_medium_light_skin_tone"] = "👩🏼‍🚀", ["woman_astronaut_tone3"] = "👩🏽‍🚀", ["woman_astronaut_medium_skin_tone"] = "👩🏽‍🚀", ["woman_astronaut_tone4"] = "👩🏾‍🚀", ["woman_astronaut_medium_dark_skin_tone"] = "👩🏾‍🚀", ["woman_astronaut_tone5"] = "👩🏿‍🚀", ["woman_astronaut_dark_skin_tone"] = "👩🏿‍🚀", ["man_astronaut"] = "👨‍🚀", ["man_astronaut_tone1"] = "👨🏻‍🚀", ["man_astronaut_light_skin_tone"] = "👨🏻‍🚀", ["man_astronaut_tone2"] = "👨🏼‍🚀", ["man_astronaut_medium_light_skin_tone"] = "👨🏼‍🚀", ["man_astronaut_tone3"] = "👨🏽‍🚀", ["man_astronaut_medium_skin_tone"] = "👨🏽‍🚀", ["man_astronaut_tone4"] = "👨🏾‍🚀", ["man_astronaut_medium_dark_skin_tone"] = "👨🏾‍🚀", ["man_astronaut_tone5"] = "👨🏿‍🚀", ["man_astronaut_dark_skin_tone"] = "👨🏿‍🚀", ["judge"] = "🧑‍⚖️", ["judge_tone1"] = "🧑🏻‍⚖️", ["judge_light_skin_tone"] = "🧑🏻‍⚖️", ["judge_tone2"] = "🧑🏼‍⚖️", ["judge_medium_light_skin_tone"] = "🧑🏼‍⚖️", ["judge_tone3"] = "🧑🏽‍⚖️", ["judge_medium_skin_tone"] = "🧑🏽‍⚖️", ["judge_tone4"] = "🧑🏾‍⚖️", ["judge_medium_dark_skin_tone"] = "🧑🏾‍⚖️", ["judge_tone5"] = "🧑🏿‍⚖️", ["judge_dark_skin_tone"] = "🧑🏿‍⚖️", ["woman_judge"] = "👩‍⚖️", ["woman_judge_tone1"] = "👩🏻‍⚖️", ["woman_judge_light_skin_tone"] = "👩🏻‍⚖️", ["woman_judge_tone2"] = "👩🏼‍⚖️", ["woman_judge_medium_light_skin_tone"] = "👩🏼‍⚖️", ["woman_judge_tone3"] = "👩🏽‍⚖️", ["woman_judge_medium_skin_tone"] = "👩🏽‍⚖️", ["woman_judge_tone4"] = "👩🏾‍⚖️", ["woman_judge_medium_dark_skin_tone"] = "👩🏾‍⚖️", ["woman_judge_tone5"] = "👩🏿‍⚖️", ["woman_judge_dark_skin_tone"] = "👩🏿‍⚖️", ["man_judge"] = "👨‍⚖️", ["man_judge_tone1"] = "👨🏻‍⚖️", ["man_judge_light_skin_tone"] = "👨🏻‍⚖️", ["man_judge_tone2"] = "👨🏼‍⚖️", ["man_judge_medium_light_skin_tone"] = "👨🏼‍⚖️", ["man_judge_tone3"] = "👨🏽‍⚖️", ["man_judge_medium_skin_tone"] = "👨🏽‍⚖️", ["man_judge_tone4"] = "👨🏾‍⚖️", ["man_judge_medium_dark_skin_tone"] = "👨🏾‍⚖️", ["man_judge_tone5"] = "👨🏿‍⚖️", ["man_judge_dark_skin_tone"] = "👨🏿‍⚖️", ["person_with_veil"] = "👰", ["person_with_veil_tone1"] = "👰🏻", ["person_with_veil_tone2"] = "👰🏼", ["person_with_veil_tone3"] = "👰🏽", ["person_with_veil_tone4"] = "👰🏾", ["person_with_veil_tone5"] = "👰🏿", ["woman_with_veil"] = "👰‍♀️", ["bride_with_veil"] = "👰‍♀️", ["woman_with_veil_tone1"] = "👰🏻‍♀️", ["woman_with_veil_light_skin_tone"] = "👰🏻‍♀️", ["woman_with_veil_tone2"] = "👰🏼‍♀️", ["woman_with_veil_medium_light_skin_tone"] = "👰🏼‍♀️", ["woman_with_veil_tone3"] = "👰🏽‍♀️", ["woman_with_veil_medium_skin_tone"] = "👰🏽‍♀️", ["woman_with_veil_tone4"] = "👰🏾‍♀️", ["woman_with_veil_medium_dark_skin_tone"] = "👰🏾‍♀️", ["woman_with_veil_tone5"] = "👰🏿‍♀️", ["woman_with_veil_dark_skin_tone"] = "👰🏿‍♀️", ["man_with_veil"] = "👰‍♂️", ["man_with_veil_tone1"] = "👰🏻‍♂️", ["man_with_veil_light_skin_tone"] = "👰🏻‍♂️", ["man_with_veil_tone2"] = "👰🏼‍♂️", ["man_with_veil_medium_light_skin_tone"] = "👰🏼‍♂️", ["man_with_veil_tone3"] = "👰🏽‍♂️", ["man_with_veil_medium_skin_tone"] = "👰🏽‍♂️", ["man_with_veil_tone4"] = "👰🏾‍♂️", ["man_with_veil_medium_dark_skin_tone"] = "👰🏾‍♂️", ["man_with_veil_tone5"] = "👰🏿‍♂️", ["man_with_veil_dark_skin_tone"] = "👰🏿‍♂️", ["person_in_tuxedo"] = "🤵", ["person_in_tuxedo_tone1"] = "🤵🏻", ["tuxedo_tone1"] = "🤵🏻", ["person_in_tuxedo_tone2"] = "🤵🏼", ["tuxedo_tone2"] = "🤵🏼", ["person_in_tuxedo_tone3"] = "🤵🏽", ["tuxedo_tone3"] = "🤵🏽", ["person_in_tuxedo_tone4"] = "🤵🏾", ["tuxedo_tone4"] = "🤵🏾", ["person_in_tuxedo_tone5"] = "🤵🏿", ["tuxedo_tone5"] = "🤵🏿", ["woman_in_tuxedo"] = "🤵‍♀️", ["woman_in_tuxedo_tone1"] = "🤵🏻‍♀️", ["woman_in_tuxedo_light_skin_tone"] = "🤵🏻‍♀️", ["woman_in_tuxedo_tone2"] = "🤵🏼‍♀️", ["woman_in_tuxedo_medium_light_skin_tone"] = "🤵🏼‍♀️", ["woman_in_tuxedo_tone3"] = "🤵🏽‍♀️", ["woman_in_tuxedo_medium_skin_tone"] = "🤵🏽‍♀️", ["woman_in_tuxedo_tone4"] = "🤵🏾‍♀️", ["woman_in_tuxedo_medium_dark_skin_tone"] = "🤵🏾‍♀️", ["woman_in_tuxedo_tone5"] = "🤵🏿‍♀️", ["woman_in_tuxedo_dark_skin_tone"] = "🤵🏿‍♀️", ["man_in_tuxedo"] = "🤵‍♂️", ["man_in_tuxedo_tone1"] = "🤵🏻‍♂️", ["man_in_tuxedo_light_skin_tone"] = "🤵🏻‍♂️", ["man_in_tuxedo_tone2"] = "🤵🏼‍♂️", ["man_in_tuxedo_medium_light_skin_tone"] = "🤵🏼‍♂️", ["man_in_tuxedo_tone3"] = "🤵🏽‍♂️", ["man_in_tuxedo_medium_skin_tone"] = "🤵🏽‍♂️", ["man_in_tuxedo_tone4"] = "🤵🏾‍♂️", ["man_in_tuxedo_medium_dark_skin_tone"] = "🤵🏾‍♂️", ["man_in_tuxedo_tone5"] = "🤵🏿‍♂️", ["man_in_tuxedo_dark_skin_tone"] = "🤵🏿‍♂️", ["princess"] = "👸", ["princess_tone1"] = "👸🏻", ["princess_tone2"] = "👸🏼", ["princess_tone3"] = "👸🏽", ["princess_tone4"] = "👸🏾", ["princess_tone5"] = "👸🏿", ["prince"] = "🤴", ["prince_tone1"] = "🤴🏻", ["prince_tone2"] = "🤴🏼", ["prince_tone3"] = "🤴🏽", ["prince_tone4"] = "🤴🏾", ["prince_tone5"] = "🤴🏿", ["superhero"] = "🦸", ["superhero_tone1"] = "🦸🏻", ["superhero_light_skin_tone"] = "🦸🏻", ["superhero_tone2"] = "🦸🏼", ["superhero_medium_light_skin_tone"] = "🦸🏼", ["superhero_tone3"] = "🦸🏽", ["superhero_medium_skin_tone"] = "🦸🏽", ["superhero_tone4"] = "🦸🏾", ["superhero_medium_dark_skin_tone"] = "🦸🏾", ["superhero_tone5"] = "🦸🏿", ["superhero_dark_skin_tone"] = "🦸🏿", ["woman_superhero"] = "🦸‍♀️", ["woman_superhero_tone1"] = "🦸🏻‍♀️", ["woman_superhero_light_skin_tone"] = "🦸🏻‍♀️", ["woman_superhero_tone2"] = "🦸🏼‍♀️", ["woman_superhero_medium_light_skin_tone"] = "🦸🏼‍♀️", ["woman_superhero_tone3"] = "🦸🏽‍♀️", ["woman_superhero_medium_skin_tone"] = "🦸🏽‍♀️", ["woman_superhero_tone4"] = "🦸🏾‍♀️", ["woman_superhero_medium_dark_skin_tone"] = "🦸🏾‍♀️", ["woman_superhero_tone5"] = "🦸🏿‍♀️", ["woman_superhero_dark_skin_tone"] = "🦸🏿‍♀️", ["man_superhero"] = "🦸‍♂️", ["man_superhero_tone1"] = "🦸🏻‍♂️", ["man_superhero_light_skin_tone"] = "🦸🏻‍♂️", ["man_superhero_tone2"] = "🦸🏼‍♂️", ["man_superhero_medium_light_skin_tone"] = "🦸🏼‍♂️", ["man_superhero_tone3"] = "🦸🏽‍♂️", ["man_superhero_medium_skin_tone"] = "🦸🏽‍♂️", ["man_superhero_tone4"] = "🦸🏾‍♂️", ["man_superhero_medium_dark_skin_tone"] = "🦸🏾‍♂️", ["man_superhero_tone5"] = "🦸🏿‍♂️", ["man_superhero_dark_skin_tone"] = "🦸🏿‍♂️", ["supervillain"] = "🦹", ["supervillain_tone1"] = "🦹🏻", ["supervillain_light_skin_tone"] = "🦹🏻", ["supervillain_tone2"] = "🦹🏼", ["supervillain_medium_light_skin_tone"] = "🦹🏼", ["supervillain_tone3"] = "🦹🏽", ["supervillain_medium_skin_tone"] = "🦹🏽", ["supervillain_tone4"] = "🦹🏾", ["supervillain_medium_dark_skin_tone"] = "🦹🏾", ["supervillain_tone5"] = "🦹🏿", ["supervillain_dark_skin_tone"] = "🦹🏿", ["woman_supervillain"] = "🦹‍♀️", ["woman_supervillain_tone1"] = "🦹🏻‍♀️", ["woman_supervillain_light_skin_tone"] = "🦹🏻‍♀️", ["woman_supervillain_tone2"] = "🦹🏼‍♀️", ["woman_supervillain_medium_light_skin_tone"] = "🦹🏼‍♀️", ["woman_supervillain_tone3"] = "🦹🏽‍♀️", ["woman_supervillain_medium_skin_tone"] = "🦹🏽‍♀️", ["woman_supervillain_tone4"] = "🦹🏾‍♀️", ["woman_supervillain_medium_dark_skin_tone"] = "🦹🏾‍♀️", ["woman_supervillain_tone5"] = "🦹🏿‍♀️", ["woman_supervillain_dark_skin_tone"] = "🦹🏿‍♀️", ["man_supervillain"] = "🦹‍♂️", ["man_supervillain_tone1"] = "🦹🏻‍♂️", ["man_supervillain_light_skin_tone"] = "🦹🏻‍♂️", ["man_supervillain_tone2"] = "🦹🏼‍♂️", ["man_supervillain_medium_light_skin_tone"] = "🦹🏼‍♂️", ["man_supervillain_tone3"] = "🦹🏽‍♂️", ["man_supervillain_medium_skin_tone"] = "🦹🏽‍♂️", ["man_supervillain_tone4"] = "🦹🏾‍♂️", ["man_supervillain_medium_dark_skin_tone"] = "🦹🏾‍♂️", ["man_supervillain_tone5"] = "🦹🏿‍♂️", ["man_supervillain_dark_skin_tone"] = "🦹🏿‍♂️", ["ninja"] = "🥷", ["ninja_tone1"] = "🥷🏻", ["ninja_light_skin_tone"] = "🥷🏻", ["ninja_tone2"] = "🥷🏼", ["ninja_medium_light_skin_tone"] = "🥷🏼", ["ninja_tone3"] = "🥷🏽", ["ninja_medium_skin_tone"] = "🥷🏽", ["ninja_tone4"] = "🥷🏾", ["ninja_medium_dark_skin_tone"] = "🥷🏾", ["ninja_tone5"] = "🥷🏿", ["ninja_dark_skin_tone"] = "🥷🏿", ["mx_claus"] = "🧑‍🎄", ["mx_claus_tone1"] = "🧑🏻‍🎄", ["mx_claus_light_skin_tone"] = "🧑🏻‍🎄", ["mx_claus_tone2"] = "🧑🏼‍🎄", ["mx_claus_medium_light_skin_tone"] = "🧑🏼‍🎄", ["mx_claus_tone3"] = "🧑🏽‍🎄", ["mx_claus_medium_skin_tone"] = "🧑🏽‍🎄", ["mx_claus_tone4"] = "🧑🏾‍🎄", ["mx_claus_medium_dark_skin_tone"] = "🧑🏾‍🎄", ["mx_claus_tone5"] = "🧑🏿‍🎄", ["mx_claus_dark_skin_tone"] = "🧑🏿‍🎄", ["mrs_claus"] = "🤶", ["mother_christmas"] = "🤶", ["mrs_claus_tone1"] = "🤶🏻", ["mother_christmas_tone1"] = "🤶🏻", ["mrs_claus_tone2"] = "🤶🏼", ["mother_christmas_tone2"] = "🤶🏼", ["mrs_claus_tone3"] = "🤶🏽", ["mother_christmas_tone3"] = "🤶🏽", ["mrs_claus_tone4"] = "🤶🏾", ["mother_christmas_tone4"] = "🤶🏾", ["mrs_claus_tone5"] = "🤶🏿", ["mother_christmas_tone5"] = "🤶🏿", ["santa"] = "🎅", ["santa_tone1"] = "🎅🏻", ["santa_tone2"] = "🎅🏼", ["santa_tone3"] = "🎅🏽", ["santa_tone4"] = "🎅🏾", ["santa_tone5"] = "🎅🏿", ["mage"] = "🧙", ["mage_tone1"] = "🧙🏻", ["mage_light_skin_tone"] = "🧙🏻", ["mage_tone2"] = "🧙🏼", ["mage_medium_light_skin_tone"] = "🧙🏼", ["mage_tone3"] = "🧙🏽", ["mage_medium_skin_tone"] = "🧙🏽", ["mage_tone4"] = "🧙🏾", ["mage_medium_dark_skin_tone"] = "🧙🏾", ["mage_tone5"] = "🧙🏿", ["mage_dark_skin_tone"] = "🧙🏿", ["woman_mage"] = "🧙‍♀️", ["woman_mage_tone1"] = "🧙🏻‍♀️", ["woman_mage_light_skin_tone"] = "🧙🏻‍♀️", ["woman_mage_tone2"] = "🧙🏼‍♀️", ["woman_mage_medium_light_skin_tone"] = "🧙🏼‍♀️", ["woman_mage_tone3"] = "🧙🏽‍♀️", ["woman_mage_medium_skin_tone"] = "🧙🏽‍♀️", ["woman_mage_tone4"] = "🧙🏾‍♀️", ["woman_mage_medium_dark_skin_tone"] = "🧙🏾‍♀️", ["woman_mage_tone5"] = "🧙🏿‍♀️", ["woman_mage_dark_skin_tone"] = "🧙🏿‍♀️", ["man_mage"] = "🧙‍♂️", ["man_mage_tone1"] = "🧙🏻‍♂️", ["man_mage_light_skin_tone"] = "🧙🏻‍♂️", ["man_mage_tone2"] = "🧙🏼‍♂️", ["man_mage_medium_light_skin_tone"] = "🧙🏼‍♂️", ["man_mage_tone3"] = "🧙🏽‍♂️", ["man_mage_medium_skin_tone"] = "🧙🏽‍♂️", ["man_mage_tone4"] = "🧙🏾‍♂️", ["man_mage_medium_dark_skin_tone"] = "🧙🏾‍♂️", ["man_mage_tone5"] = "🧙🏿‍♂️", ["man_mage_dark_skin_tone"] = "🧙🏿‍♂️", ["elf"] = "🧝", ["elf_tone1"] = "🧝🏻", ["elf_light_skin_tone"] = "🧝🏻", ["elf_tone2"] = "🧝🏼", ["elf_medium_light_skin_tone"] = "🧝🏼", ["elf_tone3"] = "🧝🏽", ["elf_medium_skin_tone"] = "🧝🏽", ["elf_tone4"] = "🧝🏾", ["elf_medium_dark_skin_tone"] = "🧝🏾", ["elf_tone5"] = "🧝🏿", ["elf_dark_skin_tone"] = "🧝🏿", ["woman_elf"] = "🧝‍♀️", ["woman_elf_tone1"] = "🧝🏻‍♀️", ["woman_elf_light_skin_tone"] = "🧝🏻‍♀️", ["woman_elf_tone2"] = "🧝🏼‍♀️", ["woman_elf_medium_light_skin_tone"] = "🧝🏼‍♀️", ["woman_elf_tone3"] = "🧝🏽‍♀️", ["woman_elf_medium_skin_tone"] = "🧝🏽‍♀️", ["woman_elf_tone4"] = "🧝🏾‍♀️", ["woman_elf_medium_dark_skin_tone"] = "🧝🏾‍♀️", ["woman_elf_tone5"] = "🧝🏿‍♀️", ["woman_elf_dark_skin_tone"] = "🧝🏿‍♀️", ["man_elf"] = "🧝‍♂️", ["man_elf_tone1"] = "🧝🏻‍♂️", ["man_elf_light_skin_tone"] = "🧝🏻‍♂️", ["man_elf_tone2"] = "🧝🏼‍♂️", ["man_elf_medium_light_skin_tone"] = "🧝🏼‍♂️", ["man_elf_tone3"] = "🧝🏽‍♂️", ["man_elf_medium_skin_tone"] = "🧝🏽‍♂️", ["man_elf_tone4"] = "🧝🏾‍♂️", ["man_elf_medium_dark_skin_tone"] = "🧝🏾‍♂️", ["man_elf_tone5"] = "🧝🏿‍♂️", ["man_elf_dark_skin_tone"] = "🧝🏿‍♂️", ["vampire"] = "🧛", ["vampire_tone1"] = "🧛🏻", ["vampire_light_skin_tone"] = "🧛🏻", ["vampire_tone2"] = "🧛🏼", ["vampire_medium_light_skin_tone"] = "🧛🏼", ["vampire_tone3"] = "🧛🏽", ["vampire_medium_skin_tone"] = "🧛🏽", ["vampire_tone4"] = "🧛🏾", ["vampire_medium_dark_skin_tone"] = "🧛🏾", ["vampire_tone5"] = "🧛🏿", ["vampire_dark_skin_tone"] = "🧛🏿", ["woman_vampire"] = "🧛‍♀️", ["woman_vampire_tone1"] = "🧛🏻‍♀️", ["woman_vampire_light_skin_tone"] = "🧛🏻‍♀️", ["woman_vampire_tone2"] = "🧛🏼‍♀️", ["woman_vampire_medium_light_skin_tone"] = "🧛🏼‍♀️", ["woman_vampire_tone3"] = "🧛🏽‍♀️", ["woman_vampire_medium_skin_tone"] = "🧛🏽‍♀️", ["woman_vampire_tone4"] = "🧛🏾‍♀️", ["woman_vampire_medium_dark_skin_tone"] = "🧛🏾‍♀️", ["woman_vampire_tone5"] = "🧛🏿‍♀️", ["woman_vampire_dark_skin_tone"] = "🧛🏿‍♀️", ["man_vampire"] = "🧛‍♂️", ["man_vampire_tone1"] = "🧛🏻‍♂️", ["man_vampire_light_skin_tone"] = "🧛🏻‍♂️", ["man_vampire_tone2"] = "🧛🏼‍♂️", ["man_vampire_medium_light_skin_tone"] = "🧛🏼‍♂️", ["man_vampire_tone3"] = "🧛🏽‍♂️", ["man_vampire_medium_skin_tone"] = "🧛🏽‍♂️", ["man_vampire_tone4"] = "🧛🏾‍♂️", ["man_vampire_medium_dark_skin_tone"] = "🧛🏾‍♂️", ["man_vampire_tone5"] = "🧛🏿‍♂️", ["man_vampire_dark_skin_tone"] = "🧛🏿‍♂️", ["zombie"] = "🧟", ["woman_zombie"] = "🧟‍♀️", ["man_zombie"] = "🧟‍♂️", ["genie"] = "🧞", ["woman_genie"] = "🧞‍♀️", ["man_genie"] = "🧞‍♂️", ["merperson"] = "🧜", ["merperson_tone1"] = "🧜🏻", ["merperson_light_skin_tone"] = "🧜🏻", ["merperson_tone2"] = "🧜🏼", ["merperson_medium_light_skin_tone"] = "🧜🏼", ["merperson_tone3"] = "🧜🏽", ["merperson_medium_skin_tone"] = "🧜🏽", ["merperson_tone4"] = "🧜🏾", ["merperson_medium_dark_skin_tone"] = "🧜🏾", ["merperson_tone5"] = "🧜🏿", ["merperson_dark_skin_tone"] = "🧜🏿", ["mermaid"] = "🧜‍♀️", ["mermaid_tone1"] = "🧜🏻‍♀️", ["mermaid_light_skin_tone"] = "🧜🏻‍♀️", ["mermaid_tone2"] = "🧜🏼‍♀️", ["mermaid_medium_light_skin_tone"] = "🧜🏼‍♀️", ["mermaid_tone3"] = "🧜🏽‍♀️", ["mermaid_medium_skin_tone"] = "🧜🏽‍♀️", ["mermaid_tone4"] = "🧜🏾‍♀️", ["mermaid_medium_dark_skin_tone"] = "🧜🏾‍♀️", ["mermaid_tone5"] = "🧜🏿‍♀️", ["mermaid_dark_skin_tone"] = "🧜🏿‍♀️", ["merman"] = "🧜‍♂️", ["merman_tone1"] = "🧜🏻‍♂️", ["merman_light_skin_tone"] = "🧜🏻‍♂️", ["merman_tone2"] = "🧜🏼‍♂️", ["merman_medium_light_skin_tone"] = "🧜🏼‍♂️", ["merman_tone3"] = "🧜🏽‍♂️", ["merman_medium_skin_tone"] = "🧜🏽‍♂️", ["merman_tone4"] = "🧜🏾‍♂️", ["merman_medium_dark_skin_tone"] = "🧜🏾‍♂️", ["merman_tone5"] = "🧜🏿‍♂️", ["merman_dark_skin_tone"] = "🧜🏿‍♂️", ["fairy"] = "🧚", ["fairy_tone1"] = "🧚🏻", ["fairy_light_skin_tone"] = "🧚🏻", ["fairy_tone2"] = "🧚🏼", ["fairy_medium_light_skin_tone"] = "🧚🏼", ["fairy_tone3"] = "🧚🏽", ["fairy_medium_skin_tone"] = "🧚🏽", ["fairy_tone4"] = "🧚🏾", ["fairy_medium_dark_skin_tone"] = "🧚🏾", ["fairy_tone5"] = "🧚🏿", ["fairy_dark_skin_tone"] = "🧚🏿", ["woman_fairy"] = "🧚‍♀️", ["woman_fairy_tone1"] = "🧚🏻‍♀️", ["woman_fairy_light_skin_tone"] = "🧚🏻‍♀️", ["woman_fairy_tone2"] = "🧚🏼‍♀️", ["woman_fairy_medium_light_skin_tone"] = "🧚🏼‍♀️", ["woman_fairy_tone3"] = "🧚🏽‍♀️", ["woman_fairy_medium_skin_tone"] = "🧚🏽‍♀️", ["woman_fairy_tone4"] = "🧚🏾‍♀️", ["woman_fairy_medium_dark_skin_tone"] = "🧚🏾‍♀️", ["woman_fairy_tone5"] = "🧚🏿‍♀️", ["woman_fairy_dark_skin_tone"] = "🧚🏿‍♀️", ["man_fairy"] = "🧚‍♂️", ["man_fairy_tone1"] = "🧚🏻‍♂️", ["man_fairy_light_skin_tone"] = "🧚🏻‍♂️", ["man_fairy_tone2"] = "🧚🏼‍♂️", ["man_fairy_medium_light_skin_tone"] = "🧚🏼‍♂️", ["man_fairy_tone3"] = "🧚🏽‍♂️", ["man_fairy_medium_skin_tone"] = "🧚🏽‍♂️", ["man_fairy_tone4"] = "🧚🏾‍♂️", ["man_fairy_medium_dark_skin_tone"] = "🧚🏾‍♂️", ["man_fairy_tone5"] = "🧚🏿‍♂️", ["man_fairy_dark_skin_tone"] = "🧚🏿‍♂️", ["angel"] = "👼", ["angel_tone1"] = "👼🏻", ["angel_tone2"] = "👼🏼", ["angel_tone3"] = "👼🏽", ["angel_tone4"] = "👼🏾", ["angel_tone5"] = "👼🏿", ["pregnant_woman"] = "🤰", ["expecting_woman"] = "🤰", ["pregnant_woman_tone1"] = "🤰🏻", ["expecting_woman_tone1"] = "🤰🏻", ["pregnant_woman_tone2"] = "🤰🏼", ["expecting_woman_tone2"] = "🤰🏼", ["pregnant_woman_tone3"] = "🤰🏽", ["expecting_woman_tone3"] = "🤰🏽", ["pregnant_woman_tone4"] = "🤰🏾", ["expecting_woman_tone4"] = "🤰🏾", ["pregnant_woman_tone5"] = "🤰🏿", ["expecting_woman_tone5"] = "🤰🏿", ["breast_feeding"] = "🤱", ["breast_feeding_tone1"] = "🤱🏻", ["breast_feeding_light_skin_tone"] = "🤱🏻", ["breast_feeding_tone2"] = "🤱🏼", ["breast_feeding_medium_light_skin_tone"] = "🤱🏼", ["breast_feeding_tone3"] = "🤱🏽", ["breast_feeding_medium_skin_tone"] = "🤱🏽", ["breast_feeding_tone4"] = "🤱🏾", ["breast_feeding_medium_dark_skin_tone"] = "🤱🏾", ["breast_feeding_tone5"] = "🤱🏿", ["breast_feeding_dark_skin_tone"] = "🤱🏿", ["person_feeding_baby"] = "🧑‍🍼", ["person_feeding_baby_tone1"] = "🧑🏻‍🍼", ["person_feeding_baby_light_skin_tone"] = "🧑🏻‍🍼", ["person_feeding_baby_tone2"] = "🧑🏼‍🍼", ["person_feeding_baby_medium_light_skin_tone"] = "🧑🏼‍🍼", ["person_feeding_baby_tone3"] = "🧑🏽‍🍼", ["person_feeding_baby_medium_skin_tone"] = "🧑🏽‍🍼", ["person_feeding_baby_tone4"] = "🧑🏾‍🍼", ["person_feeding_baby_medium_dark_skin_tone"] = "🧑🏾‍🍼", ["person_feeding_baby_tone5"] = "🧑🏿‍🍼", ["person_feeding_baby_dark_skin_tone"] = "🧑🏿‍🍼", ["woman_feeding_baby"] = "👩‍🍼", ["woman_feeding_baby_tone1"] = "👩🏻‍🍼", ["woman_feeding_baby_light_skin_tone"] = "👩🏻‍🍼", ["woman_feeding_baby_tone2"] = "👩🏼‍🍼", ["woman_feeding_baby_medium_light_skin_tone"] = "👩🏼‍🍼", ["woman_feeding_baby_tone3"] = "👩🏽‍🍼", ["woman_feeding_baby_medium_skin_tone"] = "👩🏽‍🍼", ["woman_feeding_baby_tone4"] = "👩🏾‍🍼", ["woman_feeding_baby_medium_dark_skin_tone"] = "👩🏾‍🍼", ["woman_feeding_baby_tone5"] = "👩🏿‍🍼", ["woman_feeding_baby_dark_skin_tone"] = "👩🏿‍🍼", ["man_feeding_baby"] = "👨‍🍼", ["man_feeding_baby_tone1"] = "👨🏻‍🍼", ["man_feeding_baby_light_skin_tone"] = "👨🏻‍🍼", ["man_feeding_baby_tone2"] = "👨🏼‍🍼", ["man_feeding_baby_medium_light_skin_tone"] = "👨🏼‍🍼", ["man_feeding_baby_tone3"] = "👨🏽‍🍼", ["man_feeding_baby_medium_skin_tone"] = "👨🏽‍🍼", ["man_feeding_baby_tone4"] = "👨🏾‍🍼", ["man_feeding_baby_medium_dark_skin_tone"] = "👨🏾‍🍼", ["man_feeding_baby_tone5"] = "👨🏿‍🍼", ["man_feeding_baby_dark_skin_tone"] = "👨🏿‍🍼", ["person_bowing"] = "🙇", ["bow"] = "🙇", ["person_bowing_tone1"] = "🙇🏻", ["bow_tone1"] = "🙇🏻", ["person_bowing_tone2"] = "🙇🏼", ["bow_tone2"] = "🙇🏼", ["person_bowing_tone3"] = "🙇🏽", ["bow_tone3"] = "🙇🏽", ["person_bowing_tone4"] = "🙇🏾", ["bow_tone4"] = "🙇🏾", ["person_bowing_tone5"] = "🙇🏿", ["bow_tone5"] = "🙇🏿", ["woman_bowing"] = "🙇‍♀️", ["woman_bowing_tone1"] = "🙇🏻‍♀️", ["woman_bowing_light_skin_tone"] = "🙇🏻‍♀️", ["woman_bowing_tone2"] = "🙇🏼‍♀️", ["woman_bowing_medium_light_skin_tone"] = "🙇🏼‍♀️", ["woman_bowing_tone3"] = "🙇🏽‍♀️", ["woman_bowing_medium_skin_tone"] = "🙇🏽‍♀️", ["woman_bowing_tone4"] = "🙇🏾‍♀️", ["woman_bowing_medium_dark_skin_tone"] = "🙇🏾‍♀️", ["woman_bowing_tone5"] = "🙇🏿‍♀️", ["woman_bowing_dark_skin_tone"] = "🙇🏿‍♀️", ["man_bowing"] = "🙇‍♂️", ["man_bowing_tone1"] = "🙇🏻‍♂️", ["man_bowing_light_skin_tone"] = "🙇🏻‍♂️", ["man_bowing_tone2"] = "🙇🏼‍♂️", ["man_bowing_medium_light_skin_tone"] = "🙇🏼‍♂️", ["man_bowing_tone3"] = "🙇🏽‍♂️", ["man_bowing_medium_skin_tone"] = "🙇🏽‍♂️", ["man_bowing_tone4"] = "🙇🏾‍♂️", ["man_bowing_medium_dark_skin_tone"] = "🙇🏾‍♂️", ["man_bowing_tone5"] = "🙇🏿‍♂️", ["man_bowing_dark_skin_tone"] = "🙇🏿‍♂️", ["person_tipping_hand"] = "💁", ["information_desk_person"] = "💁", ["person_tipping_hand_tone1"] = "💁🏻", ["information_desk_person_tone1"] = "💁🏻", ["person_tipping_hand_tone2"] = "💁🏼", ["information_desk_person_tone2"] = "💁🏼", ["person_tipping_hand_tone3"] = "💁🏽", ["information_desk_person_tone3"] = "💁🏽", ["person_tipping_hand_tone4"] = "💁🏾", ["information_desk_person_tone4"] = "💁🏾", ["person_tipping_hand_tone5"] = "💁🏿", ["information_desk_person_tone5"] = "💁🏿", ["woman_tipping_hand"] = "💁‍♀️", ["woman_tipping_hand_tone1"] = "💁🏻‍♀️", ["woman_tipping_hand_light_skin_tone"] = "💁🏻‍♀️", ["woman_tipping_hand_tone2"] = "💁🏼‍♀️", ["woman_tipping_hand_medium_light_skin_tone"] = "💁🏼‍♀️", ["woman_tipping_hand_tone3"] = "💁🏽‍♀️", ["woman_tipping_hand_medium_skin_tone"] = "💁🏽‍♀️", ["woman_tipping_hand_tone4"] = "💁🏾‍♀️", ["woman_tipping_hand_medium_dark_skin_tone"] = "💁🏾‍♀️", ["woman_tipping_hand_tone5"] = "💁🏿‍♀️", ["woman_tipping_hand_dark_skin_tone"] = "💁🏿‍♀️", ["man_tipping_hand"] = "💁‍♂️", ["man_tipping_hand_tone1"] = "💁🏻‍♂️", ["man_tipping_hand_light_skin_tone"] = "💁🏻‍♂️", ["man_tipping_hand_tone2"] = "💁🏼‍♂️", ["man_tipping_hand_medium_light_skin_tone"] = "💁🏼‍♂️", ["man_tipping_hand_tone3"] = "💁🏽‍♂️", ["man_tipping_hand_medium_skin_tone"] = "💁🏽‍♂️", ["man_tipping_hand_tone4"] = "💁🏾‍♂️", ["man_tipping_hand_medium_dark_skin_tone"] = "💁🏾‍♂️", ["man_tipping_hand_tone5"] = "💁🏿‍♂️", ["man_tipping_hand_dark_skin_tone"] = "💁🏿‍♂️", ["person_gesturing_no"] = "🙅", ["no_good"] = "🙅", ["person_gesturing_no_tone1"] = "🙅🏻", ["no_good_tone1"] = "🙅🏻", ["person_gesturing_no_tone2"] = "🙅🏼", ["no_good_tone2"] = "🙅🏼", ["person_gesturing_no_tone3"] = "🙅🏽", ["no_good_tone3"] = "🙅🏽", ["person_gesturing_no_tone4"] = "🙅🏾", ["no_good_tone4"] = "🙅🏾", ["person_gesturing_no_tone5"] = "🙅🏿", ["no_good_tone5"] = "🙅🏿", ["woman_gesturing_no"] = "🙅‍♀️", ["woman_gesturing_no_tone1"] = "🙅🏻‍♀️", ["woman_gesturing_no_light_skin_tone"] = "🙅🏻‍♀️", ["woman_gesturing_no_tone2"] = "🙅🏼‍♀️", ["woman_gesturing_no_medium_light_skin_tone"] = "🙅🏼‍♀️", ["woman_gesturing_no_tone3"] = "🙅🏽‍♀️", ["woman_gesturing_no_medium_skin_tone"] = "🙅🏽‍♀️", ["woman_gesturing_no_tone4"] = "🙅🏾‍♀️", ["woman_gesturing_no_medium_dark_skin_tone"] = "🙅🏾‍♀️", ["woman_gesturing_no_tone5"] = "🙅🏿‍♀️", ["woman_gesturing_no_dark_skin_tone"] = "🙅🏿‍♀️", ["man_gesturing_no"] = "🙅‍♂️", ["man_gesturing_no_tone1"] = "🙅🏻‍♂️", ["man_gesturing_no_light_skin_tone"] = "🙅🏻‍♂️", ["man_gesturing_no_tone2"] = "🙅🏼‍♂️", ["man_gesturing_no_medium_light_skin_tone"] = "🙅🏼‍♂️", ["man_gesturing_no_tone3"] = "🙅🏽‍♂️", ["man_gesturing_no_medium_skin_tone"] = "🙅🏽‍♂️", ["man_gesturing_no_tone4"] = "🙅🏾‍♂️", ["man_gesturing_no_medium_dark_skin_tone"] = "🙅🏾‍♂️", ["man_gesturing_no_tone5"] = "🙅🏿‍♂️", ["man_gesturing_no_dark_skin_tone"] = "🙅🏿‍♂️", ["person_gesturing_ok"] = "🙆", ["ok_woman"] = "🙆", ["person_gesturing_ok_tone1"] = "🙆🏻", ["ok_woman_tone1"] = "🙆🏻", ["person_gesturing_ok_tone2"] = "🙆🏼", ["ok_woman_tone2"] = "🙆🏼", ["person_gesturing_ok_tone3"] = "🙆🏽", ["ok_woman_tone3"] = "🙆🏽", ["person_gesturing_ok_tone4"] = "🙆🏾", ["ok_woman_tone4"] = "🙆🏾", ["person_gesturing_ok_tone5"] = "🙆🏿", ["ok_woman_tone5"] = "🙆🏿", ["woman_gesturing_ok"] = "🙆‍♀️", ["woman_gesturing_ok_tone1"] = "🙆🏻‍♀️", ["woman_gesturing_ok_light_skin_tone"] = "🙆🏻‍♀️", ["woman_gesturing_ok_tone2"] = "🙆🏼‍♀️", ["woman_gesturing_ok_medium_light_skin_tone"] = "🙆🏼‍♀️", ["woman_gesturing_ok_tone3"] = "🙆🏽‍♀️", ["woman_gesturing_ok_medium_skin_tone"] = "🙆🏽‍♀️", ["woman_gesturing_ok_tone4"] = "🙆🏾‍♀️", ["woman_gesturing_ok_medium_dark_skin_tone"] = "🙆🏾‍♀️", ["woman_gesturing_ok_tone5"] = "🙆🏿‍♀️", ["woman_gesturing_ok_dark_skin_tone"] = "🙆🏿‍♀️", ["man_gesturing_ok"] = "🙆‍♂️", ["man_gesturing_ok_tone1"] = "🙆🏻‍♂️", ["man_gesturing_ok_light_skin_tone"] = "🙆🏻‍♂️", ["man_gesturing_ok_tone2"] = "🙆🏼‍♂️", ["man_gesturing_ok_medium_light_skin_tone"] = "🙆🏼‍♂️", ["man_gesturing_ok_tone3"] = "🙆🏽‍♂️", ["man_gesturing_ok_medium_skin_tone"] = "🙆🏽‍♂️", ["man_gesturing_ok_tone4"] = "🙆🏾‍♂️", ["man_gesturing_ok_medium_dark_skin_tone"] = "🙆🏾‍♂️", ["man_gesturing_ok_tone5"] = "🙆🏿‍♂️", ["man_gesturing_ok_dark_skin_tone"] = "🙆🏿‍♂️", ["person_raising_hand"] = "🙋", ["raising_hand"] = "🙋", ["person_raising_hand_tone1"] = "🙋🏻", ["raising_hand_tone1"] = "🙋🏻", ["person_raising_hand_tone2"] = "🙋🏼", ["raising_hand_tone2"] = "🙋🏼", ["person_raising_hand_tone3"] = "🙋🏽", ["raising_hand_tone3"] = "🙋🏽", ["person_raising_hand_tone4"] = "🙋🏾", ["raising_hand_tone4"] = "🙋🏾", ["person_raising_hand_tone5"] = "🙋🏿", ["raising_hand_tone5"] = "🙋🏿", ["woman_raising_hand"] = "🙋‍♀️", ["woman_raising_hand_tone1"] = "🙋🏻‍♀️", ["woman_raising_hand_light_skin_tone"] = "🙋🏻‍♀️", ["woman_raising_hand_tone2"] = "🙋🏼‍♀️", ["woman_raising_hand_medium_light_skin_tone"] = "🙋🏼‍♀️", ["woman_raising_hand_tone3"] = "🙋🏽‍♀️", ["woman_raising_hand_medium_skin_tone"] = "🙋🏽‍♀️", ["woman_raising_hand_tone4"] = "🙋🏾‍♀️", ["woman_raising_hand_medium_dark_skin_tone"] = "🙋🏾‍♀️", ["woman_raising_hand_tone5"] = "🙋🏿‍♀️", ["woman_raising_hand_dark_skin_tone"] = "🙋🏿‍♀️", ["man_raising_hand"] = "🙋‍♂️", ["man_raising_hand_tone1"] = "🙋🏻‍♂️", ["man_raising_hand_light_skin_tone"] = "🙋🏻‍♂️", ["man_raising_hand_tone2"] = "🙋🏼‍♂️", ["man_raising_hand_medium_light_skin_tone"] = "🙋🏼‍♂️", ["man_raising_hand_tone3"] = "🙋🏽‍♂️", ["man_raising_hand_medium_skin_tone"] = "🙋🏽‍♂️", ["man_raising_hand_tone4"] = "🙋🏾‍♂️", ["man_raising_hand_medium_dark_skin_tone"] = "🙋🏾‍♂️", ["man_raising_hand_tone5"] = "🙋🏿‍♂️", ["man_raising_hand_dark_skin_tone"] = "🙋🏿‍♂️", ["deaf_person"] = "🧏", ["deaf_person_tone1"] = "🧏🏻", ["deaf_person_light_skin_tone"] = "🧏🏻", ["deaf_person_tone2"] = "🧏🏼", ["deaf_person_medium_light_skin_tone"] = "🧏🏼", ["deaf_person_tone3"] = "🧏🏽", ["deaf_person_medium_skin_tone"] = "🧏🏽", ["deaf_person_tone4"] = "🧏🏾", ["deaf_person_medium_dark_skin_tone"] = "🧏🏾", ["deaf_person_tone5"] = "🧏🏿", ["deaf_person_dark_skin_tone"] = "🧏🏿", ["deaf_woman"] = "🧏‍♀️", ["deaf_woman_tone1"] = "🧏🏻‍♀️", ["deaf_woman_light_skin_tone"] = "🧏🏻‍♀️", ["deaf_woman_tone2"] = "🧏🏼‍♀️", ["deaf_woman_medium_light_skin_tone"] = "🧏🏼‍♀️", ["deaf_woman_tone3"] = "🧏🏽‍♀️", ["deaf_woman_medium_skin_tone"] = "🧏🏽‍♀️", ["deaf_woman_tone4"] = "🧏🏾‍♀️", ["deaf_woman_medium_dark_skin_tone"] = "🧏🏾‍♀️", ["deaf_woman_tone5"] = "🧏🏿‍♀️", ["deaf_woman_dark_skin_tone"] = "🧏🏿‍♀️", ["deaf_man"] = "🧏‍♂️", ["deaf_man_tone1"] = "🧏🏻‍♂️", ["deaf_man_light_skin_tone"] = "🧏🏻‍♂️", ["deaf_man_tone2"] = "🧏🏼‍♂️", ["deaf_man_medium_light_skin_tone"] = "🧏🏼‍♂️", ["deaf_man_tone3"] = "🧏🏽‍♂️", ["deaf_man_medium_skin_tone"] = "🧏🏽‍♂️", ["deaf_man_tone4"] = "🧏🏾‍♂️", ["deaf_man_medium_dark_skin_tone"] = "🧏🏾‍♂️", ["deaf_man_tone5"] = "🧏🏿‍♂️", ["deaf_man_dark_skin_tone"] = "🧏🏿‍♂️", ["person_facepalming"] = "🤦", ["face_palm"] = "🤦", ["facepalm"] = "🤦", ["person_facepalming_tone1"] = "🤦🏻", ["face_palm_tone1"] = "🤦🏻", ["facepalm_tone1"] = "🤦🏻", ["person_facepalming_tone2"] = "🤦🏼", ["face_palm_tone2"] = "🤦🏼", ["facepalm_tone2"] = "🤦🏼", ["person_facepalming_tone3"] = "🤦🏽", ["face_palm_tone3"] = "🤦🏽", ["facepalm_tone3"] = "🤦🏽", ["person_facepalming_tone4"] = "🤦🏾", ["face_palm_tone4"] = "🤦🏾", ["facepalm_tone4"] = "🤦🏾", ["person_facepalming_tone5"] = "🤦🏿", ["face_palm_tone5"] = "🤦🏿", ["facepalm_tone5"] = "🤦🏿", ["woman_facepalming"] = "🤦‍♀️", ["woman_facepalming_tone1"] = "🤦🏻‍♀️", ["woman_facepalming_light_skin_tone"] = "🤦🏻‍♀️", ["woman_facepalming_tone2"] = "🤦🏼‍♀️", ["woman_facepalming_medium_light_skin_tone"] = "🤦🏼‍♀️", ["woman_facepalming_tone3"] = "🤦🏽‍♀️", ["woman_facepalming_medium_skin_tone"] = "🤦🏽‍♀️", ["woman_facepalming_tone4"] = "🤦🏾‍♀️", ["woman_facepalming_medium_dark_skin_tone"] = "🤦🏾‍♀️", ["woman_facepalming_tone5"] = "🤦🏿‍♀️", ["woman_facepalming_dark_skin_tone"] = "🤦🏿‍♀️", ["man_facepalming"] = "🤦‍♂️", ["man_facepalming_tone1"] = "🤦🏻‍♂️", ["man_facepalming_light_skin_tone"] = "🤦🏻‍♂️", ["man_facepalming_tone2"] = "🤦🏼‍♂️", ["man_facepalming_medium_light_skin_tone"] = "🤦🏼‍♂️", ["man_facepalming_tone3"] = "🤦🏽‍♂️", ["man_facepalming_medium_skin_tone"] = "🤦🏽‍♂️", ["man_facepalming_tone4"] = "🤦🏾‍♂️", ["man_facepalming_medium_dark_skin_tone"] = "🤦🏾‍♂️", ["man_facepalming_tone5"] = "🤦🏿‍♂️", ["man_facepalming_dark_skin_tone"] = "🤦🏿‍♂️", ["person_shrugging"] = "🤷", ["shrug"] = "🤷", ["person_shrugging_tone1"] = "🤷🏻", ["shrug_tone1"] = "🤷🏻", ["person_shrugging_tone2"] = "🤷🏼", ["shrug_tone2"] = "🤷🏼", ["person_shrugging_tone3"] = "🤷🏽", ["shrug_tone3"] = "🤷🏽", ["person_shrugging_tone4"] = "🤷🏾", ["shrug_tone4"] = "🤷🏾", ["person_shrugging_tone5"] = "🤷🏿", ["shrug_tone5"] = "🤷🏿", ["woman_shrugging"] = "🤷‍♀️", ["woman_shrugging_tone1"] = "🤷🏻‍♀️", ["woman_shrugging_light_skin_tone"] = "🤷🏻‍♀️", ["woman_shrugging_tone2"] = "🤷🏼‍♀️", ["woman_shrugging_medium_light_skin_tone"] = "🤷🏼‍♀️", ["woman_shrugging_tone3"] = "🤷🏽‍♀️", ["woman_shrugging_medium_skin_tone"] = "🤷🏽‍♀️", ["woman_shrugging_tone4"] = "🤷🏾‍♀️", ["woman_shrugging_medium_dark_skin_tone"] = "🤷🏾‍♀️", ["woman_shrugging_tone5"] = "🤷🏿‍♀️", ["woman_shrugging_dark_skin_tone"] = "🤷🏿‍♀️", ["man_shrugging"] = "🤷‍♂️", ["man_shrugging_tone1"] = "🤷🏻‍♂️", ["man_shrugging_light_skin_tone"] = "🤷🏻‍♂️", ["man_shrugging_tone2"] = "🤷🏼‍♂️", ["man_shrugging_medium_light_skin_tone"] = "🤷🏼‍♂️", ["man_shrugging_tone3"] = "🤷🏽‍♂️", ["man_shrugging_medium_skin_tone"] = "🤷🏽‍♂️", ["man_shrugging_tone4"] = "🤷🏾‍♂️", ["man_shrugging_medium_dark_skin_tone"] = "🤷🏾‍♂️", ["man_shrugging_tone5"] = "🤷🏿‍♂️", ["man_shrugging_dark_skin_tone"] = "🤷🏿‍♂️", ["person_pouting"] = "🙎", ["person_with_pouting_face"] = "🙎", ["person_pouting_tone1"] = "🙎🏻", ["person_with_pouting_face_tone1"] = "🙎🏻", ["person_pouting_tone2"] = "🙎🏼", ["person_with_pouting_face_tone2"] = "🙎🏼", ["person_pouting_tone3"] = "🙎🏽", ["person_with_pouting_face_tone3"] = "🙎🏽", ["person_pouting_tone4"] = "🙎🏾", ["person_with_pouting_face_tone4"] = "🙎🏾", ["person_pouting_tone5"] = "🙎🏿", ["person_with_pouting_face_tone5"] = "🙎🏿", ["woman_pouting"] = "🙎‍♀️", ["woman_pouting_tone1"] = "🙎🏻‍♀️", ["woman_pouting_light_skin_tone"] = "🙎🏻‍♀️", ["woman_pouting_tone2"] = "🙎🏼‍♀️", ["woman_pouting_medium_light_skin_tone"] = "🙎🏼‍♀️", ["woman_pouting_tone3"] = "🙎🏽‍♀️", ["woman_pouting_medium_skin_tone"] = "🙎🏽‍♀️", ["woman_pouting_tone4"] = "🙎🏾‍♀️", ["woman_pouting_medium_dark_skin_tone"] = "🙎🏾‍♀️", ["woman_pouting_tone5"] = "🙎🏿‍♀️", ["woman_pouting_dark_skin_tone"] = "🙎🏿‍♀️", ["man_pouting"] = "🙎‍♂️", ["man_pouting_tone1"] = "🙎🏻‍♂️", ["man_pouting_light_skin_tone"] = "🙎🏻‍♂️", ["man_pouting_tone2"] = "🙎🏼‍♂️", ["man_pouting_medium_light_skin_tone"] = "🙎🏼‍♂️", ["man_pouting_tone3"] = "🙎🏽‍♂️", ["man_pouting_medium_skin_tone"] = "🙎🏽‍♂️", ["man_pouting_tone4"] = "🙎🏾‍♂️", ["man_pouting_medium_dark_skin_tone"] = "🙎🏾‍♂️", ["man_pouting_tone5"] = "🙎🏿‍♂️", ["man_pouting_dark_skin_tone"] = "🙎🏿‍♂️", ["person_frowning"] = "🙍", ["person_frowning_tone1"] = "🙍🏻", ["person_frowning_tone2"] = "🙍🏼", ["person_frowning_tone3"] = "🙍🏽", ["person_frowning_tone4"] = "🙍🏾", ["person_frowning_tone5"] = "🙍🏿", ["woman_frowning"] = "🙍‍♀️", ["woman_frowning_tone1"] = "🙍🏻‍♀️", ["woman_frowning_light_skin_tone"] = "🙍🏻‍♀️", ["woman_frowning_tone2"] = "🙍🏼‍♀️", ["woman_frowning_medium_light_skin_tone"] = "🙍🏼‍♀️", ["woman_frowning_tone3"] = "🙍🏽‍♀️", ["woman_frowning_medium_skin_tone"] = "🙍🏽‍♀️", ["woman_frowning_tone4"] = "🙍🏾‍♀️", ["woman_frowning_medium_dark_skin_tone"] = "🙍🏾‍♀️", ["woman_frowning_tone5"] = "🙍🏿‍♀️", ["woman_frowning_dark_skin_tone"] = "🙍🏿‍♀️", ["man_frowning"] = "🙍‍♂️", ["man_frowning_tone1"] = "🙍🏻‍♂️", ["man_frowning_light_skin_tone"] = "🙍🏻‍♂️", ["man_frowning_tone2"] = "🙍🏼‍♂️", ["man_frowning_medium_light_skin_tone"] = "🙍🏼‍♂️", ["man_frowning_tone3"] = "🙍🏽‍♂️", ["man_frowning_medium_skin_tone"] = "🙍🏽‍♂️", ["man_frowning_tone4"] = "🙍🏾‍♂️", ["man_frowning_medium_dark_skin_tone"] = "🙍🏾‍♂️", ["man_frowning_tone5"] = "🙍🏿‍♂️", ["man_frowning_dark_skin_tone"] = "🙍🏿‍♂️", ["person_getting_haircut"] = "💇", ["haircut"] = "💇", ["person_getting_haircut_tone1"] = "💇🏻", ["haircut_tone1"] = "💇🏻", ["person_getting_haircut_tone2"] = "💇🏼", ["haircut_tone2"] = "💇🏼", ["person_getting_haircut_tone3"] = "💇🏽", ["haircut_tone3"] = "💇🏽", ["person_getting_haircut_tone4"] = "💇🏾", ["haircut_tone4"] = "💇🏾", ["person_getting_haircut_tone5"] = "💇🏿", ["haircut_tone5"] = "💇🏿", ["woman_getting_haircut"] = "💇‍♀️", ["woman_getting_haircut_tone1"] = "💇🏻‍♀️", ["woman_getting_haircut_light_skin_tone"] = "💇🏻‍♀️", ["woman_getting_haircut_tone2"] = "💇🏼‍♀️", ["woman_getting_haircut_medium_light_skin_tone"] = "💇🏼‍♀️", ["woman_getting_haircut_tone3"] = "💇🏽‍♀️", ["woman_getting_haircut_medium_skin_tone"] = "💇🏽‍♀️", ["woman_getting_haircut_tone4"] = "💇🏾‍♀️", ["woman_getting_haircut_medium_dark_skin_tone"] = "💇🏾‍♀️", ["woman_getting_haircut_tone5"] = "💇🏿‍♀️", ["woman_getting_haircut_dark_skin_tone"] = "💇🏿‍♀️", ["man_getting_haircut"] = "💇‍♂️", ["man_getting_haircut_tone1"] = "💇🏻‍♂️", ["man_getting_haircut_light_skin_tone"] = "💇🏻‍♂️", ["man_getting_haircut_tone2"] = "💇🏼‍♂️", ["man_getting_haircut_medium_light_skin_tone"] = "💇🏼‍♂️", ["man_getting_haircut_tone3"] = "💇🏽‍♂️", ["man_getting_haircut_medium_skin_tone"] = "💇🏽‍♂️", ["man_getting_haircut_tone4"] = "💇🏾‍♂️", ["man_getting_haircut_medium_dark_skin_tone"] = "💇🏾‍♂️", ["man_getting_haircut_tone5"] = "💇🏿‍♂️", ["man_getting_haircut_dark_skin_tone"] = "💇🏿‍♂️", ["person_getting_massage"] = "💆", ["massage"] = "💆", ["person_getting_massage_tone1"] = "💆🏻", ["massage_tone1"] = "💆🏻", ["person_getting_massage_tone2"] = "💆🏼", ["massage_tone2"] = "💆🏼", ["person_getting_massage_tone3"] = "💆🏽", ["massage_tone3"] = "💆🏽", ["person_getting_massage_tone4"] = "💆🏾", ["massage_tone4"] = "💆🏾", ["person_getting_massage_tone5"] = "💆🏿", ["massage_tone5"] = "💆🏿", ["woman_getting_face_massage"] = "💆‍♀️", ["woman_getting_face_massage_tone1"] = "💆🏻‍♀️", ["woman_getting_face_massage_light_skin_tone"] = "💆🏻‍♀️", ["woman_getting_face_massage_tone2"] = "💆🏼‍♀️", ["woman_getting_face_massage_medium_light_skin_tone"] = "💆🏼‍♀️", ["woman_getting_face_massage_tone3"] = "💆🏽‍♀️", ["woman_getting_face_massage_medium_skin_tone"] = "💆🏽‍♀️", ["woman_getting_face_massage_tone4"] = "💆🏾‍♀️", ["woman_getting_face_massage_medium_dark_skin_tone"] = "💆🏾‍♀️", ["woman_getting_face_massage_tone5"] = "💆🏿‍♀️", ["woman_getting_face_massage_dark_skin_tone"] = "💆🏿‍♀️", ["man_getting_face_massage"] = "💆‍♂️", ["man_getting_face_massage_tone1"] = "💆🏻‍♂️", ["man_getting_face_massage_light_skin_tone"] = "💆🏻‍♂️", ["man_getting_face_massage_tone2"] = "💆🏼‍♂️", ["man_getting_face_massage_medium_light_skin_tone"] = "💆🏼‍♂️", ["man_getting_face_massage_tone3"] = "💆🏽‍♂️", ["man_getting_face_massage_medium_skin_tone"] = "💆🏽‍♂️", ["man_getting_face_massage_tone4"] = "💆🏾‍♂️", ["man_getting_face_massage_medium_dark_skin_tone"] = "💆🏾‍♂️", ["man_getting_face_massage_tone5"] = "💆🏿‍♂️", ["man_getting_face_massage_dark_skin_tone"] = "💆🏿‍♂️", ["person_in_steamy_room"] = "🧖", ["person_in_steamy_room_tone1"] = "🧖🏻", ["person_in_steamy_room_light_skin_tone"] = "🧖🏻", ["person_in_steamy_room_tone2"] = "🧖🏼", ["person_in_steamy_room_medium_light_skin_tone"] = "🧖🏼", ["person_in_steamy_room_tone3"] = "🧖🏽", ["person_in_steamy_room_medium_skin_tone"] = "🧖🏽", ["person_in_steamy_room_tone4"] = "🧖🏾", ["person_in_steamy_room_medium_dark_skin_tone"] = "🧖🏾", ["person_in_steamy_room_tone5"] = "🧖🏿", ["person_in_steamy_room_dark_skin_tone"] = "🧖🏿", ["woman_in_steamy_room"] = "🧖‍♀️", ["woman_in_steamy_room_tone1"] = "🧖🏻‍♀️", ["woman_in_steamy_room_light_skin_tone"] = "🧖🏻‍♀️", ["woman_in_steamy_room_tone2"] = "🧖🏼‍♀️", ["woman_in_steamy_room_medium_light_skin_tone"] = "🧖🏼‍♀️", ["woman_in_steamy_room_tone3"] = "🧖🏽‍♀️", ["woman_in_steamy_room_medium_skin_tone"] = "🧖🏽‍♀️", ["woman_in_steamy_room_tone4"] = "🧖🏾‍♀️", ["woman_in_steamy_room_medium_dark_skin_tone"] = "🧖🏾‍♀️", ["woman_in_steamy_room_tone5"] = "🧖🏿‍♀️", ["woman_in_steamy_room_dark_skin_tone"] = "🧖🏿‍♀️", ["man_in_steamy_room"] = "🧖‍♂️", ["man_in_steamy_room_tone1"] = "🧖🏻‍♂️", ["man_in_steamy_room_light_skin_tone"] = "🧖🏻‍♂️", ["man_in_steamy_room_tone2"] = "🧖🏼‍♂️", ["man_in_steamy_room_medium_light_skin_tone"] = "🧖🏼‍♂️", ["man_in_steamy_room_tone3"] = "🧖🏽‍♂️", ["man_in_steamy_room_medium_skin_tone"] = "🧖🏽‍♂️", ["man_in_steamy_room_tone4"] = "🧖🏾‍♂️", ["man_in_steamy_room_medium_dark_skin_tone"] = "🧖🏾‍♂️", ["man_in_steamy_room_tone5"] = "🧖🏿‍♂️", ["man_in_steamy_room_dark_skin_tone"] = "🧖🏿‍♂️", ["nail_care"] = "💅", ["nail_care_tone1"] = "💅🏻", ["nail_care_tone2"] = "💅🏼", ["nail_care_tone3"] = "💅🏽", ["nail_care_tone4"] = "💅🏾", ["nail_care_tone5"] = "💅🏿", ["selfie"] = "🤳", ["selfie_tone1"] = "🤳🏻", ["selfie_tone2"] = "🤳🏼", ["selfie_tone3"] = "🤳🏽", ["selfie_tone4"] = "🤳🏾", ["selfie_tone5"] = "🤳🏿", ["dancer"] = "💃", ["dancer_tone1"] = "💃🏻", ["dancer_tone2"] = "💃🏼", ["dancer_tone3"] = "💃🏽", ["dancer_tone4"] = "💃🏾", ["dancer_tone5"] = "💃🏿", ["man_dancing"] = "🕺", ["male_dancer"] = "🕺", ["man_dancing_tone1"] = "🕺🏻", ["male_dancer_tone1"] = "🕺🏻", ["man_dancing_tone2"] = "🕺🏼", ["male_dancer_tone2"] = "🕺🏼", ["man_dancing_tone3"] = "🕺🏽", ["male_dancer_tone3"] = "🕺🏽", ["man_dancing_tone5"] = "🕺🏿", ["male_dancer_tone5"] = "🕺🏿", ["man_dancing_tone4"] = "🕺🏾", ["male_dancer_tone4"] = "🕺🏾", ["people_with_bunny_ears_partying"] = "👯", ["dancers"] = "👯", ["women_with_bunny_ears_partying"] = "👯‍♀️", ["men_with_bunny_ears_partying"] = "👯‍♂️", ["levitate"] = "🕴️", ["man_in_business_suit_levitating"] = "🕴️", ["levitate_tone1"] = "🕴🏻", ["man_in_business_suit_levitating_tone1"] = "🕴🏻", ["man_in_business_suit_levitating_light_skin_tone"] = "🕴🏻", ["levitate_tone2"] = "🕴🏼", ["man_in_business_suit_levitating_tone2"] = "🕴🏼", ["man_in_business_suit_levitating_medium_light_skin_tone"] = "🕴🏼", ["levitate_tone3"] = "🕴🏽", ["man_in_business_suit_levitating_tone3"] = "🕴🏽", ["man_in_business_suit_levitating_medium_skin_tone"] = "🕴🏽", ["levitate_tone4"] = "🕴🏾", ["man_in_business_suit_levitating_tone4"] = "🕴🏾", ["man_in_business_suit_levitating_medium_dark_skin_tone"] = "🕴🏾", ["levitate_tone5"] = "🕴🏿", ["man_in_business_suit_levitating_tone5"] = "🕴🏿", ["man_in_business_suit_levitating_dark_skin_tone"] = "🕴🏿", ["person_in_manual_wheelchair"] = "🧑‍🦽", ["person_in_manual_wheelchair_tone1"] = "🧑🏻‍🦽", ["person_in_manual_wheelchair_light_skin_tone"] = "🧑🏻‍🦽", ["person_in_manual_wheelchair_tone2"] = "🧑🏼‍🦽", ["person_in_manual_wheelchair_medium_light_skin_tone"] = "🧑🏼‍🦽", ["person_in_manual_wheelchair_tone3"] = "🧑🏽‍🦽", ["person_in_manual_wheelchair_medium_skin_tone"] = "🧑🏽‍🦽", ["person_in_manual_wheelchair_tone4"] = "🧑🏾‍🦽", ["person_in_manual_wheelchair_medium_dark_skin_tone"] = "🧑🏾‍🦽", ["person_in_manual_wheelchair_tone5"] = "🧑🏿‍🦽", ["person_in_manual_wheelchair_dark_skin_tone"] = "🧑🏿‍🦽", ["woman_in_manual_wheelchair"] = "👩‍🦽", ["woman_in_manual_wheelchair_tone1"] = "👩🏻‍🦽", ["woman_in_manual_wheelchair_light_skin_tone"] = "👩🏻‍🦽", ["woman_in_manual_wheelchair_tone2"] = "👩🏼‍🦽", ["woman_in_manual_wheelchair_medium_light_skin_tone"] = "👩🏼‍🦽", ["woman_in_manual_wheelchair_tone3"] = "👩🏽‍🦽", ["woman_in_manual_wheelchair_medium_skin_tone"] = "👩🏽‍🦽", ["woman_in_manual_wheelchair_tone4"] = "👩🏾‍🦽", ["woman_in_manual_wheelchair_medium_dark_skin_tone"] = "👩🏾‍🦽", ["woman_in_manual_wheelchair_tone5"] = "👩🏿‍🦽", ["woman_in_manual_wheelchair_dark_skin_tone"] = "👩🏿‍🦽", ["man_in_manual_wheelchair"] = "👨‍🦽", ["man_in_manual_wheelchair_tone1"] = "👨🏻‍🦽", ["man_in_manual_wheelchair_light_skin_tone"] = "👨🏻‍🦽", ["man_in_manual_wheelchair_tone2"] = "👨🏼‍🦽", ["man_in_manual_wheelchair_medium_light_skin_tone"] = "👨🏼‍🦽", ["man_in_manual_wheelchair_tone3"] = "👨🏽‍🦽", ["man_in_manual_wheelchair_medium_skin_tone"] = "👨🏽‍🦽", ["man_in_manual_wheelchair_tone4"] = "👨🏾‍🦽", ["man_in_manual_wheelchair_medium_dark_skin_tone"] = "👨🏾‍🦽", ["man_in_manual_wheelchair_tone5"] = "👨🏿‍🦽", ["man_in_manual_wheelchair_dark_skin_tone"] = "👨🏿‍🦽", ["person_in_motorized_wheelchair"] = "🧑‍🦼", ["person_in_motorized_wheelchair_tone1"] = "🧑🏻‍🦼", ["person_in_motorized_wheelchair_light_skin_tone"] = "🧑🏻‍🦼", ["person_in_motorized_wheelchair_tone2"] = "🧑🏼‍🦼", ["person_in_motorized_wheelchair_medium_light_skin_tone"] = "🧑🏼‍🦼", ["person_in_motorized_wheelchair_tone3"] = "🧑🏽‍🦼", ["person_in_motorized_wheelchair_medium_skin_tone"] = "🧑🏽‍🦼", ["person_in_motorized_wheelchair_tone4"] = "🧑🏾‍🦼", ["person_in_motorized_wheelchair_medium_dark_skin_tone"] = "🧑🏾‍🦼", ["person_in_motorized_wheelchair_tone5"] = "🧑🏿‍🦼", ["person_in_motorized_wheelchair_dark_skin_tone"] = "🧑🏿‍🦼", ["woman_in_motorized_wheelchair"] = "👩‍🦼", ["woman_in_motorized_wheelchair_tone1"] = "👩🏻‍🦼", ["woman_in_motorized_wheelchair_light_skin_tone"] = "👩🏻‍🦼", ["woman_in_motorized_wheelchair_tone2"] = "👩🏼‍🦼", ["woman_in_motorized_wheelchair_medium_light_skin_tone"] = "👩🏼‍🦼", ["woman_in_motorized_wheelchair_tone3"] = "👩🏽‍🦼", ["woman_in_motorized_wheelchair_medium_skin_tone"] = "👩🏽‍🦼", ["woman_in_motorized_wheelchair_tone4"] = "👩🏾‍🦼", ["woman_in_motorized_wheelchair_medium_dark_skin_tone"] = "👩🏾‍🦼", ["woman_in_motorized_wheelchair_tone5"] = "👩🏿‍🦼", ["woman_in_motorized_wheelchair_dark_skin_tone"] = "👩🏿‍🦼", ["man_in_motorized_wheelchair"] = "👨‍🦼", ["man_in_motorized_wheelchair_tone1"] = "👨🏻‍🦼", ["man_in_motorized_wheelchair_light_skin_tone"] = "👨🏻‍🦼", ["man_in_motorized_wheelchair_tone2"] = "👨🏼‍🦼", ["man_in_motorized_wheelchair_medium_light_skin_tone"] = "👨🏼‍🦼", ["man_in_motorized_wheelchair_tone3"] = "👨🏽‍🦼", ["man_in_motorized_wheelchair_medium_skin_tone"] = "👨🏽‍🦼", ["man_in_motorized_wheelchair_tone4"] = "👨🏾‍🦼", ["man_in_motorized_wheelchair_medium_dark_skin_tone"] = "👨🏾‍🦼", ["man_in_motorized_wheelchair_tone5"] = "👨🏿‍🦼", ["man_in_motorized_wheelchair_dark_skin_tone"] = "👨🏿‍🦼", ["person_walking"] = "🚶", ["walking"] = "🚶", ["person_walking_tone1"] = "🚶🏻", ["walking_tone1"] = "🚶🏻", ["person_walking_tone2"] = "🚶🏼", ["walking_tone2"] = "🚶🏼", ["person_walking_tone3"] = "🚶🏽", ["walking_tone3"] = "🚶🏽", ["person_walking_tone4"] = "🚶🏾", ["walking_tone4"] = "🚶🏾", ["person_walking_tone5"] = "🚶🏿", ["walking_tone5"] = "🚶🏿", ["woman_walking"] = "🚶‍♀️", ["woman_walking_tone1"] = "🚶🏻‍♀️", ["woman_walking_light_skin_tone"] = "🚶🏻‍♀️", ["woman_walking_tone2"] = "🚶🏼‍♀️", ["woman_walking_medium_light_skin_tone"] = "🚶🏼‍♀️", ["woman_walking_tone3"] = "🚶🏽‍♀️", ["woman_walking_medium_skin_tone"] = "🚶🏽‍♀️", ["woman_walking_tone4"] = "🚶🏾‍♀️", ["woman_walking_medium_dark_skin_tone"] = "🚶🏾‍♀️", ["woman_walking_tone5"] = "🚶🏿‍♀️", ["woman_walking_dark_skin_tone"] = "🚶🏿‍♀️", ["man_walking"] = "🚶‍♂️", ["man_walking_tone1"] = "🚶🏻‍♂️", ["man_walking_light_skin_tone"] = "🚶🏻‍♂️", ["man_walking_tone2"] = "🚶🏼‍♂️", ["man_walking_medium_light_skin_tone"] = "🚶🏼‍♂️", ["man_walking_tone3"] = "🚶🏽‍♂️", ["man_walking_medium_skin_tone"] = "🚶🏽‍♂️", ["man_walking_tone4"] = "🚶🏾‍♂️", ["man_walking_medium_dark_skin_tone"] = "🚶🏾‍♂️", ["man_walking_tone5"] = "🚶🏿‍♂️", ["man_walking_dark_skin_tone"] = "🚶🏿‍♂️", ["person_with_probing_cane"] = "🧑‍🦯", ["person_with_probing_cane_tone1"] = "🧑🏻‍🦯", ["person_with_probing_cane_light_skin_tone"] = "🧑🏻‍🦯", ["person_with_probing_cane_tone2"] = "🧑🏼‍🦯", ["person_with_probing_cane_medium_light_skin_tone"] = "🧑🏼‍🦯", ["person_with_probing_cane_tone3"] = "🧑🏽‍🦯", ["person_with_probing_cane_medium_skin_tone"] = "🧑🏽‍🦯", ["person_with_probing_cane_tone4"] = "🧑🏾‍🦯", ["person_with_probing_cane_medium_dark_skin_tone"] = "🧑🏾‍🦯", ["person_with_probing_cane_tone5"] = "🧑🏿‍🦯", ["person_with_probing_cane_dark_skin_tone"] = "🧑🏿‍🦯", ["woman_with_probing_cane"] = "👩‍🦯", ["woman_with_probing_cane_tone1"] = "👩🏻‍🦯", ["woman_with_probing_cane_light_skin_tone"] = "👩🏻‍🦯", ["woman_with_probing_cane_tone2"] = "👩🏼‍🦯", ["woman_with_probing_cane_medium_light_skin_tone"] = "👩🏼‍🦯", ["woman_with_probing_cane_tone3"] = "👩🏽‍🦯", ["woman_with_probing_cane_medium_skin_tone"] = "👩🏽‍🦯", ["woman_with_probing_cane_tone4"] = "👩🏾‍🦯", ["woman_with_probing_cane_medium_dark_skin_tone"] = "👩🏾‍🦯", ["woman_with_probing_cane_tone5"] = "👩🏿‍🦯", ["woman_with_probing_cane_dark_skin_tone"] = "👩🏿‍🦯", ["man_with_probing_cane"] = "👨‍🦯", ["man_with_probing_cane_tone1"] = "👨🏻‍🦯", ["man_with_probing_cane_light_skin_tone"] = "👨🏻‍🦯", ["man_with_probing_cane_tone3"] = "👨🏽‍🦯", ["man_with_probing_cane_medium_skin_tone"] = "👨🏽‍🦯", ["man_with_probing_cane_tone2"] = "👨🏼‍🦯", ["man_with_probing_cane_medium_light_skin_tone"] = "👨🏼‍🦯", ["man_with_probing_cane_tone4"] = "👨🏾‍🦯", ["man_with_probing_cane_medium_dark_skin_tone"] = "👨🏾‍🦯", ["man_with_probing_cane_tone5"] = "👨🏿‍🦯", ["man_with_probing_cane_dark_skin_tone"] = "👨🏿‍🦯", ["person_kneeling"] = "🧎", ["person_kneeling_tone1"] = "🧎🏻", ["person_kneeling_light_skin_tone"] = "🧎🏻", ["person_kneeling_tone2"] = "🧎🏼", ["person_kneeling_medium_light_skin_tone"] = "🧎🏼", ["person_kneeling_tone3"] = "🧎🏽", ["person_kneeling_medium_skin_tone"] = "🧎🏽", ["person_kneeling_tone4"] = "🧎🏾", ["person_kneeling_medium_dark_skin_tone"] = "🧎🏾", ["person_kneeling_tone5"] = "🧎🏿", ["person_kneeling_dark_skin_tone"] = "🧎🏿", ["woman_kneeling"] = "🧎‍♀️", ["woman_kneeling_tone1"] = "🧎🏻‍♀️", ["woman_kneeling_light_skin_tone"] = "🧎🏻‍♀️", ["woman_kneeling_tone2"] = "🧎🏼‍♀️", ["woman_kneeling_medium_light_skin_tone"] = "🧎🏼‍♀️", ["woman_kneeling_tone3"] = "🧎🏽‍♀️", ["woman_kneeling_medium_skin_tone"] = "🧎🏽‍♀️", ["woman_kneeling_tone4"] = "🧎🏾‍♀️", ["woman_kneeling_medium_dark_skin_tone"] = "🧎🏾‍♀️", ["woman_kneeling_tone5"] = "🧎🏿‍♀️", ["woman_kneeling_dark_skin_tone"] = "🧎🏿‍♀️", ["man_kneeling"] = "🧎‍♂️", ["man_kneeling_tone1"] = "🧎🏻‍♂️", ["man_kneeling_light_skin_tone"] = "🧎🏻‍♂️", ["man_kneeling_tone2"] = "🧎🏼‍♂️", ["man_kneeling_medium_light_skin_tone"] = "🧎🏼‍♂️", ["man_kneeling_tone3"] = "🧎🏽‍♂️", ["man_kneeling_medium_skin_tone"] = "🧎🏽‍♂️", ["man_kneeling_tone4"] = "🧎🏾‍♂️", ["man_kneeling_medium_dark_skin_tone"] = "🧎🏾‍♂️", ["man_kneeling_tone5"] = "🧎🏿‍♂️", ["man_kneeling_dark_skin_tone"] = "🧎🏿‍♂️", ["person_running"] = "🏃", ["runner"] = "🏃", ["person_running_tone1"] = "🏃🏻", ["runner_tone1"] = "🏃🏻", ["person_running_tone2"] = "🏃🏼", ["runner_tone2"] = "🏃🏼", ["person_running_tone3"] = "🏃🏽", ["runner_tone3"] = "🏃🏽", ["person_running_tone4"] = "🏃🏾", ["runner_tone4"] = "🏃🏾", ["person_running_tone5"] = "🏃🏿", ["runner_tone5"] = "🏃🏿", ["woman_running"] = "🏃‍♀️", ["woman_running_tone1"] = "🏃🏻‍♀️", ["woman_running_light_skin_tone"] = "🏃🏻‍♀️", ["woman_running_tone2"] = "🏃🏼‍♀️", ["woman_running_medium_light_skin_tone"] = "🏃🏼‍♀️", ["woman_running_tone3"] = "🏃🏽‍♀️", ["woman_running_medium_skin_tone"] = "🏃🏽‍♀️", ["woman_running_tone4"] = "🏃🏾‍♀️", ["woman_running_medium_dark_skin_tone"] = "🏃🏾‍♀️", ["woman_running_tone5"] = "🏃🏿‍♀️", ["woman_running_dark_skin_tone"] = "🏃🏿‍♀️", ["man_running"] = "🏃‍♂️", ["man_running_tone1"] = "🏃🏻‍♂️", ["man_running_light_skin_tone"] = "🏃🏻‍♂️", ["man_running_tone2"] = "🏃🏼‍♂️", ["man_running_medium_light_skin_tone"] = "🏃🏼‍♂️", ["man_running_tone3"] = "🏃🏽‍♂️", ["man_running_medium_skin_tone"] = "🏃🏽‍♂️", ["man_running_tone4"] = "🏃🏾‍♂️", ["man_running_medium_dark_skin_tone"] = "🏃🏾‍♂️", ["man_running_tone5"] = "🏃🏿‍♂️", ["man_running_dark_skin_tone"] = "🏃🏿‍♂️", ["person_standing"] = "🧍", ["person_standing_tone1"] = "🧍🏻", ["person_standing_light_skin_tone"] = "🧍🏻", ["person_standing_tone2"] = "🧍🏼", ["person_standing_medium_light_skin_tone"] = "🧍🏼", ["person_standing_tone3"] = "🧍🏽", ["person_standing_medium_skin_tone"] = "🧍🏽", ["person_standing_tone4"] = "🧍🏾", ["person_standing_medium_dark_skin_tone"] = "🧍🏾", ["person_standing_tone5"] = "🧍🏿", ["person_standing_dark_skin_tone"] = "🧍🏿", ["woman_standing"] = "🧍‍♀️", ["woman_standing_tone1"] = "🧍🏻‍♀️", ["woman_standing_light_skin_tone"] = "🧍🏻‍♀️", ["woman_standing_tone2"] = "🧍🏼‍♀️", ["woman_standing_medium_light_skin_tone"] = "🧍🏼‍♀️", ["woman_standing_tone3"] = "🧍🏽‍♀️", ["woman_standing_medium_skin_tone"] = "🧍🏽‍♀️", ["woman_standing_tone4"] = "🧍🏾‍♀️", ["woman_standing_medium_dark_skin_tone"] = "🧍🏾‍♀️", ["woman_standing_tone5"] = "🧍🏿‍♀️", ["woman_standing_dark_skin_tone"] = "🧍🏿‍♀️", ["man_standing"] = "🧍‍♂️", ["man_standing_tone1"] = "🧍🏻‍♂️", ["man_standing_light_skin_tone"] = "🧍🏻‍♂️", ["man_standing_tone2"] = "🧍🏼‍♂️", ["man_standing_medium_light_skin_tone"] = "🧍🏼‍♂️", ["man_standing_tone3"] = "🧍🏽‍♂️", ["man_standing_medium_skin_tone"] = "🧍🏽‍♂️", ["man_standing_tone4"] = "🧍🏾‍♂️", ["man_standing_medium_dark_skin_tone"] = "🧍🏾‍♂️", ["man_standing_tone5"] = "🧍🏿‍♂️", ["man_standing_dark_skin_tone"] = "🧍🏿‍♂️", ["people_holding_hands"] = "🧑‍🤝‍🧑", ["people_holding_hands_tone1"] = "🧑🏻‍🤝‍🧑🏻", ["people_holding_hands_light_skin_tone"] = "🧑🏻‍🤝‍🧑🏻", ["people_holding_hands_tone1_tone2"] = "🧑🏻‍🤝‍🧑🏼", ["people_holding_hands_light_skin_tone_medium_light_skin_tone"] = "🧑🏻‍🤝‍🧑🏼", ["people_holding_hands_tone1_tone3"] = "🧑🏻‍🤝‍🧑🏽", ["people_holding_hands_light_skin_tone_medium_skin_tone"] = "🧑🏻‍🤝‍🧑🏽", ["people_holding_hands_tone1_tone4"] = "🧑🏻‍🤝‍🧑🏾", ["people_holding_hands_light_skin_tone_medium_dark_skin_tone"] = "🧑🏻‍🤝‍🧑🏾", ["people_holding_hands_tone1_tone5"] = "🧑🏻‍🤝‍🧑🏿", ["people_holding_hands_light_skin_tone_dark_skin_tone"] = "🧑🏻‍🤝‍🧑🏿", ["people_holding_hands_tone2_tone1"] = "🧑🏼‍🤝‍🧑🏻", ["people_holding_hands_medium_light_skin_tone_light_skin_tone"] = "🧑🏼‍🤝‍🧑🏻", ["people_holding_hands_tone2"] = "🧑🏼‍🤝‍🧑🏼", ["people_holding_hands_medium_light_skin_tone"] = "🧑🏼‍🤝‍🧑🏼", ["people_holding_hands_tone2_tone3"] = "🧑🏼‍🤝‍🧑🏽", ["people_holding_hands_medium_light_skin_tone_medium_skin_tone"] = "🧑🏼‍🤝‍🧑🏽", ["people_holding_hands_tone2_tone4"] = "🧑🏼‍🤝‍🧑🏾", ["people_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"] = "🧑🏼‍🤝‍🧑🏾", ["people_holding_hands_tone2_tone5"] = "🧑🏼‍🤝‍🧑🏿", ["people_holding_hands_medium_light_skin_tone_dark_skin_tone"] = "🧑🏼‍🤝‍🧑🏿", ["people_holding_hands_tone3_tone1"] = "🧑🏽‍🤝‍🧑🏻", ["people_holding_hands_medium_skin_tone_light_skin_tone"] = "🧑🏽‍🤝‍🧑🏻", ["people_holding_hands_tone3_tone2"] = "🧑🏽‍🤝‍🧑🏼", ["people_holding_hands_medium_skin_tone_medium_light_skin_tone"] = "🧑🏽‍🤝‍🧑🏼", ["people_holding_hands_tone3"] = "🧑🏽‍🤝‍🧑🏽", ["people_holding_hands_medium_skin_tone"] = "🧑🏽‍🤝‍🧑🏽", ["people_holding_hands_tone3_tone4"] = "🧑🏽‍🤝‍🧑🏾", ["people_holding_hands_medium_skin_tone_medium_dark_skin_tone"] = "🧑🏽‍🤝‍🧑🏾", ["people_holding_hands_tone3_tone5"] = "🧑🏽‍🤝‍🧑🏿", ["people_holding_hands_medium_skin_tone_dark_skin_tone"] = "🧑🏽‍🤝‍🧑🏿", ["people_holding_hands_tone4_tone1"] = "🧑🏾‍🤝‍🧑🏻", ["people_holding_hands_medium_dark_skin_tone_light_skin_tone"] = "🧑🏾‍🤝‍🧑🏻", ["people_holding_hands_tone4_tone2"] = "🧑🏾‍🤝‍🧑🏼", ["people_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"] = "🧑🏾‍🤝‍🧑🏼", ["people_holding_hands_tone4_tone3"] = "🧑🏾‍🤝‍🧑🏽", ["people_holding_hands_medium_dark_skin_tone_medium_skin_tone"] = "🧑🏾‍🤝‍🧑🏽", ["people_holding_hands_tone4"] = "🧑🏾‍🤝‍🧑🏾", ["people_holding_hands_medium_dark_skin_tone"] = "🧑🏾‍🤝‍🧑🏾", ["people_holding_hands_tone4_tone5"] = "🧑🏾‍🤝‍🧑🏿", ["people_holding_hands_medium_dark_skin_tone_dark_skin_tone"] = "🧑🏾‍🤝‍🧑🏿", ["people_holding_hands_tone5_tone1"] = "🧑🏿‍🤝‍🧑🏻", ["people_holding_hands_dark_skin_tone_light_skin_tone"] = "🧑🏿‍🤝‍🧑🏻", ["people_holding_hands_tone5_tone2"] = "🧑🏿‍🤝‍🧑🏼", ["people_holding_hands_dark_skin_tone_medium_light_skin_tone"] = "🧑🏿‍🤝‍🧑🏼", ["people_holding_hands_tone5_tone3"] = "🧑🏿‍🤝‍🧑🏽", ["people_holding_hands_dark_skin_tone_medium_skin_tone"] = "🧑🏿‍🤝‍🧑🏽", ["people_holding_hands_tone5_tone4"] = "🧑🏿‍🤝‍🧑🏾", ["people_holding_hands_dark_skin_tone_medium_dark_skin_tone"] = "🧑🏿‍🤝‍🧑🏾", ["people_holding_hands_tone5"] = "🧑🏿‍🤝‍🧑🏿", ["people_holding_hands_dark_skin_tone"] = "🧑🏿‍🤝‍🧑🏿", ["couple"] = "👫", ["woman_and_man_holding_hands_tone1"] = "👫🏻", ["woman_and_man_holding_hands_light_skin_tone"] = "👫🏻", ["woman_and_man_holding_hands_tone1_tone2"] = "👩🏻‍🤝‍👨🏼", ["woman_and_man_holding_hands_light_skin_tone_medium_light_skin_tone"] = "👩🏻‍🤝‍👨🏼", ["woman_and_man_holding_hands_tone1_tone3"] = "👩🏻‍🤝‍👨🏽", ["woman_and_man_holding_hands_light_skin_tone_medium_skin_tone"] = "👩🏻‍🤝‍👨🏽", ["woman_and_man_holding_hands_tone1_tone4"] = "👩🏻‍🤝‍👨🏾", ["woman_and_man_holding_hands_light_skin_tone_medium_dark_skin_tone"] = "👩🏻‍🤝‍👨🏾", ["woman_and_man_holding_hands_tone1_tone5"] = "👩🏻‍🤝‍👨🏿", ["woman_and_man_holding_hands_light_skin_tone_dark_skin_tone"] = "👩🏻‍🤝‍👨🏿", ["woman_and_man_holding_hands_tone2_tone1"] = "👩🏼‍🤝‍👨🏻", ["woman_and_man_holding_hands_medium_light_skin_tone_light_skin_tone"] = "👩🏼‍🤝‍👨🏻", ["woman_and_man_holding_hands_tone2"] = "👫🏼", ["woman_and_man_holding_hands_medium_light_skin_tone"] = "👫🏼", ["woman_and_man_holding_hands_tone2_tone3"] = "👩🏼‍🤝‍👨🏽", ["woman_and_man_holding_hands_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍🤝‍👨🏽", ["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_tone2_tone5"] = "👩🏼‍🤝‍👨🏿", ["woman_and_man_holding_hands_medium_light_skin_tone_dark_skin_tone"] = "👩🏼‍🤝‍👨🏿", ["woman_and_man_holding_hands_tone3_tone1"] = "👩🏽‍🤝‍👨🏻", ["woman_and_man_holding_hands_medium_skin_tone_light_skin_tone"] = "👩🏽‍🤝‍👨🏻", ["woman_and_man_holding_hands_tone3_tone2"] = "👩🏽‍🤝‍👨🏼", ["woman_and_man_holding_hands_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍🤝‍👨🏼", ["woman_and_man_holding_hands_tone3"] = "👫🏽", ["woman_and_man_holding_hands_medium_skin_tone"] = "👫🏽", ["woman_and_man_holding_hands_tone3_tone4"] = "👩🏽‍🤝‍👨🏾", ["woman_and_man_holding_hands_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽‍🤝‍👨🏾", ["woman_and_man_holding_hands_tone3_tone5"] = "👩🏽‍🤝‍👨🏿", ["woman_and_man_holding_hands_medium_skin_tone_dark_skin_tone"] = "👩🏽‍🤝‍👨🏿", ["woman_and_man_holding_hands_tone4_tone1"] = "👩🏾‍🤝‍👨🏻", ["woman_and_man_holding_hands_medium_dark_skin_tone_light_skin_tone"] = "👩🏾‍🤝‍👨🏻", ["woman_and_man_holding_hands_tone4_tone2"] = "👩🏾‍🤝‍👨🏼", ["woman_and_man_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"] = "👩🏾‍🤝‍👨🏼", ["woman_and_man_holding_hands_tone4_tone3"] = "👩🏾‍🤝‍👨🏽", ["woman_and_man_holding_hands_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾‍🤝‍👨🏽", ["woman_and_man_holding_hands_tone4"] = "👫🏾", ["woman_and_man_holding_hands_medium_dark_skin_tone"] = "👫🏾", ["woman_and_man_holding_hands_tone4_tone5"] = "👩🏾‍🤝‍👨🏿", ["woman_and_man_holding_hands_medium_dark_skin_tone_dark_skin_tone"] = "👩🏾‍🤝‍👨🏿", ["woman_and_man_holding_hands_tone5_tone1"] = "👩🏿‍🤝‍👨🏻", ["woman_and_man_holding_hands_dark_skin_tone_light_skin_tone"] = "👩🏿‍🤝‍👨🏻", ["woman_and_man_holding_hands_tone5_tone2"] = "👩🏿‍🤝‍👨🏼", ["woman_and_man_holding_hands_dark_skin_tone_medium_light_skin_tone"] = "👩🏿‍🤝‍👨🏼", ["woman_and_man_holding_hands_tone5_tone3"] = "👩🏿‍🤝‍👨🏽", ["woman_and_man_holding_hands_dark_skin_tone_medium_skin_tone"] = "👩🏿‍🤝‍👨🏽", ["woman_and_man_holding_hands_tone5_tone4"] = "👩🏿‍🤝‍👨🏾", ["woman_and_man_holding_hands_dark_skin_tone_medium_dark_skin_tone"] = "👩🏿‍🤝‍👨🏾", ["woman_and_man_holding_hands_tone5"] = "👫🏿", ["woman_and_man_holding_hands_dark_skin_tone"] = "👫🏿", ["two_women_holding_hands"] = "👭", ["women_holding_hands_tone1"] = "👭🏻", ["women_holding_hands_light_skin_tone"] = "👭🏻", ["women_holding_hands_tone1_tone2"] = "👩🏻‍🤝‍👩🏼", ["women_holding_hands_light_skin_tone_medium_light_skin_tone"] = "👩🏻‍🤝‍👩🏼", ["women_holding_hands_tone1_tone3"] = "👩🏻‍🤝‍👩🏽", ["women_holding_hands_light_skin_tone_medium_skin_tone"] = "👩🏻‍🤝‍👩🏽", ["women_holding_hands_tone1_tone4"] = "👩🏻‍🤝‍👩🏾", ["women_holding_hands_light_skin_tone_medium_dark_skin_tone"] = "👩🏻‍🤝‍👩🏾", ["women_holding_hands_tone1_tone5"] = "👩🏻‍🤝‍👩🏿", ["women_holding_hands_light_skin_tone_dark_skin_tone"] = "👩🏻‍🤝‍👩🏿", ["women_holding_hands_tone2_tone1"] = "👩🏼‍🤝‍👩🏻", ["women_holding_hands_medium_light_skin_tone_light_skin_tone"] = "👩🏼‍🤝‍👩🏻", ["women_holding_hands_tone2"] = "👭🏼", ["women_holding_hands_medium_light_skin_tone"] = "👭🏼", ["women_holding_hands_tone2_tone3"] = "👩🏼‍🤝‍👩🏽", ["women_holding_hands_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍🤝‍👩🏽", ["women_holding_hands_tone2_tone4"] = "👩🏼‍🤝‍👩🏾", ["women_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"] = "👩🏼‍🤝‍👩🏾", ["women_holding_hands_tone2_tone5"] = "👩🏼‍🤝‍👩🏿", ["women_holding_hands_medium_light_skin_tone_dark_skin_tone"] = "👩🏼‍🤝‍👩🏿", ["women_holding_hands_tone3_tone1"] = "👩🏽‍🤝‍👩🏻", ["women_holding_hands_medium_skin_tone_light_skin_tone"] = "👩🏽‍🤝‍👩🏻", ["women_holding_hands_tone3_tone2"] = "👩🏽‍🤝‍👩🏼", ["women_holding_hands_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍🤝‍👩🏼", ["women_holding_hands_tone3"] = "👭🏽", ["women_holding_hands_medium_skin_tone"] = "👭🏽", ["women_holding_hands_tone3_tone4"] = "👩🏽‍🤝‍👩🏾", ["women_holding_hands_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽‍🤝‍👩🏾", ["women_holding_hands_tone3_tone5"] = "👩🏽‍🤝‍👩🏿", ["women_holding_hands_medium_skin_tone_dark_skin_tone"] = "👩🏽‍🤝‍👩🏿", ["women_holding_hands_tone4_tone1"] = "👩🏾‍🤝‍👩🏻", ["women_holding_hands_medium_dark_skin_tone_light_skin_tone"] = "👩🏾‍🤝‍👩🏻", ["women_holding_hands_tone4_tone2"] = "👩🏾‍🤝‍👩🏼", ["women_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"] = "👩🏾‍🤝‍👩🏼", ["women_holding_hands_tone4_tone3"] = "👩🏾‍🤝‍👩🏽", ["women_holding_hands_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾‍🤝‍👩🏽", ["women_holding_hands_tone4"] = "👭🏾", ["women_holding_hands_medium_dark_skin_tone"] = "👭🏾", ["women_holding_hands_tone4_tone5"] = "👩🏾‍🤝‍👩🏿", ["women_holding_hands_medium_dark_skin_tone_dark_skin_tone"] = "👩🏾‍🤝‍👩🏿", ["women_holding_hands_tone5_tone1"] = "👩🏿‍🤝‍👩🏻", ["women_holding_hands_dark_skin_tone_light_skin_tone"] = "👩🏿‍🤝‍👩🏻", ["women_holding_hands_tone5_tone2"] = "👩🏿‍🤝‍👩🏼", ["women_holding_hands_dark_skin_tone_medium_light_skin_tone"] = "👩🏿‍🤝‍👩🏼", ["women_holding_hands_tone5_tone3"] = "👩🏿‍🤝‍👩🏽", ["women_holding_hands_dark_skin_tone_medium_skin_tone"] = "👩🏿‍🤝‍👩🏽", ["women_holding_hands_tone5_tone4"] = "👩🏿‍🤝‍👩🏾", ["women_holding_hands_dark_skin_tone_medium_dark_skin_tone"] = "👩🏿‍🤝‍👩🏾", ["women_holding_hands_tone5"] = "👭🏿", ["women_holding_hands_dark_skin_tone"] = "👭🏿", ["two_men_holding_hands"] = "👬", ["men_holding_hands_tone1"] = "👬🏻", ["men_holding_hands_light_skin_tone"] = "👬🏻", ["men_holding_hands_tone1_tone2"] = "👨🏻‍🤝‍👨🏼", ["men_holding_hands_light_skin_tone_medium_light_skin_tone"] = "👨🏻‍🤝‍👨🏼", ["men_holding_hands_tone1_tone3"] = "👨🏻‍🤝‍👨🏽", ["men_holding_hands_light_skin_tone_medium_skin_tone"] = "👨🏻‍🤝‍👨🏽", ["men_holding_hands_tone1_tone4"] = "👨🏻‍🤝‍👨🏾", ["men_holding_hands_light_skin_tone_medium_dark_skin_tone"] = "👨🏻‍🤝‍👨🏾", ["men_holding_hands_tone1_tone5"] = "👨🏻‍🤝‍👨🏿", ["men_holding_hands_light_skin_tone_dark_skin_tone"] = "👨🏻‍🤝‍👨🏿", ["men_holding_hands_tone2_tone1"] = "👨🏼‍🤝‍👨🏻", ["men_holding_hands_medium_light_skin_tone_light_skin_tone"] = "👨🏼‍🤝‍👨🏻", ["men_holding_hands_tone2"] = "👬🏼", ["men_holding_hands_medium_light_skin_tone"] = "👬🏼", ["men_holding_hands_tone2_tone3"] = "👨🏼‍🤝‍👨🏽", ["men_holding_hands_medium_light_skin_tone_medium_skin_tone"] = "👨🏼‍🤝‍👨🏽", ["men_holding_hands_tone2_tone4"] = "👨🏼‍🤝‍👨🏾", ["men_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"] = "👨🏼‍🤝‍👨🏾", ["men_holding_hands_tone2_tone5"] = "👨🏼‍🤝‍👨🏿", ["men_holding_hands_medium_light_skin_tone_dark_skin_tone"] = "👨🏼‍🤝‍👨🏿", ["men_holding_hands_tone3_tone1"] = "👨🏽‍🤝‍👨🏻", ["men_holding_hands_medium_skin_tone_light_skin_tone"] = "👨🏽‍🤝‍👨🏻", ["men_holding_hands_tone3_tone2"] = "👨🏽‍🤝‍👨🏼", ["men_holding_hands_medium_skin_tone_medium_light_skin_tone"] = "👨🏽‍🤝‍👨🏼", ["men_holding_hands_tone3"] = "👬🏽", ["men_holding_hands_medium_skin_tone"] = "👬🏽", ["men_holding_hands_tone3_tone4"] = "👨🏽‍🤝‍👨🏾", ["men_holding_hands_medium_skin_tone_medium_dark_skin_tone"] = "👨🏽‍🤝‍👨🏾", ["men_holding_hands_tone3_tone5"] = "👨🏽‍🤝‍👨🏿", ["men_holding_hands_medium_skin_tone_dark_skin_tone"] = "👨🏽‍🤝‍👨🏿", ["men_holding_hands_tone4_tone1"] = "👨🏾‍🤝‍👨🏻", ["men_holding_hands_medium_dark_skin_tone_light_skin_tone"] = "👨🏾‍🤝‍👨🏻", ["men_holding_hands_tone4_tone2"] = "👨🏾‍🤝‍👨🏼", ["men_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"] = "👨🏾‍🤝‍👨🏼", ["men_holding_hands_tone4_tone3"] = "👨🏾‍🤝‍👨🏽", ["men_holding_hands_medium_dark_skin_tone_medium_skin_tone"] = "👨🏾‍🤝‍👨🏽", ["men_holding_hands_tone4"] = "👬🏾", ["men_holding_hands_medium_dark_skin_tone"] = "👬🏾", ["men_holding_hands_tone4_tone5"] = "👨🏾‍🤝‍👨🏿", ["men_holding_hands_medium_dark_skin_tone_dark_skin_tone"] = "👨🏾‍🤝‍👨🏿", ["men_holding_hands_tone5_tone1"] = "👨🏿‍🤝‍👨🏻", ["men_holding_hands_dark_skin_tone_light_skin_tone"] = "👨🏿‍🤝‍👨🏻", ["men_holding_hands_tone5_tone2"] = "👨🏿‍🤝‍👨🏼", ["men_holding_hands_dark_skin_tone_medium_light_skin_tone"] = "👨🏿‍🤝‍👨🏼", ["men_holding_hands_tone5_tone3"] = "👨🏿‍🤝‍👨🏽", ["men_holding_hands_dark_skin_tone_medium_skin_tone"] = "👨🏿‍🤝‍👨🏽", ["men_holding_hands_tone5_tone4"] = "👨🏿‍🤝‍👨🏾", ["men_holding_hands_dark_skin_tone_medium_dark_skin_tone"] = "👨🏿‍🤝‍👨🏾", ["men_holding_hands_tone5"] = "👬🏿", ["men_holding_hands_dark_skin_tone"] = "👬🏿", ["couple_with_heart"] = "💑", ["couple_with_heart_tone1"] = "💑🏻", ["couple_with_heart_light_skin_tone"] = "💑🏻", ["couple_with_heart_person_person_tone1_tone2"] = "🧑🏻‍❤️‍🧑🏼", ["couple_with_heart_person_person_light_skin_tone_medium_light_skin_tone"] = "🧑🏻‍❤️‍🧑🏼", ["couple_with_heart_person_person_tone1_tone3"] = "🧑🏻‍❤️‍🧑🏽", ["couple_with_heart_person_person_light_skin_tone_medium_skin_tone"] = "🧑🏻‍❤️‍🧑🏽", ["couple_with_heart_person_person_tone1_tone4"] = "🧑🏻‍❤️‍🧑🏾", ["couple_with_heart_person_person_light_skin_tone_medium_dark_skin_tone"] = "🧑🏻‍❤️‍🧑🏾", ["couple_with_heart_person_person_tone1_tone5"] = "🧑🏻‍❤️‍🧑🏿", ["couple_with_heart_person_person_light_skin_tone_dark_skin_tone"] = "🧑🏻‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone2_tone1"] = "🧑🏼‍❤️‍🧑🏻", ["couple_with_heart_person_person_medium_light_skin_tone_light_skin_tone"] = "🧑🏼‍❤️‍🧑🏻", ["couple_with_heart_tone2"] = "💑🏼", ["couple_with_heart_medium_light_skin_tone"] = "💑🏼", ["couple_with_heart_person_person_tone2_tone3"] = "🧑🏼‍❤️‍🧑🏽", ["couple_with_heart_person_person_medium_light_skin_tone_medium_skin_tone"] = "🧑🏼‍❤️‍🧑🏽", ["couple_with_heart_person_person_tone2_tone4"] = "🧑🏼‍❤️‍🧑🏾", ["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_medium_light_skin_tone_dark_skin_tone"] = "🧑🏼‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone3_tone1"] = "🧑🏽‍❤️‍🧑🏻", ["couple_with_heart_person_person_medium_skin_tone_light_skin_tone"] = "🧑🏽‍❤️‍🧑🏻", ["couple_with_heart_person_person_tone3_tone2"] = "🧑🏽‍❤️‍🧑🏼", ["couple_with_heart_person_person_medium_skin_tone_medium_light_skin_tone"] = "🧑🏽‍❤️‍🧑🏼", ["couple_with_heart_tone3"] = "💑🏽", ["couple_with_heart_medium_skin_tone"] = "💑🏽", ["couple_with_heart_person_person_tone3_tone4"] = "🧑🏽‍❤️‍🧑🏾", ["couple_with_heart_person_person_medium_skin_tone_medium_dark_skin_tone"] = "🧑🏽‍❤️‍🧑🏾", ["couple_with_heart_person_person_tone3_tone5"] = "🧑🏽‍❤️‍🧑🏿", ["couple_with_heart_person_person_medium_skin_tone_dark_skin_tone"] = "🧑🏽‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone4_tone1"] = "🧑🏾‍❤️‍🧑🏻", ["couple_with_heart_person_person_medium_dark_skin_tone_light_skin_tone"] = "🧑🏾‍❤️‍🧑🏻", ["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_tone4_tone3"] = "🧑🏾‍❤️‍🧑🏽", ["couple_with_heart_person_person_medium_dark_skin_tone_medium_skin_tone"] = "🧑🏾‍❤️‍🧑🏽", ["couple_with_heart_tone4"] = "💑🏾", ["couple_with_heart_medium_dark_skin_tone"] = "💑🏾", ["couple_with_heart_person_person_tone4_tone5"] = "🧑🏾‍❤️‍🧑🏿", ["couple_with_heart_person_person_medium_dark_skin_tone_dark_skin_tone"] = "🧑🏾‍❤️‍🧑🏿", ["couple_with_heart_person_person_tone5_tone1"] = "🧑🏿‍❤️‍🧑🏻", ["couple_with_heart_person_person_dark_skin_tone_light_skin_tone"] = "🧑🏿‍❤️‍🧑🏻", ["couple_with_heart_person_person_tone5_tone2"] = "🧑🏿‍❤️‍🧑🏼", ["couple_with_heart_person_person_dark_skin_tone_medium_light_skin_tone"] = "🧑🏿‍❤️‍🧑🏼", ["couple_with_heart_person_person_tone5_tone3"] = "🧑🏿‍❤️‍🧑🏽", ["couple_with_heart_person_person_dark_skin_tone_medium_skin_tone"] = "🧑🏿‍❤️‍🧑🏽", ["couple_with_heart_person_person_tone5_tone4"] = "🧑🏿‍❤️‍🧑🏾", ["couple_with_heart_person_person_dark_skin_tone_medium_dark_skin_tone"] = "🧑🏿‍❤️‍🧑🏾", ["couple_with_heart_tone5"] = "💑🏿", ["couple_with_heart_dark_skin_tone"] = "💑🏿", ["couple_with_heart_woman_man"] = "👩‍❤️‍👨", ["couple_with_heart_woman_man_tone1"] = "👩🏻‍❤️‍👨🏻", ["couple_with_heart_woman_man_light_skin_tone"] = "👩🏻‍❤️‍👨🏻", ["couple_with_heart_woman_man_tone1_tone2"] = "👩🏻‍❤️‍👨🏼", ["couple_with_heart_woman_man_light_skin_tone_medium_light_skin_tone"] = "👩🏻‍❤️‍👨🏼", ["couple_with_heart_woman_man_tone1_tone3"] = "👩🏻‍❤️‍👨🏽", ["couple_with_heart_woman_man_light_skin_tone_medium_skin_tone"] = "👩🏻‍❤️‍👨🏽", ["couple_with_heart_woman_man_tone1_tone4"] = "👩🏻‍❤️‍👨🏾", ["couple_with_heart_woman_man_light_skin_tone_medium_dark_skin_tone"] = "👩🏻‍❤️‍👨🏾", ["couple_with_heart_woman_man_tone1_tone5"] = "👩🏻‍❤️‍👨🏿", ["couple_with_heart_woman_man_light_skin_tone_dark_skin_tone"] = "👩🏻‍❤️‍👨🏿", ["couple_with_heart_woman_man_tone2_tone1"] = "👩🏼‍❤️‍👨🏻", ["couple_with_heart_woman_man_medium_light_skin_tone_light_skin_tone"] = "👩🏼‍❤️‍👨🏻", ["couple_with_heart_woman_man_tone2"] = "👩🏼‍❤️‍👨🏼", ["couple_with_heart_woman_man_medium_light_skin_tone"] = "👩🏼‍❤️‍👨🏼", ["couple_with_heart_woman_man_tone2_tone3"] = "👩🏼‍❤️‍👨🏽", ["couple_with_heart_woman_man_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍❤️‍👨🏽", ["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_tone2_tone5"] = "👩🏼‍❤️‍👨🏿", ["couple_with_heart_woman_man_medium_light_skin_tone_dark_skin_tone"] = "👩🏼‍❤️‍👨🏿", ["couple_with_heart_woman_man_tone3_tone1"] = "👩🏽‍❤️‍👨🏻", ["couple_with_heart_woman_man_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍👨🏻", ["couple_with_heart_woman_man_tone3_tone2"] = "👩🏽‍❤️‍👨🏼", ["couple_with_heart_woman_man_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍❤️‍👨🏼", ["couple_with_heart_woman_man_tone3"] = "👩🏽‍❤️‍👨🏽", ["couple_with_heart_woman_man_medium_skin_tone"] = "👩🏽‍❤️‍👨🏽", ["couple_with_heart_woman_man_tone3_tone4"] = "👩🏽‍❤️‍👨🏾", ["couple_with_heart_woman_man_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽‍❤️‍👨🏾", ["couple_with_heart_woman_man_tone3_tone5"] = "👩🏽‍❤️‍👨🏿", ["couple_with_heart_woman_man_medium_skin_tone_dark_skin_tone"] = "👩🏽‍❤️‍👨🏿", ["couple_with_heart_woman_man_tone4_tone1"] = "👩🏾‍❤️‍👨🏻", ["couple_with_heart_woman_man_medium_dark_skin_tone_light_skin_tone"] = "👩🏾‍❤️‍👨🏻", ["couple_with_heart_woman_man_tone4_tone2"] = "👩🏾‍❤️‍👨🏼", ["couple_with_heart_woman_man_medium_dark_skin_tone_medium_light_skin_tone"] = "👩🏾‍❤️‍👨🏼", ["couple_with_heart_woman_man_tone4_tone3"] = "👩🏾‍❤️‍👨🏽", ["couple_with_heart_woman_man_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾‍❤️‍👨🏽", ["couple_with_heart_woman_man_tone4"] = "👩🏾‍❤️‍👨🏾", ["couple_with_heart_woman_man_medium_dark_skin_tone"] = "👩🏾‍❤️‍👨🏾", ["couple_with_heart_woman_man_tone4_tone5"] = "👩🏾‍❤️‍👨🏿", ["couple_with_heart_woman_man_medium_dark_skin_tone_dark_skin_tone"] = "👩🏾‍❤️‍👨🏿", ["couple_with_heart_woman_man_tone5_tone1"] = "👩🏿‍❤️‍👨🏻", ["couple_with_heart_woman_man_dark_skin_tone_light_skin_tone"] = "👩🏿‍❤️‍👨🏻", ["couple_with_heart_woman_man_tone5_tone2"] = "👩🏿‍❤️‍👨🏼", ["couple_with_heart_woman_man_dark_skin_tone_medium_light_skin_tone"] = "👩🏿‍❤️‍👨🏼", ["couple_with_heart_woman_man_tone5_tone3"] = "👩🏿‍❤️‍👨🏽", ["couple_with_heart_woman_man_dark_skin_tone_medium_skin_tone"] = "👩🏿‍❤️‍👨🏽", ["couple_with_heart_woman_man_tone5_tone4"] = "👩🏿‍❤️‍👨🏾", ["couple_with_heart_woman_man_dark_skin_tone_medium_dark_skin_tone"] = "👩🏿‍❤️‍👨🏾", ["couple_with_heart_woman_man_tone5"] = "👩🏿‍❤️‍👨🏿", ["couple_with_heart_woman_man_dark_skin_tone"] = "👩🏿‍❤️‍👨🏿", ["couple_ww"] = "👩‍❤️‍👩", ["couple_with_heart_ww"] = "👩‍❤️‍👩", ["couple_with_heart_woman_woman_tone1"] = "👩🏻‍❤️‍👩🏻", ["couple_with_heart_woman_woman_light_skin_tone"] = "👩🏻‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone1_tone2"] = "👩🏻‍❤️‍👩🏼", ["couple_with_heart_woman_woman_light_skin_tone_medium_light_skin_tone"] = "👩🏻‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone1_tone3"] = "👩🏻‍❤️‍👩🏽", ["couple_with_heart_woman_woman_light_skin_tone_medium_skin_tone"] = "👩🏻‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone1_tone4"] = "👩🏻‍❤️‍👩🏾", ["couple_with_heart_woman_woman_light_skin_tone_medium_dark_skin_tone"] = "👩🏻‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone1_tone5"] = "👩🏻‍❤️‍👩🏿", ["couple_with_heart_woman_woman_light_skin_tone_dark_skin_tone"] = "👩🏻‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone2_tone1"] = "👩🏼‍❤️‍👩🏻", ["couple_with_heart_woman_woman_medium_light_skin_tone_light_skin_tone"] = "👩🏼‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone2"] = "👩🏼‍❤️‍👩🏼", ["couple_with_heart_woman_woman_medium_light_skin_tone"] = "👩🏼‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone2_tone3"] = "👩🏼‍❤️‍👩🏽", ["couple_with_heart_woman_woman_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍❤️‍👩🏽", ["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_tone2_tone5"] = "👩🏼‍❤️‍👩🏿", ["couple_with_heart_woman_woman_medium_light_skin_tone_dark_skin_tone"] = "👩🏼‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone3_tone1"] = "👩🏽‍❤️‍👩🏻", ["couple_with_heart_woman_woman_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone3_tone2"] = "👩🏽‍❤️‍👩🏼", ["couple_with_heart_woman_woman_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone3"] = "👩🏽‍❤️‍👩🏽", ["couple_with_heart_woman_woman_medium_skin_tone"] = "👩🏽‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone3_tone4"] = "👩🏽‍❤️‍👩🏾", ["couple_with_heart_woman_woman_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone3_tone5"] = "👩🏽‍❤️‍👩🏿", ["couple_with_heart_woman_woman_medium_skin_tone_dark_skin_tone"] = "👩🏽‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone4_tone1"] = "👩🏾‍❤️‍👩🏻", ["couple_with_heart_woman_woman_medium_dark_skin_tone_light_skin_tone"] = "👩🏾‍❤️‍👩🏻", ["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_tone4_tone3"] = "👩🏾‍❤️‍👩🏽", ["couple_with_heart_woman_woman_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone4"] = "👩🏾‍❤️‍👩🏾", ["couple_with_heart_woman_woman_medium_dark_skin_tone"] = "👩🏾‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone4_tone5"] = "👩🏾‍❤️‍👩🏿", ["couple_with_heart_woman_woman_medium_dark_skin_tone_dark_skin_tone"] = "👩🏾‍❤️‍👩🏿", ["couple_with_heart_woman_woman_tone5_tone1"] = "👩🏿‍❤️‍👩🏻", ["couple_with_heart_woman_woman_dark_skin_tone_light_skin_tone"] = "👩🏿‍❤️‍👩🏻", ["couple_with_heart_woman_woman_tone5_tone2"] = "👩🏿‍❤️‍👩🏼", ["couple_with_heart_woman_woman_dark_skin_tone_medium_light_skin_tone"] = "👩🏿‍❤️‍👩🏼", ["couple_with_heart_woman_woman_tone5_tone3"] = "👩🏿‍❤️‍👩🏽", ["couple_with_heart_woman_woman_dark_skin_tone_medium_skin_tone"] = "👩🏿‍❤️‍👩🏽", ["couple_with_heart_woman_woman_tone5_tone4"] = "👩🏿‍❤️‍👩🏾", ["couple_with_heart_woman_woman_dark_skin_tone_medium_dark_skin_tone"] = "👩🏿‍❤️‍👩🏾", ["couple_with_heart_woman_woman_tone5"] = "👩🏿‍❤️‍👩🏿", ["couple_with_heart_woman_woman_dark_skin_tone"] = "👩🏿‍❤️‍👩🏿", ["couple_mm"] = "👨‍❤️‍👨", ["couple_with_heart_mm"] = "👨‍❤️‍👨", ["couple_with_heart_man_man_tone1"] = "👨🏻‍❤️‍👨🏻", ["couple_with_heart_man_man_light_skin_tone"] = "👨🏻‍❤️‍👨🏻", ["couple_with_heart_man_man_tone1_tone2"] = "👨🏻‍❤️‍👨🏼", ["couple_with_heart_man_man_light_skin_tone_medium_light_skin_tone"] = "👨🏻‍❤️‍👨🏼", ["couple_with_heart_man_man_tone1_tone3"] = "👨🏻‍❤️‍👨🏽", ["couple_with_heart_man_man_light_skin_tone_medium_skin_tone"] = "👨🏻‍❤️‍👨🏽", ["couple_with_heart_man_man_tone1_tone4"] = "👨🏻‍❤️‍👨🏾", ["couple_with_heart_man_man_light_skin_tone_medium_dark_skin_tone"] = "👨🏻‍❤️‍👨🏾", ["couple_with_heart_man_man_tone1_tone5"] = "👨🏻‍❤️‍👨🏿", ["couple_with_heart_man_man_light_skin_tone_dark_skin_tone"] = "👨🏻‍❤️‍👨🏿", ["couple_with_heart_man_man_tone2_tone1"] = "👨🏼‍❤️‍👨🏻", ["couple_with_heart_man_man_medium_light_skin_tone_light_skin_tone"] = "👨🏼‍❤️‍👨🏻", ["couple_with_heart_man_man_tone2"] = "👨🏼‍❤️‍👨🏼", ["couple_with_heart_man_man_medium_light_skin_tone"] = "👨🏼‍❤️‍👨🏼", ["couple_with_heart_man_man_tone2_tone3"] = "👨🏼‍❤️‍👨🏽", ["couple_with_heart_man_man_medium_light_skin_tone_medium_skin_tone"] = "👨🏼‍❤️‍👨🏽", ["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_tone2_tone5"] = "👨🏼‍❤️‍👨🏿", ["couple_with_heart_man_man_medium_light_skin_tone_dark_skin_tone"] = "👨🏼‍❤️‍👨🏿", ["couple_with_heart_man_man_tone3_tone1"] = "👨🏽‍❤️‍👨🏻", ["couple_with_heart_man_man_medium_skin_tone_light_skin_tone"] = "👨🏽‍❤️‍👨🏻", ["couple_with_heart_man_man_tone3_tone2"] = "👨🏽‍❤️‍👨🏼", ["couple_with_heart_man_man_medium_skin_tone_medium_light_skin_tone"] = "👨🏽‍❤️‍👨🏼", ["couple_with_heart_man_man_tone3"] = "👨🏽‍❤️‍👨🏽", ["couple_with_heart_man_man_medium_skin_tone"] = "👨🏽‍❤️‍👨🏽", ["couple_with_heart_man_man_tone3_tone4"] = "👨🏽‍❤️‍👨🏾", ["couple_with_heart_man_man_medium_skin_tone_medium_dark_skin_tone"] = "👨🏽‍❤️‍👨🏾", ["couple_with_heart_man_man_tone3_tone5"] = "👨🏽‍❤️‍👨🏿", ["couple_with_heart_man_man_medium_skin_tone_dark_skin_tone"] = "👨🏽‍❤️‍👨🏿", ["couple_with_heart_man_man_tone4_tone1"] = "👨🏾‍❤️‍👨🏻", ["couple_with_heart_man_man_medium_dark_skin_tone_light_skin_tone"] = "👨🏾‍❤️‍👨🏻", ["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_tone4_tone3"] = "👨🏾‍❤️‍👨🏽", ["couple_with_heart_man_man_medium_dark_skin_tone_medium_skin_tone"] = "👨🏾‍❤️‍👨🏽", ["couple_with_heart_man_man_tone4"] = "👨🏾‍❤️‍👨🏾", ["couple_with_heart_man_man_medium_dark_skin_tone"] = "👨🏾‍❤️‍👨🏾", ["couple_with_heart_man_man_tone4_tone5"] = "👨🏾‍❤️‍👨🏿", ["couple_with_heart_man_man_medium_dark_skin_tone_dark_skin_tone"] = "👨🏾‍❤️‍👨🏿", ["couple_with_heart_man_man_tone5_tone1"] = "👨🏿‍❤️‍👨🏻", ["couple_with_heart_man_man_dark_skin_tone_light_skin_tone"] = "👨🏿‍❤️‍👨🏻", ["couple_with_heart_man_man_tone5_tone2"] = "👨🏿‍❤️‍👨🏼", ["couple_with_heart_man_man_dark_skin_tone_medium_light_skin_tone"] = "👨🏿‍❤️‍👨🏼", ["couple_with_heart_man_man_tone5_tone3"] = "👨🏿‍❤️‍👨🏽", ["couple_with_heart_man_man_dark_skin_tone_medium_skin_tone"] = "👨🏿‍❤️‍👨🏽", ["couple_with_heart_man_man_tone5_tone4"] = "👨🏿‍❤️‍👨🏾", ["couple_with_heart_man_man_dark_skin_tone_medium_dark_skin_tone"] = "👨🏿‍❤️‍👨🏾", ["couple_with_heart_man_man_tone5"] = "👨🏿‍❤️‍👨🏿", ["couple_with_heart_man_man_dark_skin_tone"] = "👨🏿‍❤️‍👨🏿", ["couplekiss"] = "💏", ["kiss_person_person_tone5_tone4"] = "🧑🏿‍❤️‍💋‍🧑🏾", ["kiss_person_person_dark_skin_tone_medium_dark_skin_tone"] = "🧑🏿‍❤️‍💋‍🧑🏾", ["kiss_tone1"] = "💏🏻", ["kiss_light_skin_tone"] = "💏🏻", ["kiss_person_person_tone1_tone2"] = "🧑🏻‍❤️‍💋‍🧑🏼", ["kiss_person_person_light_skin_tone_medium_light_skin_tone"] = "🧑🏻‍❤️‍💋‍🧑🏼", ["kiss_person_person_tone1_tone3"] = "🧑🏻‍❤️‍💋‍🧑🏽", ["kiss_person_person_light_skin_tone_medium_skin_tone"] = "🧑🏻‍❤️‍💋‍🧑🏽", ["kiss_person_person_tone1_tone4"] = "🧑🏻‍❤️‍💋‍🧑🏾", ["kiss_person_person_light_skin_tone_medium_dark_skin_tone"] = "🧑🏻‍❤️‍💋‍🧑🏾", ["kiss_person_person_tone1_tone5"] = "🧑🏻‍❤️‍💋‍🧑🏿", ["kiss_person_person_light_skin_tone_dark_skin_tone"] = "🧑🏻‍❤️‍💋‍🧑🏿", ["kiss_person_person_tone2_tone1"] = "🧑🏼‍❤️‍💋‍🧑🏻", ["kiss_person_person_medium_light_skin_tone_light_skin_tone"] = "🧑🏼‍❤️‍💋‍🧑🏻", ["kiss_tone2"] = "💏🏼", ["kiss_medium_light_skin_tone"] = "💏🏼", ["kiss_person_person_tone2_tone3"] = "🧑🏼‍❤️‍💋‍🧑🏽", ["kiss_person_person_medium_light_skin_tone_medium_skin_tone"] = "🧑🏼‍❤️‍💋‍🧑🏽", ["kiss_person_person_tone2_tone4"] = "🧑🏼‍❤️‍💋‍🧑🏾", ["kiss_person_person_medium_light_skin_tone_medium_dark_skin_tone"] = "🧑🏼‍❤️‍💋‍🧑🏾", ["kiss_person_person_tone2_tone5"] = "🧑🏼‍❤️‍💋‍🧑🏿", ["kiss_person_person_medium_light_skin_tone_dark_skin_tone"] = "🧑🏼‍❤️‍💋‍🧑🏿", ["kiss_person_person_tone3_tone1"] = "🧑🏽‍❤️‍💋‍🧑🏻", ["kiss_person_person_medium_skin_tone_light_skin_tone"] = "🧑🏽‍❤️‍💋‍🧑🏻", ["kiss_person_person_tone3_tone2"] = "🧑🏽‍❤️‍💋‍🧑🏼", ["kiss_person_person_medium_skin_tone_medium_light_skin_tone"] = "🧑🏽‍❤️‍💋‍🧑🏼", ["kiss_tone3"] = "💏🏽", ["kiss_medium_skin_tone"] = "💏🏽", ["kiss_person_person_tone3_tone4"] = "🧑🏽‍❤️‍💋‍🧑🏾", ["kiss_person_person_medium_skin_tone_medium_dark_skin_tone"] = "🧑🏽‍❤️‍💋‍🧑🏾", ["kiss_person_person_tone3_tone5"] = "🧑🏽‍❤️‍💋‍🧑🏿", ["kiss_person_person_medium_skin_tone_dark_skin_tone"] = "🧑🏽‍❤️‍💋‍🧑🏿", ["kiss_person_person_tone4_tone1"] = "🧑🏾‍❤️‍💋‍🧑🏻", ["kiss_person_person_medium_dark_skin_tone_light_skin_tone"] = "🧑🏾‍❤️‍💋‍🧑🏻", ["kiss_person_person_tone4_tone2"] = "🧑🏾‍❤️‍💋‍🧑🏼", ["kiss_person_person_medium_dark_skin_tone_medium_light_skin_tone"] = "🧑🏾‍❤️‍💋‍🧑🏼", ["kiss_person_person_tone4_tone3"] = "🧑🏾‍❤️‍💋‍🧑🏽", ["kiss_person_person_medium_dark_skin_tone_medium_skin_tone"] = "🧑🏾‍❤️‍💋‍🧑🏽", ["kiss_tone4"] = "💏🏾", ["kiss_medium_dark_skin_tone"] = "💏🏾", ["kiss_person_person_tone4_tone5"] = "🧑🏾‍❤️‍💋‍🧑🏿", ["kiss_person_person_medium_dark_skin_tone_dark_skin_tone"] = "🧑🏾‍❤️‍💋‍🧑🏿", ["kiss_person_person_tone5_tone1"] = "🧑🏿‍❤️‍💋‍🧑🏻", ["kiss_person_person_dark_skin_tone_light_skin_tone"] = "🧑🏿‍❤️‍💋‍🧑🏻", ["kiss_person_person_tone5_tone2"] = "🧑🏿‍❤️‍💋‍🧑🏼", ["kiss_person_person_dark_skin_tone_medium_light_skin_tone"] = "🧑🏿‍❤️‍💋‍🧑🏼", ["kiss_person_person_tone5_tone3"] = "🧑🏿‍❤️‍💋‍🧑🏽", ["kiss_person_person_dark_skin_tone_medium_skin_tone"] = "🧑🏿‍❤️‍💋‍🧑🏽", ["kiss_tone5"] = "💏🏿", ["kiss_dark_skin_tone"] = "💏🏿", ["kiss_woman_man"] = "👩‍❤️‍💋‍👨", ["kiss_woman_man_tone1"] = "👩🏻‍❤️‍💋‍👨🏻", ["kiss_woman_man_light_skin_tone"] = "👩🏻‍❤️‍💋‍👨🏻", ["kiss_woman_man_tone1_tone2"] = "👩🏻‍❤️‍💋‍👨🏼", ["kiss_woman_man_light_skin_tone_medium_light_skin_tone"] = "👩🏻‍❤️‍💋‍👨🏼", ["kiss_woman_man_tone1_tone3"] = "👩🏻‍❤️‍💋‍👨🏽", ["kiss_woman_man_light_skin_tone_medium_skin_tone"] = "👩🏻‍❤️‍💋‍👨🏽", ["kiss_woman_man_tone1_tone4"] = "👩🏻‍❤️‍💋‍👨🏾", ["kiss_woman_man_light_skin_tone_medium_dark_skin_tone"] = "👩🏻‍❤️‍💋‍👨🏾", ["kiss_woman_man_tone1_tone5"] = "👩🏻‍❤️‍💋‍👨🏿", ["kiss_woman_man_light_skin_tone_dark_skin_tone"] = "👩🏻‍❤️‍💋‍👨🏿", ["kiss_woman_man_tone2_tone1"] = "👩🏼‍❤️‍💋‍👨🏻", ["kiss_woman_man_medium_light_skin_tone_light_skin_tone"] = "👩🏼‍❤️‍💋‍👨🏻", ["kiss_woman_man_tone2"] = "👩🏼‍❤️‍💋‍👨🏼", ["kiss_woman_man_medium_light_skin_tone"] = "👩🏼‍❤️‍💋‍👨🏼", ["kiss_woman_man_tone2_tone3"] = "👩🏼‍❤️‍💋‍👨🏽", ["kiss_woman_man_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍❤️‍💋‍👨🏽", ["kiss_woman_man_tone2_tone4"] = "👩🏼‍❤️‍💋‍👨🏾", ["kiss_woman_man_medium_light_skin_tone_medium_dark_skin_tone"] = "👩🏼‍❤️‍💋‍👨🏾", ["kiss_woman_man_tone2_tone5"] = "👩🏼‍❤️‍💋‍👨🏿", ["kiss_woman_man_medium_light_skin_tone_dark_skin_tone"] = "👩🏼‍❤️‍💋‍👨🏿", ["kiss_woman_man_tone3_tone1"] = "👩🏽‍❤️‍💋‍👨🏻", ["kiss_woman_man_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍💋‍👨🏻", ["kiss_woman_man_tone3_tone2"] = "👩🏽‍❤️‍💋‍👨🏼", ["kiss_woman_man_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍❤️‍💋‍👨🏼", ["kiss_woman_man_tone3"] = "👩🏽‍❤️‍💋‍👨🏽", ["kiss_woman_man_medium_skin_tone"] = "👩🏽‍❤️‍💋‍👨🏽", ["kiss_woman_man_tone3_tone4"] = "👩🏽‍❤️‍💋‍👨🏾", ["kiss_woman_man_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽‍❤️‍💋‍👨🏾", ["kiss_woman_man_tone3_tone5"] = "👩🏽‍❤️‍💋‍👨🏿", ["kiss_woman_man_medium_skin_tone_dark_skin_tone"] = "👩🏽‍❤️‍💋‍👨🏿", ["kiss_woman_man_tone4_tone1"] = "👩🏾‍❤️‍💋‍👨🏻", ["kiss_woman_man_medium_dark_skin_tone_light_skin_tone"] = "👩🏾‍❤️‍💋‍👨🏻", ["kiss_woman_man_tone4_tone2"] = "👩🏾‍❤️‍💋‍👨🏼", ["kiss_woman_man_medium_dark_skin_tone_medium_light_skin_tone"] = "👩🏾‍❤️‍💋‍👨🏼", ["kiss_woman_man_tone4_tone3"] = "👩🏾‍❤️‍💋‍👨🏽", ["kiss_woman_man_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾‍❤️‍💋‍👨🏽", ["kiss_woman_man_tone4"] = "👩🏾‍❤️‍💋‍👨🏾", ["kiss_woman_man_medium_dark_skin_tone"] = "👩🏾‍❤️‍💋‍👨🏾", ["kiss_woman_man_tone4_tone5"] = "👩🏾‍❤️‍💋‍👨🏿", ["kiss_woman_man_medium_dark_skin_tone_dark_skin_tone"] = "👩🏾‍❤️‍💋‍👨🏿", ["kiss_woman_man_tone5_tone1"] = "👩🏿‍❤️‍💋‍👨🏻", ["kiss_woman_man_dark_skin_tone_light_skin_tone"] = "👩🏿‍❤️‍💋‍👨🏻", ["kiss_woman_man_tone5_tone2"] = "👩🏿‍❤️‍💋‍👨🏼", ["kiss_woman_man_dark_skin_tone_medium_light_skin_tone"] = "👩🏿‍❤️‍💋‍👨🏼", ["kiss_woman_man_tone5_tone3"] = "👩🏿‍❤️‍💋‍👨🏽", ["kiss_woman_man_dark_skin_tone_medium_skin_tone"] = "👩🏿‍❤️‍💋‍👨🏽", ["kiss_woman_man_tone5_tone4"] = "👩🏿‍❤️‍💋‍👨🏾", ["kiss_woman_man_dark_skin_tone_medium_dark_skin_tone"] = "👩🏿‍❤️‍💋‍👨🏾", ["kiss_woman_man_tone5"] = "👩🏿‍❤️‍💋‍👨🏿", ["kiss_woman_man_dark_skin_tone"] = "👩🏿‍❤️‍💋‍👨🏿", ["kiss_ww"] = "👩‍❤️‍💋‍👩", ["couplekiss_ww"] = "👩‍❤️‍💋‍👩", ["kiss_woman_woman_tone1"] = "👩🏻‍❤️‍💋‍👩🏻", ["kiss_woman_woman_light_skin_tone"] = "👩🏻‍❤️‍💋‍👩🏻", ["kiss_woman_woman_tone1_tone2"] = "👩🏻‍❤️‍💋‍👩🏼", ["kiss_woman_woman_light_skin_tone_medium_light_skin_tone"] = "👩🏻‍❤️‍💋‍👩🏼", ["kiss_woman_woman_tone1_tone3"] = "👩🏻‍❤️‍💋‍👩🏽", ["kiss_woman_woman_light_skin_tone_medium_skin_tone"] = "👩🏻‍❤️‍💋‍👩🏽", ["kiss_woman_woman_tone1_tone4"] = "👩🏻‍❤️‍💋‍👩🏾", ["kiss_woman_woman_light_skin_tone_medium_dark_skin_tone"] = "👩🏻‍❤️‍💋‍👩🏾", ["kiss_woman_woman_tone1_tone5"] = "👩🏻‍❤️‍💋‍👩🏿", ["kiss_woman_woman_light_skin_tone_dark_skin_tone"] = "👩🏻‍❤️‍💋‍👩🏿", ["kiss_woman_woman_tone2_tone1"] = "👩🏼‍❤️‍💋‍👩🏻", ["kiss_woman_woman_medium_light_skin_tone_light_skin_tone"] = "👩🏼‍❤️‍💋‍👩🏻", ["kiss_woman_woman_tone2"] = "👩🏼‍❤️‍💋‍👩🏼", ["kiss_woman_woman_medium_light_skin_tone"] = "👩🏼‍❤️‍💋‍👩🏼", ["kiss_woman_woman_tone2_tone3"] = "👩🏼‍❤️‍💋‍👩🏽", ["kiss_woman_woman_medium_light_skin_tone_medium_skin_tone"] = "👩🏼‍❤️‍💋‍👩🏽", ["kiss_woman_woman_tone2_tone4"] = "👩🏼‍❤️‍💋‍👩🏾", ["kiss_woman_woman_medium_light_skin_tone_medium_dark_skin_tone"] = "👩🏼‍❤️‍💋‍👩🏾", ["kiss_woman_woman_tone2_tone5"] = "👩🏼‍❤️‍💋‍👩🏿", ["kiss_woman_woman_medium_light_skin_tone_dark_skin_tone"] = "👩🏼‍❤️‍💋‍👩🏿", ["kiss_woman_woman_tone3_tone1"] = "👩🏽‍❤️‍💋‍👩🏻", ["kiss_woman_woman_medium_skin_tone_light_skin_tone"] = "👩🏽‍❤️‍💋‍👩🏻", ["kiss_woman_woman_tone3_tone2"] = "👩🏽‍❤️‍💋‍👩🏼", ["kiss_woman_woman_medium_skin_tone_medium_light_skin_tone"] = "👩🏽‍❤️‍💋‍👩🏼", ["kiss_woman_woman_tone3"] = "👩🏽‍❤️‍💋‍👩🏽", ["kiss_woman_woman_medium_skin_tone"] = "👩🏽‍❤️‍💋‍👩🏽", ["kiss_woman_woman_tone3_tone4"] = "👩🏽‍❤️‍💋‍👩🏾", ["kiss_woman_woman_medium_skin_tone_medium_dark_skin_tone"] = "👩🏽‍❤️‍💋‍👩🏾", ["kiss_woman_woman_tone3_tone5"] = "👩🏽‍❤️‍💋‍👩🏿", ["kiss_woman_woman_medium_skin_tone_dark_skin_tone"] = "👩🏽‍❤️‍💋‍👩🏿", ["kiss_woman_woman_tone4_tone1"] = "👩🏾‍❤️‍💋‍👩🏻", ["kiss_woman_woman_medium_dark_skin_tone_light_skin_tone"] = "👩🏾‍❤️‍💋‍👩🏻", ["kiss_woman_woman_tone4_tone2"] = "👩🏾‍❤️‍💋‍👩🏼", ["kiss_woman_woman_medium_dark_skin_tone_medium_light_skin_tone"] = "👩🏾‍❤️‍💋‍👩🏼", ["kiss_woman_woman_tone4_tone3"] = "👩🏾‍❤️‍💋‍👩🏽", ["kiss_woman_woman_medium_dark_skin_tone_medium_skin_tone"] = "👩🏾‍❤️‍💋‍👩🏽", ["kiss_woman_woman_tone4"] = "👩🏾‍❤️‍💋‍👩🏾", ["kiss_woman_woman_medium_dark_skin_tone"] = "👩🏾‍❤️‍💋‍👩🏾", ["kiss_woman_woman_tone4_tone5"] = "👩🏾‍❤️‍💋‍👩🏿", ["kiss_woman_woman_medium_dark_skin_tone_dark_skin_tone"] = "👩🏾‍❤️‍💋‍👩🏿", ["kiss_woman_woman_tone5_tone1"] = "👩🏿‍❤️‍💋‍👩🏻", ["kiss_woman_woman_dark_skin_tone_light_skin_tone"] = "👩🏿‍❤️‍💋‍👩🏻", ["kiss_woman_woman_tone5_tone2"] = "👩🏿‍❤️‍💋‍👩🏼", ["kiss_woman_woman_dark_skin_tone_medium_light_skin_tone"] = "👩🏿‍❤️‍💋‍👩🏼", ["kiss_woman_woman_tone5_tone3"] = "👩🏿‍❤️‍💋‍👩🏽", ["kiss_woman_woman_dark_skin_tone_medium_skin_tone"] = "👩🏿‍❤️‍💋‍👩🏽", ["kiss_woman_woman_tone5_tone4"] = "👩🏿‍❤️‍💋‍👩🏾", ["kiss_woman_woman_dark_skin_tone_medium_dark_skin_tone"] = "👩🏿‍❤️‍💋‍👩🏾", ["kiss_woman_woman_tone5"] = "👩🏿‍❤️‍💋‍👩🏿", ["kiss_woman_woman_dark_skin_tone"] = "👩🏿‍❤️‍💋‍👩🏿", ["kiss_mm"] = "👨‍❤️‍💋‍👨", ["couplekiss_mm"] = "👨‍❤️‍💋‍👨", ["kiss_man_man_tone1"] = "👨🏻‍❤️‍💋‍👨🏻", ["kiss_man_man_light_skin_tone"] = "👨🏻‍❤️‍💋‍👨🏻", ["kiss_man_man_tone1_tone2"] = "👨🏻‍❤️‍💋‍👨🏼", ["kiss_man_man_light_skin_tone_medium_light_skin_tone"] = "👨🏻‍❤️‍💋‍👨🏼", ["kiss_man_man_tone1_tone3"] = "👨🏻‍❤️‍💋‍👨🏽", ["kiss_man_man_light_skin_tone_medium_skin_tone"] = "👨🏻‍❤️‍💋‍👨🏽", ["kiss_man_man_tone1_tone4"] = "👨🏻‍❤️‍💋‍👨🏾", ["kiss_man_man_light_skin_tone_medium_dark_skin_tone"] = "👨🏻‍❤️‍💋‍👨🏾", ["kiss_man_man_tone1_tone5"] = "👨🏻‍❤️‍💋‍👨🏿", ["kiss_man_man_light_skin_tone_dark_skin_tone"] = "👨🏻‍❤️‍💋‍👨🏿", ["kiss_man_man_tone2_tone1"] = "👨🏼‍❤️‍💋‍👨🏻", ["kiss_man_man_medium_light_skin_tone_light_skin_tone"] = "👨🏼‍❤️‍💋‍👨🏻", ["kiss_man_man_tone2"] = "👨🏼‍❤️‍💋‍👨🏼", ["kiss_man_man_medium_light_skin_tone"] = "👨🏼‍❤️‍💋‍👨🏼", ["kiss_man_man_tone2_tone3"] = "👨🏼‍❤️‍💋‍👨🏽", ["kiss_man_man_medium_light_skin_tone_medium_skin_tone"] = "👨🏼‍❤️‍💋‍👨🏽", ["kiss_man_man_tone2_tone4"] = "👨🏼‍❤️‍💋‍👨🏾", ["kiss_man_man_medium_light_skin_tone_medium_dark_skin_tone"] = "👨🏼‍❤️‍💋‍👨🏾", ["kiss_man_man_tone2_tone5"] = "👨🏼‍❤️‍💋‍👨🏿", ["kiss_man_man_medium_light_skin_tone_dark_skin_tone"] = "👨🏼‍❤️‍💋‍👨🏿", ["kiss_man_man_tone3_tone1"] = "👨🏽‍❤️‍💋‍👨🏻", ["kiss_man_man_medium_skin_tone_light_skin_tone"] = "👨🏽‍❤️‍💋‍👨🏻", ["kiss_man_man_tone3_tone2"] = "👨🏽‍❤️‍💋‍👨🏼", ["kiss_man_man_medium_skin_tone_medium_light_skin_tone"] = "👨🏽‍❤️‍💋‍👨🏼", ["kiss_man_man_tone3"] = "👨🏽‍❤️‍💋‍👨🏽", ["kiss_man_man_medium_skin_tone"] = "👨🏽‍❤️‍💋‍👨🏽", ["kiss_man_man_tone3_tone4"] = "👨🏽‍❤️‍💋‍👨🏾", ["kiss_man_man_medium_skin_tone_medium_dark_skin_tone"] = "👨🏽‍❤️‍💋‍👨🏾", ["kiss_man_man_tone3_tone5"] = "👨🏽‍❤️‍💋‍👨🏿", ["kiss_man_man_medium_skin_tone_dark_skin_tone"] = "👨🏽‍❤️‍💋‍👨🏿", ["kiss_man_man_tone4_tone1"] = "👨🏾‍❤️‍💋‍👨🏻", ["kiss_man_man_medium_dark_skin_tone_light_skin_tone"] = "👨🏾‍❤️‍💋‍👨🏻", ["kiss_man_man_tone4_tone2"] = "👨🏾‍❤️‍💋‍👨🏼", ["kiss_man_man_medium_dark_skin_tone_medium_light_skin_tone"] = "👨🏾‍❤️‍💋‍👨🏼", ["kiss_man_man_tone4_tone3"] = "👨🏾‍❤️‍💋‍👨🏽", ["kiss_man_man_medium_dark_skin_tone_medium_skin_tone"] = "👨🏾‍❤️‍💋‍👨🏽", ["kiss_man_man_tone4"] = "👨🏾‍❤️‍💋‍👨🏾", ["kiss_man_man_medium_dark_skin_tone"] = "👨🏾‍❤️‍💋‍👨🏾", ["kiss_man_man_tone4_tone5"] = "👨🏾‍❤️‍💋‍👨🏿", ["kiss_man_man_medium_dark_skin_tone_dark_skin_tone"] = "👨🏾‍❤️‍💋‍👨🏿", ["kiss_man_man_tone5_tone1"] = "👨🏿‍❤️‍💋‍👨🏻", ["kiss_man_man_dark_skin_tone_light_skin_tone"] = "👨🏿‍❤️‍💋‍👨🏻", ["kiss_man_man_tone5_tone2"] = "👨🏿‍❤️‍💋‍👨🏼", ["kiss_man_man_dark_skin_tone_medium_light_skin_tone"] = "👨🏿‍❤️‍💋‍👨🏼", ["kiss_man_man_tone5_tone3"] = "👨🏿‍❤️‍💋‍👨🏽", ["kiss_man_man_dark_skin_tone_medium_skin_tone"] = "👨🏿‍❤️‍💋‍👨🏽", ["kiss_man_man_tone5_tone4"] = "👨🏿‍❤️‍💋‍👨🏾", ["kiss_man_man_dark_skin_tone_medium_dark_skin_tone"] = "👨🏿‍❤️‍💋‍👨🏾", ["kiss_man_man_tone5"] = "👨🏿‍❤️‍💋‍👨🏿", ["kiss_man_man_dark_skin_tone"] = "👨🏿‍❤️‍💋‍👨🏿", ["family"] = "👪", ["family_man_woman_boy"] = "👨‍👩‍👦", ["family_mwg"] = "👨‍👩‍👧", ["family_mwgb"] = "👨‍👩‍👧‍👦", ["family_mwbb"] = "👨‍👩‍👦‍👦", ["family_mwgg"] = "👨‍👩‍👧‍👧", ["family_wwb"] = "👩‍👩‍👦", ["family_wwg"] = "👩‍👩‍👧", ["family_wwgb"] = "👩‍👩‍👧‍👦", ["family_wwbb"] = "👩‍👩‍👦‍👦", ["family_wwgg"] = "👩‍👩‍👧‍👧", ["family_mmb"] = "👨‍👨‍👦", ["family_mmg"] = "👨‍👨‍👧", ["family_mmgb"] = "👨‍👨‍👧‍👦", ["family_mmbb"] = "👨‍👨‍👦‍👦", ["family_mmgg"] = "👨‍👨‍👧‍👧", ["family_woman_boy"] = "👩‍👦", ["family_woman_girl"] = "👩‍👧", ["family_woman_girl_boy"] = "👩‍👧‍👦", ["family_woman_boy_boy"] = "👩‍👦‍👦", ["family_woman_girl_girl"] = "👩‍👧‍👧", ["family_man_boy"] = "👨‍👦", ["family_man_girl"] = "👨‍👧", ["family_man_girl_boy"] = "👨‍👧‍👦", ["family_man_boy_boy"] = "👨‍👦‍👦", ["family_man_girl_girl"] = "👨‍👧‍👧", ["yarn"] = "🧶", ["thread"] = "🧵", ["coat"] = "🧥", ["lab_coat"] = "🥼", ["safety_vest"] = "🦺", ["womans_clothes"] = "👚", ["shirt"] = "👕", ["jeans"] = "👖", ["briefs"] = "🩲", ["shorts"] = "🩳", ["necktie"] = "👔", ["dress"] = "👗", ["bikini"] = "👙", ["one_piece_swimsuit"] = "🩱", ["kimono"] = "👘", ["sari"] = "🥻", ["womans_flat_shoe"] = "🥿", ["high_heel"] = "👠", ["sandal"] = "👡", ["boot"] = "👢", ["mans_shoe"] = "👞", ["athletic_shoe"] = "👟", ["hiking_boot"] = "🥾", ["thong_sandal"] = "🩴", ["socks"] = "🧦", ["gloves"] = "🧤", ["scarf"] = "🧣", ["tophat"] = "🎩", ["billed_cap"] = "🧢", ["womans_hat"] = "👒", ["mortar_board"] = "🎓", ["helmet_with_cross"] = "⛑️", ["helmet_with_white_cross"] = "⛑️", ["military_helmet"] = "🪖", ["crown"] = "👑", ["ring"] = "💍", ["pouch"] = "👝", ["purse"] = "👛", ["handbag"] = "👜", ["briefcase"] = "💼", ["school_satchel"] = "🎒", ["luggage"] = "🧳", ["eyeglasses"] = "👓", ["dark_sunglasses"] = "🕶️", ["goggles"] = "🥽", ["closed_umbrella"] = "🌂", ["dog"] = "🐶", ["cat"] = "🐱", ["mouse"] = "🐭", ["hamster"] = "🐹", ["rabbit"] = "🐰", ["fox"] = "🦊", ["fox_face"] = "🦊", ["bear"] = "🐻", ["panda_face"] = "🐼", ["polar_bear"] = "🐻‍❄️", ["koala"] = "🐨", ["tiger"] = "🐯", ["lion_face"] = "🦁", ["lion"] = "🦁", ["cow"] = "🐮", ["pig"] = "🐷", ["pig_nose"] = "🐽", ["frog"] = "🐸", ["monkey_face"] = "🐵", ["see_no_evil"] = "🙈", ["hear_no_evil"] = "🙉", ["speak_no_evil"] = "🙊", ["monkey"] = "🐒", ["chicken"] = "🐔", ["penguin"] = "🐧", ["bird"] = "🐦", ["baby_chick"] = "🐤", ["hatching_chick"] = "🐣", ["hatched_chick"] = "🐥", ["duck"] = "🦆", ["dodo"] = "🦤", ["eagle"] = "🦅", ["owl"] = "🦉", ["bat"] = "🦇", ["wolf"] = "🐺", ["boar"] = "🐗", ["horse"] = "🐴", ["unicorn"] = "🦄", ["unicorn_face"] = "🦄", ["bee"] = "🐝", ["bug"] = "🐛", ["butterfly"] = "🦋", ["snail"] = "🐌", ["worm"] = "🪱", ["lady_beetle"] = "🐞", ["ant"] = "🐜", ["fly"] = "🪰", ["mosquito"] = "🦟", ["cockroach"] = "🪳", ["beetle"] = "🪲", ["cricket"] = "🦗", ["spider"] = "🕷️", ["spider_web"] = "🕸️", ["scorpion"] = "🦂", ["turtle"] = "🐢", ["snake"] = "🐍", ["lizard"] = "🦎", ["t_rex"] = "🦖", ["sauropod"] = "🦕", ["octopus"] = "🐙", ["squid"] = "🦑", ["shrimp"] = "🦐", ["lobster"] = "🦞", ["crab"] = "🦀", ["blowfish"] = "🐡", ["tropical_fish"] = "🐠", ["fish"] = "🐟", ["seal"] = "🦭", ["dolphin"] = "🐬", ["whale"] = "🐳", ["whale2"] = "🐋", ["shark"] = "🦈", ["crocodile"] = "🐊", ["tiger2"] = "🐅", ["leopard"] = "🐆", ["zebra"] = "🦓", ["gorilla"] = "🦍", ["orangutan"] = "🦧", ["elephant"] = "🐘", ["mammoth"] = "🦣", ["bison"] = "🦬", ["hippopotamus"] = "🦛", ["rhino"] = "🦏", ["rhinoceros"] = "🦏", ["dromedary_camel"] = "🐪", ["camel"] = "🐫", ["giraffe"] = "🦒", ["kangaroo"] = "🦘", ["water_buffalo"] = "🐃", ["ox"] = "🐂", ["cow2"] = "🐄", ["racehorse"] = "🐎", ["pig2"] = "🐖", ["ram"] = "🐏", ["sheep"] = "🐑", ["llama"] = "🦙", ["goat"] = "🐐", ["deer"] = "🦌", ["dog2"] = "🐕", ["poodle"] = "🐩", ["guide_dog"] = "🦮", ["service_dog"] = "🐕‍🦺", ["cat2"] = "🐈", ["black_cat"] = "🐈‍⬛", ["rooster"] = "🐓", ["turkey"] = "🦃", ["peacock"] = "🦚", ["parrot"] = "🦜", ["swan"] = "🦢", ["flamingo"] = "🦩", ["dove"] = "🕊️", ["dove_of_peace"] = "🕊️", ["rabbit2"] = "🐇", ["raccoon"] = "🦝", ["skunk"] = "🦨", ["badger"] = "🦡", ["beaver"] = "🦫", ["otter"] = "🦦", ["sloth"] = "🦥", ["mouse2"] = "🐁", ["rat"] = "🐀", ["chipmunk"] = "🐿️", ["hedgehog"] = "🦔", ["feet"] = "🐾", ["paw_prints"] = "🐾", ["dragon"] = "🐉", ["dragon_face"] = "🐲", ["cactus"] = "🌵", ["christmas_tree"] = "🎄", ["evergreen_tree"] = "🌲", ["deciduous_tree"] = "🌳", ["palm_tree"] = "🌴", ["seedling"] = "🌱", ["herb"] = "🌿", ["shamrock"] = "☘️", ["four_leaf_clover"] = "🍀", ["bamboo"] = "🎍", ["tanabata_tree"] = "🎋", ["leaves"] = "🍃", ["fallen_leaf"] = "🍂", ["maple_leaf"] = "🍁", ["feather"] = "🪶", ["mushroom"] = "🍄", ["shell"] = "🐚", ["rock"] = "🪨", ["wood"] = "🪵", ["ear_of_rice"] = "🌾", ["potted_plant"] = "🪴", ["bouquet"] = "💐", ["tulip"] = "🌷", ["rose"] = "🌹", ["wilted_rose"] = "🥀", ["wilted_flower"] = "🥀", ["hibiscus"] = "🌺", ["cherry_blossom"] = "🌸", ["blossom"] = "🌼", ["sunflower"] = "🌻", ["sun_with_face"] = "🌞", ["full_moon_with_face"] = "🌝", ["first_quarter_moon_with_face"] = "🌛", ["last_quarter_moon_with_face"] = "🌜", ["new_moon_with_face"] = "🌚", ["full_moon"] = "🌕", ["waning_gibbous_moon"] = "🌖", ["last_quarter_moon"] = "🌗", ["waning_crescent_moon"] = "🌘", ["new_moon"] = "🌑", ["waxing_crescent_moon"] = "🌒", ["first_quarter_moon"] = "🌓", ["waxing_gibbous_moon"] = "🌔", ["crescent_moon"] = "🌙", ["earth_americas"] = "🌎", ["earth_africa"] = "🌍", ["earth_asia"] = "🌏", ["ringed_planet"] = "🪐", ["dizzy"] = "💫", ["star"] = "⭐", ["star2"] = "🌟", ["sparkles"] = "✨", ["zap"] = "⚡", ["comet"] = "☄️", ["boom"] = "💥", ["fire"] = "🔥", ["flame"] = "🔥", ["cloud_tornado"] = "🌪️", ["cloud_with_tornado"] = "🌪️", ["rainbow"] = "🌈", ["sunny"] = "☀️", ["white_sun_small_cloud"] = "🌤️", ["white_sun_with_small_cloud"] = "🌤️", ["partly_sunny"] = "⛅", ["white_sun_cloud"] = "🌥️", ["white_sun_behind_cloud"] = "🌥️", ["cloud"] = "☁️", ["white_sun_rain_cloud"] = "🌦️", ["white_sun_behind_cloud_with_rain"] = "🌦️", ["cloud_rain"] = "🌧️", ["cloud_with_rain"] = "🌧️", ["thunder_cloud_rain"] = "⛈️", ["thunder_cloud_and_rain"] = "⛈️", ["cloud_lightning"] = "🌩️", ["cloud_with_lightning"] = "🌩️", ["cloud_snow"] = "🌨️", ["cloud_with_snow"] = "🌨️", ["snowflake"] = "❄️", ["snowman2"] = "☃️", ["snowman"] = "⛄", ["wind_blowing_face"] = "🌬️", ["dash"] = "💨", ["droplet"] = "💧", ["sweat_drops"] = "💦", ["umbrella"] = "☔", ["umbrella2"] = "☂️", ["ocean"] = "🌊", ["fog"] = "🌫️", ["green_apple"] = "🍏", ["apple"] = "🍎", ["pear"] = "🍐", ["tangerine"] = "🍊", ["lemon"] = "🍋", ["banana"] = "🍌", ["watermelon"] = "🍉", ["grapes"] = "🍇", ["blueberries"] = "🫐", ["strawberry"] = "🍓", ["melon"] = "🍈", ["cherries"] = "🍒", ["peach"] = "🍑", ["mango"] = "🥭", ["pineapple"] = "🍍", ["coconut"] = "🥥", ["kiwi"] = "🥝", ["kiwifruit"] = "🥝", ["tomato"] = "🍅", ["eggplant"] = "🍆", ["avocado"] = "🥑", ["olive"] = "🫒", ["broccoli"] = "🥦", ["leafy_green"] = "🥬", ["bell_pepper"] = "🫑", ["cucumber"] = "🥒", ["hot_pepper"] = "🌶️", ["corn"] = "🌽", ["carrot"] = "🥕", ["garlic"] = "🧄", ["onion"] = "🧅", ["potato"] = "🥔", ["sweet_potato"] = "🍠", ["croissant"] = "🥐", ["bagel"] = "🥯", ["bread"] = "🍞", ["french_bread"] = "🥖", ["baguette_bread"] = "🥖", ["flatbread"] = "🫓", ["pretzel"] = "🥨", ["cheese"] = "🧀", ["cheese_wedge"] = "🧀", ["egg"] = "🥚", ["cooking"] = "🍳", ["butter"] = "🧈", ["pancakes"] = "🥞", ["waffle"] = "🧇", ["bacon"] = "🥓", ["cut_of_meat"] = "🥩", ["poultry_leg"] = "🍗", ["meat_on_bone"] = "🍖", ["hotdog"] = "🌭", ["hot_dog"] = "🌭", ["hamburger"] = "🍔", ["fries"] = "🍟", ["pizza"] = "🍕", ["sandwich"] = "🥪", ["stuffed_flatbread"] = "🥙", ["stuffed_pita"] = "🥙", ["falafel"] = "🧆", ["taco"] = "🌮", ["burrito"] = "🌯", ["tamale"] = "🫔", ["salad"] = "🥗", ["green_salad"] = "🥗", ["shallow_pan_of_food"] = "🥘", ["paella"] = "🥘", ["fondue"] = "🫕", ["canned_food"] = "🥫", ["spaghetti"] = "🍝", ["ramen"] = "🍜", ["stew"] = "🍲", ["curry"] = "🍛", ["sushi"] = "🍣", ["bento"] = "🍱", ["dumpling"] = "🥟", ["oyster"] = "🦪", ["fried_shrimp"] = "🍤", ["rice_ball"] = "🍙", ["rice"] = "🍚", ["rice_cracker"] = "🍘", ["fish_cake"] = "🍥", ["fortune_cookie"] = "🥠", ["moon_cake"] = "🥮", ["oden"] = "🍢", ["dango"] = "🍡", ["shaved_ice"] = "🍧", ["ice_cream"] = "🍨", ["icecream"] = "🍦", ["pie"] = "🥧", ["cupcake"] = "🧁", ["cake"] = "🍰", ["birthday"] = "🎂", ["custard"] = "🍮", ["pudding"] = "🍮", ["flan"] = "🍮", ["lollipop"] = "🍭", ["candy"] = "🍬", ["chocolate_bar"] = "🍫", ["popcorn"] = "🍿", ["doughnut"] = "🍩", ["cookie"] = "🍪", ["chestnut"] = "🌰", ["peanuts"] = "🥜", ["shelled_peanut"] = "🥜", ["honey_pot"] = "🍯", ["milk"] = "🥛", ["glass_of_milk"] = "🥛", ["baby_bottle"] = "🍼", ["coffee"] = "☕", ["tea"] = "🍵", ["teapot"] = "🫖", ["mate"] = "🧉", ["bubble_tea"] = "🧋", ["beverage_box"] = "🧃", ["cup_with_straw"] = "🥤", ["sake"] = "🍶", ["beer"] = "🍺", ["beers"] = "🍻", ["champagne_glass"] = "🥂", ["clinking_glass"] = "🥂", ["wine_glass"] = "🍷", ["tumbler_glass"] = "🥃", ["whisky"] = "🥃", ["cocktail"] = "🍸", ["tropical_drink"] = "🍹", ["champagne"] = "🍾", ["bottle_with_popping_cork"] = "🍾", ["ice_cube"] = "🧊", ["spoon"] = "🥄", ["fork_and_knife"] = "🍴", ["fork_knife_plate"] = "🍽️", ["fork_and_knife_with_plate"] = "🍽️", ["bowl_with_spoon"] = "🥣", ["takeout_box"] = "🥡", ["chopsticks"] = "🥢", ["salt"] = "🧂", ["soccer"] = "⚽", ["basketball"] = "🏀", ["football"] = "🏈", ["baseball"] = "⚾", ["softball"] = "🥎", ["tennis"] = "🎾", ["volleyball"] = "🏐", ["rugby_football"] = "🏉", ["flying_disc"] = "🥏", ["boomerang"] = "🪃", ["8ball"] = "🎱", ["yo_yo"] = "🪀", ["ping_pong"] = "🏓", ["table_tennis"] = "🏓", ["badminton"] = "🏸", ["hockey"] = "🏒", ["field_hockey"] = "🏑", ["lacrosse"] = "🥍", ["cricket_game"] = "🏏", ["cricket_bat_ball"] = "🏏", ["goal"] = "🥅", ["goal_net"] = "🥅", ["golf"] = "⛳", ["kite"] = "🪁", ["bow_and_arrow"] = "🏹", ["archery"] = "🏹", ["fishing_pole_and_fish"] = "🎣", ["diving_mask"] = "🤿", ["boxing_glove"] = "🥊", ["boxing_gloves"] = "🥊", ["martial_arts_uniform"] = "🥋", ["karate_uniform"] = "🥋", ["running_shirt_with_sash"] = "🎽", ["skateboard"] = "🛹", ["roller_skate"] = "🛼", ["sled"] = "🛷", ["ice_skate"] = "⛸️", ["curling_stone"] = "🥌", ["ski"] = "🎿", ["skier"] = "⛷️", ["snowboarder"] = "🏂", ["snowboarder_tone1"] = "🏂🏻", ["snowboarder_light_skin_tone"] = "🏂🏻", ["snowboarder_tone2"] = "🏂🏼", ["snowboarder_medium_light_skin_tone"] = "🏂🏼", ["snowboarder_tone3"] = "🏂🏽", ["snowboarder_medium_skin_tone"] = "🏂🏽", ["snowboarder_tone4"] = "🏂🏾", ["snowboarder_medium_dark_skin_tone"] = "🏂🏾", ["snowboarder_tone5"] = "🏂🏿", ["snowboarder_dark_skin_tone"] = "🏂🏿", ["parachute"] = "🪂", ["person_lifting_weights"] = "🏋️", ["lifter"] = "🏋️", ["weight_lifter"] = "🏋️", ["person_lifting_weights_tone1"] = "🏋🏻", ["lifter_tone1"] = "🏋🏻", ["weight_lifter_tone1"] = "🏋🏻", ["person_lifting_weights_tone2"] = "🏋🏼", ["lifter_tone2"] = "🏋🏼", ["weight_lifter_tone2"] = "🏋🏼", ["person_lifting_weights_tone3"] = "🏋🏽", ["lifter_tone3"] = "🏋🏽", ["weight_lifter_tone3"] = "🏋🏽", ["person_lifting_weights_tone4"] = "🏋🏾", ["lifter_tone4"] = "🏋🏾", ["weight_lifter_tone4"] = "🏋🏾", ["person_lifting_weights_tone5"] = "🏋🏿", ["lifter_tone5"] = "🏋🏿", ["weight_lifter_tone5"] = "🏋🏿", ["woman_lifting_weights"] = "🏋️‍♀️", ["woman_lifting_weights_tone1"] = "🏋🏻‍♀️", ["woman_lifting_weights_light_skin_tone"] = "🏋🏻‍♀️", ["woman_lifting_weights_tone2"] = "🏋🏼‍♀️", ["woman_lifting_weights_medium_light_skin_tone"] = "🏋🏼‍♀️", ["woman_lifting_weights_tone3"] = "🏋🏽‍♀️", ["woman_lifting_weights_medium_skin_tone"] = "🏋🏽‍♀️", ["woman_lifting_weights_tone4"] = "🏋🏾‍♀️", ["woman_lifting_weights_medium_dark_skin_tone"] = "🏋🏾‍♀️", ["woman_lifting_weights_tone5"] = "🏋🏿‍♀️", ["woman_lifting_weights_dark_skin_tone"] = "🏋🏿‍♀️", ["man_lifting_weights"] = "🏋️‍♂️", ["man_lifting_weights_tone1"] = "🏋🏻‍♂️", ["man_lifting_weights_light_skin_tone"] = "🏋🏻‍♂️", ["man_lifting_weights_tone2"] = "🏋🏼‍♂️", ["man_lifting_weights_medium_light_skin_tone"] = "🏋🏼‍♂️", ["man_lifting_weights_tone3"] = "🏋🏽‍♂️", ["man_lifting_weights_medium_skin_tone"] = "🏋🏽‍♂️", ["man_lifting_weights_tone4"] = "🏋🏾‍♂️", ["man_lifting_weights_medium_dark_skin_tone"] = "🏋🏾‍♂️", ["man_lifting_weights_tone5"] = "🏋🏿‍♂️", ["man_lifting_weights_dark_skin_tone"] = "🏋🏿‍♂️", ["people_wrestling"] = "🤼", ["wrestlers"] = "🤼", ["wrestling"] = "🤼", ["women_wrestling"] = "🤼‍♀️", ["men_wrestling"] = "🤼‍♂️", ["person_doing_cartwheel"] = "🤸", ["cartwheel"] = "🤸", ["person_doing_cartwheel_tone1"] = "🤸🏻", ["cartwheel_tone1"] = "🤸🏻", ["person_doing_cartwheel_tone2"] = "🤸🏼", ["cartwheel_tone2"] = "🤸🏼", ["person_doing_cartwheel_tone3"] = "🤸🏽", ["cartwheel_tone3"] = "🤸🏽", ["person_doing_cartwheel_tone4"] = "🤸🏾", ["cartwheel_tone4"] = "🤸🏾", ["person_doing_cartwheel_tone5"] = "🤸🏿", ["cartwheel_tone5"] = "🤸🏿", ["woman_cartwheeling"] = "🤸‍♀️", ["woman_cartwheeling_tone1"] = "🤸🏻‍♀️", ["woman_cartwheeling_light_skin_tone"] = "🤸🏻‍♀️", ["woman_cartwheeling_tone2"] = "🤸🏼‍♀️", ["woman_cartwheeling_medium_light_skin_tone"] = "🤸🏼‍♀️", ["woman_cartwheeling_tone3"] = "🤸🏽‍♀️", ["woman_cartwheeling_medium_skin_tone"] = "🤸🏽‍♀️", ["woman_cartwheeling_tone4"] = "🤸🏾‍♀️", ["woman_cartwheeling_medium_dark_skin_tone"] = "🤸🏾‍♀️", ["woman_cartwheeling_tone5"] = "🤸🏿‍♀️", ["woman_cartwheeling_dark_skin_tone"] = "🤸🏿‍♀️", ["man_cartwheeling"] = "🤸‍♂️", ["man_cartwheeling_tone1"] = "🤸🏻‍♂️", ["man_cartwheeling_light_skin_tone"] = "🤸🏻‍♂️", ["man_cartwheeling_tone2"] = "🤸🏼‍♂️", ["man_cartwheeling_medium_light_skin_tone"] = "🤸🏼‍♂️", ["man_cartwheeling_tone3"] = "🤸🏽‍♂️", ["man_cartwheeling_medium_skin_tone"] = "🤸🏽‍♂️", ["man_cartwheeling_tone4"] = "🤸🏾‍♂️", ["man_cartwheeling_medium_dark_skin_tone"] = "🤸🏾‍♂️", ["man_cartwheeling_tone5"] = "🤸🏿‍♂️", ["man_cartwheeling_dark_skin_tone"] = "🤸🏿‍♂️", ["person_bouncing_ball"] = "⛹️", ["basketball_player"] = "⛹️", ["person_with_ball"] = "⛹️", ["person_bouncing_ball_tone1"] = "⛹🏻", ["basketball_player_tone1"] = "⛹🏻", ["person_with_ball_tone1"] = "⛹🏻", ["person_bouncing_ball_tone2"] = "⛹🏼", ["basketball_player_tone2"] = "⛹🏼", ["person_with_ball_tone2"] = "⛹🏼", ["person_bouncing_ball_tone3"] = "⛹🏽", ["basketball_player_tone3"] = "⛹🏽", ["person_with_ball_tone3"] = "⛹🏽", ["person_bouncing_ball_tone4"] = "⛹🏾", ["basketball_player_tone4"] = "⛹🏾", ["person_with_ball_tone4"] = "⛹🏾", ["person_bouncing_ball_tone5"] = "⛹🏿", ["basketball_player_tone5"] = "⛹🏿", ["person_with_ball_tone5"] = "⛹🏿", ["woman_bouncing_ball"] = "⛹️‍♀️", ["woman_bouncing_ball_tone1"] = "⛹🏻‍♀️", ["woman_bouncing_ball_light_skin_tone"] = "⛹🏻‍♀️", ["woman_bouncing_ball_tone2"] = "⛹🏼‍♀️", ["woman_bouncing_ball_medium_light_skin_tone"] = "⛹🏼‍♀️", ["woman_bouncing_ball_tone3"] = "⛹🏽‍♀️", ["woman_bouncing_ball_medium_skin_tone"] = "⛹🏽‍♀️", ["woman_bouncing_ball_tone4"] = "⛹🏾‍♀️", ["woman_bouncing_ball_medium_dark_skin_tone"] = "⛹🏾‍♀️", ["woman_bouncing_ball_tone5"] = "⛹🏿‍♀️", ["woman_bouncing_ball_dark_skin_tone"] = "⛹🏿‍♀️", ["man_bouncing_ball"] = "⛹️‍♂️", ["man_bouncing_ball_tone1"] = "⛹🏻‍♂️", ["man_bouncing_ball_light_skin_tone"] = "⛹🏻‍♂️", ["man_bouncing_ball_tone2"] = "⛹🏼‍♂️", ["man_bouncing_ball_medium_light_skin_tone"] = "⛹🏼‍♂️", ["man_bouncing_ball_tone3"] = "⛹🏽‍♂️", ["man_bouncing_ball_medium_skin_tone"] = "⛹🏽‍♂️", ["man_bouncing_ball_tone4"] = "⛹🏾‍♂️", ["man_bouncing_ball_medium_dark_skin_tone"] = "⛹🏾‍♂️", ["man_bouncing_ball_tone5"] = "⛹🏿‍♂️", ["man_bouncing_ball_dark_skin_tone"] = "⛹🏿‍♂️", ["person_fencing"] = "🤺", ["fencer"] = "🤺", ["fencing"] = "🤺", ["person_playing_handball"] = "🤾", ["handball"] = "🤾", ["person_playing_handball_tone1"] = "🤾🏻", ["handball_tone1"] = "🤾🏻", ["person_playing_handball_tone2"] = "🤾🏼", ["handball_tone2"] = "🤾🏼", ["person_playing_handball_tone3"] = "🤾🏽", ["handball_tone3"] = "🤾🏽", ["person_playing_handball_tone4"] = "🤾🏾", ["handball_tone4"] = "🤾🏾", ["person_playing_handball_tone5"] = "🤾🏿", ["handball_tone5"] = "🤾🏿", ["woman_playing_handball"] = "🤾‍♀️", ["woman_playing_handball_tone1"] = "🤾🏻‍♀️", ["woman_playing_handball_light_skin_tone"] = "🤾🏻‍♀️", ["woman_playing_handball_tone2"] = "🤾🏼‍♀️", ["woman_playing_handball_medium_light_skin_tone"] = "🤾🏼‍♀️", ["woman_playing_handball_tone3"] = "🤾🏽‍♀️", ["woman_playing_handball_medium_skin_tone"] = "🤾🏽‍♀️", ["woman_playing_handball_tone4"] = "🤾🏾‍♀️", ["woman_playing_handball_medium_dark_skin_tone"] = "🤾🏾‍♀️", ["woman_playing_handball_tone5"] = "🤾🏿‍♀️", ["woman_playing_handball_dark_skin_tone"] = "🤾🏿‍♀️", ["man_playing_handball"] = "🤾‍♂️", ["man_playing_handball_tone1"] = "🤾🏻‍♂️", ["man_playing_handball_light_skin_tone"] = "🤾🏻‍♂️", ["man_playing_handball_tone2"] = "🤾🏼‍♂️", ["man_playing_handball_medium_light_skin_tone"] = "🤾🏼‍♂️", ["man_playing_handball_tone3"] = "🤾🏽‍♂️", ["man_playing_handball_medium_skin_tone"] = "🤾🏽‍♂️", ["man_playing_handball_tone4"] = "🤾🏾‍♂️", ["man_playing_handball_medium_dark_skin_tone"] = "🤾🏾‍♂️", ["man_playing_handball_tone5"] = "🤾🏿‍♂️", ["man_playing_handball_dark_skin_tone"] = "🤾🏿‍♂️", ["person_golfing"] = "🏌️", ["golfer"] = "🏌️", ["person_golfing_tone1"] = "🏌🏻", ["person_golfing_light_skin_tone"] = "🏌🏻", ["person_golfing_tone2"] = "🏌🏼", ["person_golfing_medium_light_skin_tone"] = "🏌🏼", ["person_golfing_tone3"] = "🏌🏽", ["person_golfing_medium_skin_tone"] = "🏌🏽", ["person_golfing_tone4"] = "🏌🏾", ["person_golfing_medium_dark_skin_tone"] = "🏌🏾", ["person_golfing_tone5"] = "🏌🏿", ["person_golfing_dark_skin_tone"] = "🏌🏿", ["woman_golfing"] = "🏌️‍♀️", ["woman_golfing_tone1"] = "🏌🏻‍♀️", ["woman_golfing_light_skin_tone"] = "🏌🏻‍♀️", ["woman_golfing_tone2"] = "🏌🏼‍♀️", ["woman_golfing_medium_light_skin_tone"] = "🏌🏼‍♀️", ["woman_golfing_tone3"] = "🏌🏽‍♀️", ["woman_golfing_medium_skin_tone"] = "🏌🏽‍♀️", ["woman_golfing_tone4"] = "🏌🏾‍♀️", ["woman_golfing_medium_dark_skin_tone"] = "🏌🏾‍♀️", ["woman_golfing_tone5"] = "🏌🏿‍♀️", ["woman_golfing_dark_skin_tone"] = "🏌🏿‍♀️", ["man_golfing"] = "🏌️‍♂️", ["man_golfing_tone1"] = "🏌🏻‍♂️", ["man_golfing_light_skin_tone"] = "🏌🏻‍♂️", ["man_golfing_tone2"] = "🏌🏼‍♂️", ["man_golfing_medium_light_skin_tone"] = "🏌🏼‍♂️", ["man_golfing_tone3"] = "🏌🏽‍♂️", ["man_golfing_medium_skin_tone"] = "🏌🏽‍♂️", ["man_golfing_tone4"] = "🏌🏾‍♂️", ["man_golfing_medium_dark_skin_tone"] = "🏌🏾‍♂️", ["man_golfing_tone5"] = "🏌🏿‍♂️", ["man_golfing_dark_skin_tone"] = "🏌🏿‍♂️", ["horse_racing"] = "🏇", ["horse_racing_tone1"] = "🏇🏻", ["horse_racing_tone2"] = "🏇🏼", ["horse_racing_tone3"] = "🏇🏽", ["horse_racing_tone4"] = "🏇🏾", ["horse_racing_tone5"] = "🏇🏿", ["person_in_lotus_position"] = "🧘", ["person_in_lotus_position_tone1"] = "🧘🏻", ["person_in_lotus_position_light_skin_tone"] = "🧘🏻", ["person_in_lotus_position_tone2"] = "🧘🏼", ["person_in_lotus_position_medium_light_skin_tone"] = "🧘🏼", ["person_in_lotus_position_tone3"] = "🧘🏽", ["person_in_lotus_position_medium_skin_tone"] = "🧘🏽", ["person_in_lotus_position_tone4"] = "🧘🏾", ["person_in_lotus_position_medium_dark_skin_tone"] = "🧘🏾", ["person_in_lotus_position_tone5"] = "🧘🏿", ["person_in_lotus_position_dark_skin_tone"] = "🧘🏿", ["woman_in_lotus_position"] = "🧘‍♀️", ["woman_in_lotus_position_tone1"] = "🧘🏻‍♀️", ["woman_in_lotus_position_light_skin_tone"] = "🧘🏻‍♀️", ["woman_in_lotus_position_tone2"] = "🧘🏼‍♀️", ["woman_in_lotus_position_medium_light_skin_tone"] = "🧘🏼‍♀️", ["woman_in_lotus_position_tone3"] = "🧘🏽‍♀️", ["woman_in_lotus_position_medium_skin_tone"] = "🧘🏽‍♀️", ["woman_in_lotus_position_tone4"] = "🧘🏾‍♀️", ["woman_in_lotus_position_medium_dark_skin_tone"] = "🧘🏾‍♀️", ["woman_in_lotus_position_tone5"] = "🧘🏿‍♀️", ["woman_in_lotus_position_dark_skin_tone"] = "🧘🏿‍♀️", ["man_in_lotus_position"] = "🧘‍♂️", ["man_in_lotus_position_tone1"] = "🧘🏻‍♂️", ["man_in_lotus_position_light_skin_tone"] = "🧘🏻‍♂️", ["man_in_lotus_position_tone2"] = "🧘🏼‍♂️", ["man_in_lotus_position_medium_light_skin_tone"] = "🧘🏼‍♂️", ["man_in_lotus_position_tone3"] = "🧘🏽‍♂️", ["man_in_lotus_position_medium_skin_tone"] = "🧘🏽‍♂️", ["man_in_lotus_position_tone4"] = "🧘🏾‍♂️", ["man_in_lotus_position_medium_dark_skin_tone"] = "🧘🏾‍♂️", ["man_in_lotus_position_tone5"] = "🧘🏿‍♂️", ["man_in_lotus_position_dark_skin_tone"] = "🧘🏿‍♂️", ["person_surfing"] = "🏄", ["surfer"] = "🏄", ["person_surfing_tone1"] = "🏄🏻", ["surfer_tone1"] = "🏄🏻", ["person_surfing_tone2"] = "🏄🏼", ["surfer_tone2"] = "🏄🏼", ["person_surfing_tone3"] = "🏄🏽", ["surfer_tone3"] = "🏄🏽", ["person_surfing_tone4"] = "🏄🏾", ["surfer_tone4"] = "🏄🏾", ["person_surfing_tone5"] = "🏄🏿", ["surfer_tone5"] = "🏄🏿", ["woman_surfing"] = "🏄‍♀️", ["woman_surfing_tone1"] = "🏄🏻‍♀️", ["woman_surfing_light_skin_tone"] = "🏄🏻‍♀️", ["woman_surfing_tone2"] = "🏄🏼‍♀️", ["woman_surfing_medium_light_skin_tone"] = "🏄🏼‍♀️", ["woman_surfing_tone3"] = "🏄🏽‍♀️", ["woman_surfing_medium_skin_tone"] = "🏄🏽‍♀️", ["woman_surfing_tone4"] = "🏄🏾‍♀️", ["woman_surfing_medium_dark_skin_tone"] = "🏄🏾‍♀️", ["woman_surfing_tone5"] = "🏄🏿‍♀️", ["woman_surfing_dark_skin_tone"] = "🏄🏿‍♀️", ["man_surfing"] = "🏄‍♂️", ["man_surfing_tone1"] = "🏄🏻‍♂️", ["man_surfing_light_skin_tone"] = "🏄🏻‍♂️", ["man_surfing_tone2"] = "🏄🏼‍♂️", ["man_surfing_medium_light_skin_tone"] = "🏄🏼‍♂️", ["man_surfing_tone3"] = "🏄🏽‍♂️", ["man_surfing_medium_skin_tone"] = "🏄🏽‍♂️", ["man_surfing_tone4"] = "🏄🏾‍♂️", ["man_surfing_medium_dark_skin_tone"] = "🏄🏾‍♂️", ["man_surfing_tone5"] = "🏄🏿‍♂️", ["man_surfing_dark_skin_tone"] = "🏄🏿‍♂️", ["person_swimming"] = "🏊", ["swimmer"] = "🏊", ["person_swimming_tone1"] = "🏊🏻", ["swimmer_tone1"] = "🏊🏻", ["person_swimming_tone2"] = "🏊🏼", ["swimmer_tone2"] = "🏊🏼", ["person_swimming_tone3"] = "🏊🏽", ["swimmer_tone3"] = "🏊🏽", ["person_swimming_tone4"] = "🏊🏾", ["swimmer_tone4"] = "🏊🏾", ["person_swimming_tone5"] = "🏊🏿", ["swimmer_tone5"] = "🏊🏿", ["woman_swimming"] = "🏊‍♀️", ["woman_swimming_tone1"] = "🏊🏻‍♀️", ["woman_swimming_light_skin_tone"] = "🏊🏻‍♀️", ["woman_swimming_tone2"] = "🏊🏼‍♀️", ["woman_swimming_medium_light_skin_tone"] = "🏊🏼‍♀️", ["woman_swimming_tone3"] = "🏊🏽‍♀️", ["woman_swimming_medium_skin_tone"] = "🏊🏽‍♀️", ["woman_swimming_tone4"] = "🏊🏾‍♀️", ["woman_swimming_medium_dark_skin_tone"] = "🏊🏾‍♀️", ["woman_swimming_tone5"] = "🏊🏿‍♀️", ["woman_swimming_dark_skin_tone"] = "🏊🏿‍♀️", ["man_swimming"] = "🏊‍♂️", ["man_swimming_tone1"] = "🏊🏻‍♂️", ["man_swimming_light_skin_tone"] = "🏊🏻‍♂️", ["man_swimming_tone2"] = "🏊🏼‍♂️", ["man_swimming_medium_light_skin_tone"] = "🏊🏼‍♂️", ["man_swimming_tone3"] = "🏊🏽‍♂️", ["man_swimming_medium_skin_tone"] = "🏊🏽‍♂️", ["man_swimming_tone4"] = "🏊🏾‍♂️", ["man_swimming_medium_dark_skin_tone"] = "🏊🏾‍♂️", ["man_swimming_tone5"] = "🏊🏿‍♂️", ["man_swimming_dark_skin_tone"] = "🏊🏿‍♂️", ["person_playing_water_polo"] = "🤽", ["water_polo"] = "🤽", ["person_playing_water_polo_tone1"] = "🤽🏻", ["water_polo_tone1"] = "🤽🏻", ["person_playing_water_polo_tone2"] = "🤽🏼", ["water_polo_tone2"] = "🤽🏼", ["person_playing_water_polo_tone3"] = "🤽🏽", ["water_polo_tone3"] = "🤽🏽", ["person_playing_water_polo_tone4"] = "🤽🏾", ["water_polo_tone4"] = "🤽🏾", ["person_playing_water_polo_tone5"] = "🤽🏿", ["water_polo_tone5"] = "🤽🏿", ["woman_playing_water_polo"] = "🤽‍♀️", ["woman_playing_water_polo_tone1"] = "🤽🏻‍♀️", ["woman_playing_water_polo_light_skin_tone"] = "🤽🏻‍♀️", ["woman_playing_water_polo_tone2"] = "🤽🏼‍♀️", ["woman_playing_water_polo_medium_light_skin_tone"] = "🤽🏼‍♀️", ["woman_playing_water_polo_tone3"] = "🤽🏽‍♀️", ["woman_playing_water_polo_medium_skin_tone"] = "🤽🏽‍♀️", ["woman_playing_water_polo_tone4"] = "🤽🏾‍♀️", ["woman_playing_water_polo_medium_dark_skin_tone"] = "🤽🏾‍♀️", ["woman_playing_water_polo_tone5"] = "🤽🏿‍♀️", ["woman_playing_water_polo_dark_skin_tone"] = "🤽🏿‍♀️", ["man_playing_water_polo"] = "🤽‍♂️", ["man_playing_water_polo_tone1"] = "🤽🏻‍♂️", ["man_playing_water_polo_light_skin_tone"] = "🤽🏻‍♂️", ["man_playing_water_polo_tone2"] = "🤽🏼‍♂️", ["man_playing_water_polo_medium_light_skin_tone"] = "🤽🏼‍♂️", ["man_playing_water_polo_tone3"] = "🤽🏽‍♂️", ["man_playing_water_polo_medium_skin_tone"] = "🤽🏽‍♂️", ["man_playing_water_polo_tone4"] = "🤽🏾‍♂️", ["man_playing_water_polo_medium_dark_skin_tone"] = "🤽🏾‍♂️", ["man_playing_water_polo_tone5"] = "🤽🏿‍♂️", ["man_playing_water_polo_dark_skin_tone"] = "🤽🏿‍♂️", ["person_rowing_boat"] = "🚣", ["rowboat"] = "🚣", ["person_rowing_boat_tone1"] = "🚣🏻", ["rowboat_tone1"] = "🚣🏻", ["person_rowing_boat_tone2"] = "🚣🏼", ["rowboat_tone2"] = "🚣🏼", ["person_rowing_boat_tone3"] = "🚣🏽", ["rowboat_tone3"] = "🚣🏽", ["person_rowing_boat_tone4"] = "🚣🏾", ["rowboat_tone4"] = "🚣🏾", ["person_rowing_boat_tone5"] = "🚣🏿", ["rowboat_tone5"] = "🚣🏿", ["woman_rowing_boat"] = "🚣‍♀️", ["woman_rowing_boat_tone1"] = "🚣🏻‍♀️", ["woman_rowing_boat_light_skin_tone"] = "🚣🏻‍♀️", ["woman_rowing_boat_tone2"] = "🚣🏼‍♀️", ["woman_rowing_boat_medium_light_skin_tone"] = "🚣🏼‍♀️", ["woman_rowing_boat_tone3"] = "🚣🏽‍♀️", ["woman_rowing_boat_medium_skin_tone"] = "🚣🏽‍♀️", ["woman_rowing_boat_tone4"] = "🚣🏾‍♀️", ["woman_rowing_boat_medium_dark_skin_tone"] = "🚣🏾‍♀️", ["woman_rowing_boat_tone5"] = "🚣🏿‍♀️", ["woman_rowing_boat_dark_skin_tone"] = "🚣🏿‍♀️", ["man_rowing_boat"] = "🚣‍♂️", ["man_rowing_boat_tone1"] = "🚣🏻‍♂️", ["man_rowing_boat_light_skin_tone"] = "🚣🏻‍♂️", ["man_rowing_boat_tone2"] = "🚣🏼‍♂️", ["man_rowing_boat_medium_light_skin_tone"] = "🚣🏼‍♂️", ["man_rowing_boat_tone3"] = "🚣🏽‍♂️", ["man_rowing_boat_medium_skin_tone"] = "🚣🏽‍♂️", ["man_rowing_boat_tone4"] = "🚣🏾‍♂️", ["man_rowing_boat_medium_dark_skin_tone"] = "🚣🏾‍♂️", ["man_rowing_boat_tone5"] = "🚣🏿‍♂️", ["man_rowing_boat_dark_skin_tone"] = "🚣🏿‍♂️", ["person_climbing"] = "🧗", ["person_climbing_tone1"] = "🧗🏻", ["person_climbing_light_skin_tone"] = "🧗🏻", ["person_climbing_tone2"] = "🧗🏼", ["person_climbing_medium_light_skin_tone"] = "🧗🏼", ["person_climbing_tone3"] = "🧗🏽", ["person_climbing_medium_skin_tone"] = "🧗🏽", ["person_climbing_tone4"] = "🧗🏾", ["person_climbing_medium_dark_skin_tone"] = "🧗🏾", ["person_climbing_tone5"] = "🧗🏿", ["person_climbing_dark_skin_tone"] = "🧗🏿", ["woman_climbing"] = "🧗‍♀️", ["woman_climbing_tone1"] = "🧗🏻‍♀️", ["woman_climbing_light_skin_tone"] = "🧗🏻‍♀️", ["woman_climbing_tone2"] = "🧗🏼‍♀️", ["woman_climbing_medium_light_skin_tone"] = "🧗🏼‍♀️", ["woman_climbing_tone3"] = "🧗🏽‍♀️", ["woman_climbing_medium_skin_tone"] = "🧗🏽‍♀️", ["woman_climbing_tone4"] = "🧗🏾‍♀️", ["woman_climbing_medium_dark_skin_tone"] = "🧗🏾‍♀️", ["woman_climbing_tone5"] = "🧗🏿‍♀️", ["woman_climbing_dark_skin_tone"] = "🧗🏿‍♀️", ["man_climbing"] = "🧗‍♂️", ["man_climbing_tone1"] = "🧗🏻‍♂️", ["man_climbing_light_skin_tone"] = "🧗🏻‍♂️", ["man_climbing_tone2"] = "🧗🏼‍♂️", ["man_climbing_medium_light_skin_tone"] = "🧗🏼‍♂️", ["man_climbing_tone3"] = "🧗🏽‍♂️", ["man_climbing_medium_skin_tone"] = "🧗🏽‍♂️", ["man_climbing_tone4"] = "🧗🏾‍♂️", ["man_climbing_medium_dark_skin_tone"] = "🧗🏾‍♂️", ["man_climbing_tone5"] = "🧗🏿‍♂️", ["man_climbing_dark_skin_tone"] = "🧗🏿‍♂️", ["person_mountain_biking"] = "🚵", ["mountain_bicyclist"] = "🚵", ["person_mountain_biking_tone1"] = "🚵🏻", ["mountain_bicyclist_tone1"] = "🚵🏻", ["person_mountain_biking_tone2"] = "🚵🏼", ["mountain_bicyclist_tone2"] = "🚵🏼", ["person_mountain_biking_tone3"] = "🚵🏽", ["mountain_bicyclist_tone3"] = "🚵🏽", ["person_mountain_biking_tone4"] = "🚵🏾", ["mountain_bicyclist_tone4"] = "🚵🏾", ["person_mountain_biking_tone5"] = "🚵🏿", ["mountain_bicyclist_tone5"] = "🚵🏿", ["woman_mountain_biking"] = "🚵‍♀️", ["woman_mountain_biking_tone1"] = "🚵🏻‍♀️", ["woman_mountain_biking_light_skin_tone"] = "🚵🏻‍♀️", ["woman_mountain_biking_tone2"] = "🚵🏼‍♀️", ["woman_mountain_biking_medium_light_skin_tone"] = "🚵🏼‍♀️", ["woman_mountain_biking_tone3"] = "🚵🏽‍♀️", ["woman_mountain_biking_medium_skin_tone"] = "🚵🏽‍♀️", ["woman_mountain_biking_tone4"] = "🚵🏾‍♀️", ["woman_mountain_biking_medium_dark_skin_tone"] = "🚵🏾‍♀️", ["woman_mountain_biking_tone5"] = "🚵🏿‍♀️", ["woman_mountain_biking_dark_skin_tone"] = "🚵🏿‍♀️", ["man_mountain_biking"] = "🚵‍♂️", ["man_mountain_biking_tone1"] = "🚵🏻‍♂️", ["man_mountain_biking_light_skin_tone"] = "🚵🏻‍♂️", ["man_mountain_biking_tone2"] = "🚵🏼‍♂️", ["man_mountain_biking_medium_light_skin_tone"] = "🚵🏼‍♂️", ["man_mountain_biking_tone3"] = "🚵🏽‍♂️", ["man_mountain_biking_medium_skin_tone"] = "🚵🏽‍♂️", ["man_mountain_biking_tone4"] = "🚵🏾‍♂️", ["man_mountain_biking_medium_dark_skin_tone"] = "🚵🏾‍♂️", ["man_mountain_biking_tone5"] = "🚵🏿‍♂️", ["man_mountain_biking_dark_skin_tone"] = "🚵🏿‍♂️", ["person_biking"] = "🚴", ["bicyclist"] = "🚴", ["person_biking_tone1"] = "🚴🏻", ["bicyclist_tone1"] = "🚴🏻", ["person_biking_tone2"] = "🚴🏼", ["bicyclist_tone2"] = "🚴🏼", ["person_biking_tone3"] = "🚴🏽", ["bicyclist_tone3"] = "🚴🏽", ["person_biking_tone4"] = "🚴🏾", ["bicyclist_tone4"] = "🚴🏾", ["person_biking_tone5"] = "🚴🏿", ["bicyclist_tone5"] = "🚴🏿", ["woman_biking"] = "🚴‍♀️", ["woman_biking_tone1"] = "🚴🏻‍♀️", ["woman_biking_light_skin_tone"] = "🚴🏻‍♀️", ["woman_biking_tone2"] = "🚴🏼‍♀️", ["woman_biking_medium_light_skin_tone"] = "🚴🏼‍♀️", ["woman_biking_tone3"] = "🚴🏽‍♀️", ["woman_biking_medium_skin_tone"] = "🚴🏽‍♀️", ["woman_biking_tone4"] = "🚴🏾‍♀️", ["woman_biking_medium_dark_skin_tone"] = "🚴🏾‍♀️", ["woman_biking_tone5"] = "🚴🏿‍♀️", ["woman_biking_dark_skin_tone"] = "🚴🏿‍♀️", ["man_biking"] = "🚴‍♂️", ["man_biking_tone1"] = "🚴🏻‍♂️", ["man_biking_light_skin_tone"] = "🚴🏻‍♂️", ["man_biking_tone2"] = "🚴🏼‍♂️", ["man_biking_medium_light_skin_tone"] = "🚴🏼‍♂️", ["man_biking_tone3"] = "🚴🏽‍♂️", ["man_biking_medium_skin_tone"] = "🚴🏽‍♂️", ["man_biking_tone4"] = "🚴🏾‍♂️", ["man_biking_medium_dark_skin_tone"] = "🚴🏾‍♂️", ["man_biking_tone5"] = "🚴🏿‍♂️", ["man_biking_dark_skin_tone"] = "🚴🏿‍♂️", ["trophy"] = "🏆", ["first_place"] = "🥇", ["first_place_medal"] = "🥇", ["second_place"] = "🥈", ["second_place_medal"] = "🥈", ["third_place"] = "🥉", ["third_place_medal"] = "🥉", ["medal"] = "🏅", ["sports_medal"] = "🏅", ["military_medal"] = "🎖️", ["rosette"] = "🏵️", ["reminder_ribbon"] = "🎗️", ["ticket"] = "🎫", ["tickets"] = "🎟️", ["admission_tickets"] = "🎟️", ["circus_tent"] = "🎪", ["person_juggling"] = "🤹", ["juggling"] = "🤹", ["juggler"] = "🤹", ["person_juggling_tone1"] = "🤹🏻", ["juggling_tone1"] = "🤹🏻", ["juggler_tone1"] = "🤹🏻", ["person_juggling_tone2"] = "🤹🏼", ["juggling_tone2"] = "🤹🏼", ["juggler_tone2"] = "🤹🏼", ["person_juggling_tone3"] = "🤹🏽", ["juggling_tone3"] = "🤹🏽", ["juggler_tone3"] = "🤹🏽", ["person_juggling_tone4"] = "🤹🏾", ["juggling_tone4"] = "🤹🏾", ["juggler_tone4"] = "🤹🏾", ["person_juggling_tone5"] = "🤹🏿", ["juggling_tone5"] = "🤹🏿", ["juggler_tone5"] = "🤹🏿", ["woman_juggling"] = "🤹‍♀️", ["woman_juggling_tone1"] = "🤹🏻‍♀️", ["woman_juggling_light_skin_tone"] = "🤹🏻‍♀️", ["woman_juggling_tone2"] = "🤹🏼‍♀️", ["woman_juggling_medium_light_skin_tone"] = "🤹🏼‍♀️", ["woman_juggling_tone3"] = "🤹🏽‍♀️", ["woman_juggling_medium_skin_tone"] = "🤹🏽‍♀️", ["woman_juggling_tone4"] = "🤹🏾‍♀️", ["woman_juggling_medium_dark_skin_tone"] = "🤹🏾‍♀️", ["woman_juggling_tone5"] = "🤹🏿‍♀️", ["woman_juggling_dark_skin_tone"] = "🤹🏿‍♀️", ["man_juggling"] = "🤹‍♂️", ["man_juggling_tone1"] = "🤹🏻‍♂️", ["man_juggling_light_skin_tone"] = "🤹🏻‍♂️", ["man_juggling_tone2"] = "🤹🏼‍♂️", ["man_juggling_medium_light_skin_tone"] = "🤹🏼‍♂️", ["man_juggling_tone3"] = "🤹🏽‍♂️", ["man_juggling_medium_skin_tone"] = "🤹🏽‍♂️", ["man_juggling_tone4"] = "🤹🏾‍♂️", ["man_juggling_medium_dark_skin_tone"] = "🤹🏾‍♂️", ["man_juggling_tone5"] = "🤹🏿‍♂️", ["man_juggling_dark_skin_tone"] = "🤹🏿‍♂️", ["performing_arts"] = "🎭", ["ballet_shoes"] = "🩰", ["art"] = "🎨", ["clapper"] = "🎬", ["microphone"] = "🎤", ["headphones"] = "🎧", ["musical_score"] = "🎼", ["musical_keyboard"] = "🎹", ["drum"] = "🥁", ["drum_with_drumsticks"] = "🥁", ["long_drum"] = "🪘", ["saxophone"] = "🎷", ["trumpet"] = "🎺", ["guitar"] = "🎸", ["banjo"] = "🪕", ["violin"] = "🎻", ["accordion"] = "🪗", ["game_die"] = "🎲", ["chess_pawn"] = "♟️", ["dart"] = "🎯", ["bowling"] = "🎳", ["video_game"] = "🎮", ["slot_machine"] = "🎰", ["jigsaw"] = "🧩", ["red_car"] = "🚗", ["taxi"] = "🚕", ["blue_car"] = "🚙", ["pickup_truck"] = "🛻", ["bus"] = "🚌", ["trolleybus"] = "🚎", ["race_car"] = "🏎️", ["racing_car"] = "🏎️", ["police_car"] = "🚓", ["ambulance"] = "🚑", ["fire_engine"] = "🚒", ["minibus"] = "🚐", ["truck"] = "🚚", ["articulated_lorry"] = "🚛", ["tractor"] = "🚜", ["probing_cane"] = "🦯", ["manual_wheelchair"] = "🦽", ["motorized_wheelchair"] = "🦼", ["scooter"] = "🛴", ["bike"] = "🚲", ["motor_scooter"] = "🛵", ["motorbike"] = "🛵", ["motorcycle"] = "🏍️", ["racing_motorcycle"] = "🏍️", ["auto_rickshaw"] = "🛺", ["rotating_light"] = "🚨", ["oncoming_police_car"] = "🚔", ["oncoming_bus"] = "🚍", ["oncoming_automobile"] = "🚘", ["oncoming_taxi"] = "🚖", ["aerial_tramway"] = "🚡", ["mountain_cableway"] = "🚠", ["suspension_railway"] = "🚟", ["railway_car"] = "🚃", ["train"] = "🚋", ["mountain_railway"] = "🚞", ["monorail"] = "🚝", ["bullettrain_side"] = "🚄", ["bullettrain_front"] = "🚅", ["light_rail"] = "🚈", ["steam_locomotive"] = "🚂", ["train2"] = "🚆", ["metro"] = "🚇", ["tram"] = "🚊", ["station"] = "🚉", ["airplane"] = "✈️", ["airplane_departure"] = "🛫", ["airplane_arriving"] = "🛬", ["airplane_small"] = "🛩️", ["small_airplane"] = "🛩️", ["seat"] = "💺", ["satellite_orbital"] = "🛰️", ["rocket"] = "🚀", ["flying_saucer"] = "🛸", ["helicopter"] = "🚁", ["canoe"] = "🛶", ["kayak"] = "🛶", ["sailboat"] = "⛵", ["speedboat"] = "🚤", ["motorboat"] = "🛥️", ["cruise_ship"] = "🛳️", ["passenger_ship"] = "🛳️", ["ferry"] = "⛴️", ["ship"] = "🚢", ["anchor"] = "⚓", ["fuelpump"] = "⛽", ["construction"] = "🚧", ["vertical_traffic_light"] = "🚦", ["traffic_light"] = "🚥", ["busstop"] = "🚏", ["map"] = "🗺️", ["world_map"] = "🗺️", ["moyai"] = "🗿", ["statue_of_liberty"] = "🗽", ["tokyo_tower"] = "🗼", ["european_castle"] = "🏰", ["japanese_castle"] = "🏯", ["stadium"] = "🏟️", ["ferris_wheel"] = "🎡", ["roller_coaster"] = "🎢", ["carousel_horse"] = "🎠", ["fountain"] = "⛲", ["beach_umbrella"] = "⛱️", ["umbrella_on_ground"] = "⛱️", ["beach"] = "🏖️", ["beach_with_umbrella"] = "🏖️", ["island"] = "🏝️", ["desert_island"] = "🏝️", ["desert"] = "🏜️", ["volcano"] = "🌋", ["mountain"] = "⛰️", ["mountain_snow"] = "🏔️", ["snow_capped_mountain"] = "🏔️", ["mount_fuji"] = "🗻", ["camping"] = "🏕️", ["tent"] = "⛺", ["house"] = "🏠", ["house_with_garden"] = "🏡", ["homes"] = "🏘️", ["house_buildings"] = "🏘️", ["house_abandoned"] = "🏚️", ["derelict_house_building"] = "🏚️", ["hut"] = "🛖", ["construction_site"] = "🏗️", ["building_construction"] = "🏗️", ["factory"] = "🏭", ["office"] = "🏢", ["department_store"] = "🏬", ["post_office"] = "🏣", ["european_post_office"] = "🏤", ["hospital"] = "🏥", ["bank"] = "🏦", ["hotel"] = "🏨", ["convenience_store"] = "🏪", ["school"] = "🏫", ["love_hotel"] = "🏩", ["wedding"] = "💒", ["classical_building"] = "🏛️", ["church"] = "⛪", ["mosque"] = "🕌", ["synagogue"] = "🕍", ["hindu_temple"] = "🛕", ["kaaba"] = "🕋", ["shinto_shrine"] = "⛩️", ["railway_track"] = "🛤️", ["railroad_track"] = "🛤️", ["motorway"] = "🛣️", ["japan"] = "🗾", ["rice_scene"] = "🎑", ["park"] = "🏞️", ["national_park"] = "🏞️", ["sunrise"] = "🌅", ["sunrise_over_mountains"] = "🌄", ["stars"] = "🌠", ["sparkler"] = "🎇", ["fireworks"] = "🎆", ["city_sunset"] = "🌇", ["city_sunrise"] = "🌇", ["city_dusk"] = "🌆", ["cityscape"] = "🏙️", ["night_with_stars"] = "🌃", ["milky_way"] = "🌌", ["bridge_at_night"] = "🌉", ["foggy"] = "🌁", ["watch"] = "⌚", ["mobile_phone"] = "📱", ["iphone"] = "📱", ["calling"] = "📲", ["computer"] = "💻", ["keyboard"] = "⌨️", ["desktop"] = "🖥️", ["desktop_computer"] = "🖥️", ["printer"] = "🖨️", ["mouse_three_button"] = "🖱️", ["three_button_mouse"] = "🖱️", ["trackball"] = "🖲️", ["joystick"] = "🕹️", ["compression"] = "🗜️", ["minidisc"] = "💽", ["floppy_disk"] = "💾", ["cd"] = "💿", ["dvd"] = "📀", ["vhs"] = "📼", ["camera"] = "📷", ["camera_with_flash"] = "📸", ["video_camera"] = "📹", ["movie_camera"] = "🎥", ["projector"] = "📽️", ["film_projector"] = "📽️", ["film_frames"] = "🎞️", ["telephone_receiver"] = "📞", ["telephone"] = "☎️", ["pager"] = "📟", ["fax"] = "📠", ["tv"] = "📺", ["radio"] = "📻", ["microphone2"] = "🎙️", ["studio_microphone"] = "🎙️", ["level_slider"] = "🎚️", ["control_knobs"] = "🎛️", ["compass"] = "🧭", ["stopwatch"] = "⏱️", ["timer"] = "⏲️", ["timer_clock"] = "⏲️", ["alarm_clock"] = "⏰", ["clock"] = "🕰️", ["mantlepiece_clock"] = "🕰️", ["hourglass"] = "⌛", ["hourglass_flowing_sand"] = "⏳", ["satellite"] = "📡", ["battery"] = "🔋", ["electric_plug"] = "🔌", ["bulb"] = "💡", ["flashlight"] = "🔦", ["candle"] = "🕯️", ["diya_lamp"] = "🪔", ["fire_extinguisher"] = "🧯", ["oil"] = "🛢️", ["oil_drum"] = "🛢️", ["money_with_wings"] = "💸", ["dollar"] = "💵", ["yen"] = "💴", ["euro"] = "💶", ["pound"] = "💷", ["coin"] = "🪙", ["moneybag"] = "💰", ["credit_card"] = "💳", ["gem"] = "💎", ["scales"] = "⚖️", ["ladder"] = "🪜", ["toolbox"] = "🧰", ["screwdriver"] = "🪛", ["wrench"] = "🔧", ["hammer"] = "🔨", ["hammer_pick"] = "⚒️", ["hammer_and_pick"] = "⚒️", ["tools"] = "🛠️", ["hammer_and_wrench"] = "🛠️", ["pick"] = "⛏️", ["nut_and_bolt"] = "🔩", ["gear"] = "⚙️", ["bricks"] = "🧱", ["chains"] = "⛓️", ["hook"] = "🪝", ["knot"] = "🪢", ["magnet"] = "🧲", ["gun"] = "🔫", ["bomb"] = "💣", ["firecracker"] = "🧨", ["axe"] = "🪓", ["carpentry_saw"] = "🪚", ["knife"] = "🔪", ["dagger"] = "🗡️", ["dagger_knife"] = "🗡️", ["crossed_swords"] = "⚔️", ["shield"] = "🛡️", ["smoking"] = "🚬", ["coffin"] = "⚰️", ["headstone"] = "🪦", ["urn"] = "⚱️", ["funeral_urn"] = "⚱️", ["amphora"] = "🏺", ["magic_wand"] = "🪄", ["crystal_ball"] = "🔮", ["prayer_beads"] = "📿", ["nazar_amulet"] = "🧿", ["barber"] = "💈", ["alembic"] = "⚗️", ["telescope"] = "🔭", ["microscope"] = "🔬", ["hole"] = "🕳️", ["window"] = "🪟", ["adhesive_bandage"] = "🩹", ["stethoscope"] = "🩺", ["pill"] = "💊", ["syringe"] = "💉", ["drop_of_blood"] = "🩸", ["dna"] = "🧬", ["microbe"] = "🦠", ["petri_dish"] = "🧫", ["test_tube"] = "🧪", ["thermometer"] = "🌡️", ["mouse_trap"] = "🪤", ["broom"] = "🧹", ["basket"] = "🧺", ["sewing_needle"] = "🪡", ["roll_of_paper"] = "🧻", ["toilet"] = "🚽", ["plunger"] = "🪠", ["bucket"] = "🪣", ["potable_water"] = "🚰", ["shower"] = "🚿", ["bathtub"] = "🛁", ["bath"] = "🛀", ["bath_tone1"] = "🛀🏻", ["bath_tone2"] = "🛀🏼", ["bath_tone3"] = "🛀🏽", ["bath_tone4"] = "🛀🏾", ["bath_tone5"] = "🛀🏿", ["toothbrush"] = "🪥", ["soap"] = "🧼", ["razor"] = "🪒", ["sponge"] = "🧽", ["squeeze_bottle"] = "🧴", ["bellhop"] = "🛎️", ["bellhop_bell"] = "🛎️", ["key"] = "🔑", ["key2"] = "🗝️", ["old_key"] = "🗝️", ["door"] = "🚪", ["chair"] = "🪑", ["mirror"] = "🪞", ["couch"] = "🛋️", ["couch_and_lamp"] = "🛋️", ["bed"] = "🛏️", ["sleeping_accommodation"] = "🛌", ["person_in_bed_tone1"] = "🛌🏻", ["person_in_bed_light_skin_tone"] = "🛌🏻", ["person_in_bed_tone2"] = "🛌🏼", ["person_in_bed_medium_light_skin_tone"] = "🛌🏼", ["person_in_bed_tone3"] = "🛌🏽", ["person_in_bed_medium_skin_tone"] = "🛌🏽", ["person_in_bed_tone4"] = "🛌🏾", ["person_in_bed_medium_dark_skin_tone"] = "🛌🏾", ["person_in_bed_tone5"] = "🛌🏿", ["person_in_bed_dark_skin_tone"] = "🛌🏿", ["teddy_bear"] = "🧸", ["frame_photo"] = "🖼️", ["frame_with_picture"] = "🖼️", ["shopping_bags"] = "🛍️", ["shopping_cart"] = "🛒", ["shopping_trolley"] = "🛒", ["gift"] = "🎁", ["balloon"] = "🎈", ["flags"] = "🎏", ["ribbon"] = "🎀", ["confetti_ball"] = "🎊", ["tada"] = "🎉", ["piñata"] = "🪅", ["nesting_dolls"] = "🪆", ["dolls"] = "🎎", ["izakaya_lantern"] = "🏮", ["wind_chime"] = "🎐", ["red_envelope"] = "🧧", ["envelope"] = "✉️", ["envelope_with_arrow"] = "📩", ["incoming_envelope"] = "📨", ["e_mail"] = "📧", ["email"] = "📧", ["love_letter"] = "💌", ["inbox_tray"] = "📥", ["outbox_tray"] = "📤", ["package"] = "📦", ["label"] = "🏷️", ["mailbox_closed"] = "📪", ["mailbox"] = "📫", ["mailbox_with_mail"] = "📬", ["mailbox_with_no_mail"] = "📭", ["postbox"] = "📮", ["postal_horn"] = "📯", ["placard"] = "🪧", ["scroll"] = "📜", ["page_with_curl"] = "📃", ["page_facing_up"] = "📄", ["bookmark_tabs"] = "📑", ["receipt"] = "🧾", ["bar_chart"] = "📊", ["chart_with_upwards_trend"] = "📈", ["chart_with_downwards_trend"] = "📉", ["notepad_spiral"] = "🗒️", ["spiral_note_pad"] = "🗒️", ["calendar_spiral"] = "🗓️", ["spiral_calendar_pad"] = "🗓️", ["calendar"] = "📆", ["date"] = "📅", ["wastebasket"] = "🗑️", ["card_index"] = "📇", ["card_box"] = "🗃️", ["card_file_box"] = "🗃️", ["ballot_box"] = "🗳️", ["ballot_box_with_ballot"] = "🗳️", ["file_cabinet"] = "🗄️", ["clipboard"] = "📋", ["file_folder"] = "📁", ["open_file_folder"] = "📂", ["dividers"] = "🗂️", ["card_index_dividers"] = "🗂️", ["newspaper2"] = "🗞️", ["rolled_up_newspaper"] = "🗞️", ["newspaper"] = "📰", ["notebook"] = "📓", ["notebook_with_decorative_cover"] = "📔", ["ledger"] = "📒", ["closed_book"] = "📕", ["green_book"] = "📗", ["blue_book"] = "📘", ["orange_book"] = "📙", ["books"] = "📚", ["book"] = "📖", ["bookmark"] = "🔖", ["safety_pin"] = "🧷", ["link"] = "🔗", ["paperclip"] = "📎", ["paperclips"] = "🖇️", ["linked_paperclips"] = "🖇️", ["triangular_ruler"] = "📐", ["straight_ruler"] = "📏", ["abacus"] = "🧮", ["pushpin"] = "📌", ["round_pushpin"] = "📍", ["scissors"] = "✂️", ["pen_ballpoint"] = "🖊️", ["lower_left_ballpoint_pen"] = "🖊️", ["pen_fountain"] = "🖋️", ["lower_left_fountain_pen"] = "🖋️", ["black_nib"] = "✒️", ["paintbrush"] = "🖌️", ["lower_left_paintbrush"] = "🖌️", ["crayon"] = "🖍️", ["lower_left_crayon"] = "🖍️", ["pencil"] = "📝", ["memo"] = "📝", ["pencil2"] = "✏️", ["mag"] = "🔍", ["mag_right"] = "🔎", ["lock_with_ink_pen"] = "🔏", ["closed_lock_with_key"] = "🔐", ["lock"] = "🔒", ["unlock"] = "🔓", ["heart"] = "❤️", ["orange_heart"] = "🧡", ["yellow_heart"] = "💛", ["green_heart"] = "💚", ["blue_heart"] = "💙", ["purple_heart"] = "💜", ["black_heart"] = "🖤", ["brown_heart"] = "🤎", ["white_heart"] = "🤍", ["broken_heart"] = "💔", ["heart_exclamation"] = "❣️", ["heavy_heart_exclamation_mark_ornament"] = "❣️", ["two_hearts"] = "💕", ["revolving_hearts"] = "💞", ["heartbeat"] = "💓", ["heartpulse"] = "💗", ["sparkling_heart"] = "💖", ["cupid"] = "💘", ["gift_heart"] = "💝", ["mending_heart"] = "❤️‍🩹", ["heart_on_fire"] = "❤️‍🔥", ["heart_decoration"] = "💟", ["peace"] = "☮️", ["peace_symbol"] = "☮️", ["cross"] = "✝️", ["latin_cross"] = "✝️", ["star_and_crescent"] = "☪️", ["om_symbol"] = "🕉️", ["wheel_of_dharma"] = "☸️", ["star_of_david"] = "✡️", ["six_pointed_star"] = "🔯", ["menorah"] = "🕎", ["yin_yang"] = "☯️", ["orthodox_cross"] = "☦️", ["place_of_worship"] = "🛐", ["worship_symbol"] = "🛐", ["ophiuchus"] = "⛎", ["aries"] = "♈", ["taurus"] = "♉", ["gemini"] = "♊", ["cancer"] = "♋", ["leo"] = "♌", ["virgo"] = "♍", ["libra"] = "♎", ["scorpius"] = "♏", ["sagittarius"] = "♐", ["capricorn"] = "♑", ["aquarius"] = "♒", ["pisces"] = "♓", ["id"] = "🆔", ["atom"] = "⚛️", ["atom_symbol"] = "⚛️", ["accept"] = "🉑", ["radioactive"] = "☢️", ["radioactive_sign"] = "☢️", ["biohazard"] = "☣️", ["biohazard_sign"] = "☣️", ["mobile_phone_off"] = "📴", ["vibration_mode"] = "📳", ["u6709"] = "🈶", ["u7121"] = "🈚", ["u7533"] = "🈸", ["u55b6"] = "🈺", ["u6708"] = "🈷️", ["eight_pointed_black_star"] = "✴️", ["vs"] = "🆚", ["white_flower"] = "💮", ["ideograph_advantage"] = "🉐", ["secret"] = "㊙️", ["congratulations"] = "㊗️", ["u5408"] = "🈴", ["u6e80"] = "🈵", ["u5272"] = "🈹", ["u7981"] = "🈲", ["a"] = "🅰️", ["b"] = "🅱️", ["ab"] = "🆎", ["cl"] = "🆑", ["o2"] = "🅾️", ["sos"] = "🆘", ["x"] = "❌", ["o"] = "⭕", ["octagonal_sign"] = "🛑", ["stop_sign"] = "🛑", ["no_entry"] = "⛔", ["name_badge"] = "📛", ["no_entry_sign"] = "🚫", ["100"] = "💯", ["anger"] = "💢", ["hotsprings"] = "♨️", ["no_pedestrians"] = "🚷", ["do_not_litter"] = "🚯", ["no_bicycles"] = "🚳", ["non_potable_water"] = "🚱", ["underage"] = "🔞", ["no_mobile_phones"] = "📵", ["no_smoking"] = "🚭", ["exclamation"] = "❗", ["grey_exclamation"] = "❕", ["question"] = "❓", ["grey_question"] = "❔", ["bangbang"] = "‼️", ["interrobang"] = "⁉️", ["low_brightness"] = "🔅", ["high_brightness"] = "🔆", ["part_alternation_mark"] = "〽️", ["warning"] = "⚠️", ["children_crossing"] = "🚸", ["trident"] = "🔱", ["fleur_de_lis"] = "⚜️", ["beginner"] = "🔰", ["recycle"] = "♻️", ["white_check_mark"] = "✅", ["u6307"] = "🈯", ["chart"] = "💹", ["sparkle"] = "❇️", ["eight_spoked_asterisk"] = "✳️", ["negative_squared_cross_mark"] = "❎", ["globe_with_meridians"] = "🌐", ["diamond_shape_with_a_dot_inside"] = "💠", ["m"] = "Ⓜ️", ["cyclone"] = "🌀", ["zzz"] = "💤", ["atm"] = "🏧", ["wc"] = "🚾", ["wheelchair"] = "♿", ["parking"] = "🅿️", ["u7a7a"] = "🈳", ["sa"] = "🈂️", ["passport_control"] = "🛂", ["customs"] = "🛃", ["baggage_claim"] = "🛄", ["left_luggage"] = "🛅", ["elevator"] = "🛗", ["mens"] = "🚹", ["womens"] = "🚺", ["baby_symbol"] = "🚼", ["restroom"] = "🚻", ["put_litter_in_its_place"] = "🚮", ["cinema"] = "🎦", ["signal_strength"] = "📶", ["koko"] = "🈁", ["symbols"] = "🔣", ["information_source"] = "ℹ️", ["abc"] = "🔤", ["abcd"] = "🔡", ["capital_abcd"] = "🔠", ["ng"] = "🆖", ["ok"] = "🆗", ["up"] = "🆙", ["cool"] = "🆒", ["new"] = "🆕", ["free"] = "🆓", ["zero"] = "0️⃣", ["one"] = "1️⃣", ["two"] = "2️⃣", ["three"] = "3️⃣", ["four"] = "4️⃣", ["five"] = "5️⃣", ["six"] = "6️⃣", ["seven"] = "7️⃣", ["eight"] = "8️⃣", ["nine"] = "9️⃣", ["keycap_ten"] = "🔟", ["1234"] = "🔢", ["hash"] = "#️⃣", ["asterisk"] = "*️⃣", ["keycap_asterisk"] = "*️⃣", ["eject"] = "⏏️", ["eject_symbol"] = "⏏️", ["arrow_forward"] = "▶️", ["pause_button"] = "⏸️", ["double_vertical_bar"] = "⏸️", ["play_pause"] = "⏯️", ["stop_button"] = "⏹️", ["record_button"] = "⏺️", ["track_next"] = "⏭️", ["next_track"] = "⏭️", ["track_previous"] = "⏮️", ["previous_track"] = "⏮️", ["fast_forward"] = "⏩", ["rewind"] = "⏪", ["arrow_double_up"] = "⏫", ["arrow_double_down"] = "⏬", ["arrow_backward"] = "◀️", ["arrow_up_small"] = "🔼", ["arrow_down_small"] = "🔽", ["arrow_right"] = "➡️", ["arrow_left"] = "⬅️", ["arrow_up"] = "⬆️", ["arrow_down"] = "⬇️", ["arrow_upper_right"] = "↗️", ["arrow_lower_right"] = "↘️", ["arrow_lower_left"] = "↙️", ["arrow_upper_left"] = "↖️", ["arrow_up_down"] = "↕️", ["left_right_arrow"] = "↔️", ["arrow_right_hook"] = "↪️", ["leftwards_arrow_with_hook"] = "↩️", ["arrow_heading_up"] = "⤴️", ["arrow_heading_down"] = "⤵️", ["twisted_rightwards_arrows"] = "🔀", ["repeat"] = "🔁", ["repeat_one"] = "🔂", ["arrows_counterclockwise"] = "🔄", ["arrows_clockwise"] = "🔃", ["musical_note"] = "🎵", ["notes"] = "🎶", ["heavy_plus_sign"] = "➕", ["heavy_minus_sign"] = "➖", ["heavy_division_sign"] = "➗", ["heavy_multiplication_x"] = "✖️", ["infinity"] = "♾️", ["heavy_dollar_sign"] = "💲", ["currency_exchange"] = "💱", ["tm"] = "™️", ["copyright"] = "©️", ["registered"] = "®️", ["wavy_dash"] = "〰️", ["curly_loop"] = "➰", ["loop"] = "➿", ["end"] = "🔚", ["back"] = "🔙", ["on"] = "🔛", ["top"] = "🔝", ["soon"] = "🔜", ["heavy_check_mark"] = "✔️", ["ballot_box_with_check"] = "☑️", ["radio_button"] = "🔘", ["white_circle"] = "⚪", ["black_circle"] = "⚫", ["red_circle"] = "🔴", ["blue_circle"] = "🔵", ["brown_circle"] = "🟤", ["purple_circle"] = "🟣", ["green_circle"] = "🟢", ["yellow_circle"] = "🟡", ["orange_circle"] = "🟠", ["small_red_triangle"] = "🔺", ["small_red_triangle_down"] = "🔻", ["small_orange_diamond"] = "🔸", ["small_blue_diamond"] = "🔹", ["large_orange_diamond"] = "🔶", ["large_blue_diamond"] = "🔷", ["white_square_button"] = "🔳", ["black_square_button"] = "🔲", ["black_small_square"] = "▪️", ["white_small_square"] = "▫️", ["black_medium_small_square"] = "◾", ["white_medium_small_square"] = "◽", ["black_medium_square"] = "◼️", ["white_medium_square"] = "◻️", ["black_large_square"] = "⬛", ["white_large_square"] = "⬜", ["orange_square"] = "🟧", ["blue_square"] = "🟦", ["red_square"] = "🟥", ["brown_square"] = "🟫", ["purple_square"] = "🟪", ["green_square"] = "🟩", ["yellow_square"] = "🟨", ["speaker"] = "🔈", ["mute"] = "🔇", ["sound"] = "🔉", ["loud_sound"] = "🔊", ["bell"] = "🔔", ["no_bell"] = "🔕", ["mega"] = "📣", ["loudspeaker"] = "📢", ["speech_left"] = "🗨️", ["left_speech_bubble"] = "🗨️", ["eye_in_speech_bubble"] = "👁‍🗨", ["speech_balloon"] = "💬", ["thought_balloon"] = "💭", ["anger_right"] = "🗯️", ["right_anger_bubble"] = "🗯️", ["spades"] = "♠️", ["clubs"] = "♣️", ["hearts"] = "♥️", ["diamonds"] = "♦️", ["black_joker"] = "🃏", ["flower_playing_cards"] = "🎴", ["mahjong"] = "🀄", ["clock1"] = "🕐", ["clock2"] = "🕑", ["clock3"] = "🕒", ["clock4"] = "🕓", ["clock5"] = "🕔", ["clock6"] = "🕕", ["clock7"] = "🕖", ["clock8"] = "🕗", ["clock9"] = "🕘", ["clock10"] = "🕙", ["clock11"] = "🕚", ["clock12"] = "🕛", ["clock130"] = "🕜", ["clock230"] = "🕝", ["clock330"] = "🕞", ["clock430"] = "🕟", ["clock530"] = "🕠", ["clock630"] = "🕡", ["clock730"] = "🕢", ["clock830"] = "🕣", ["clock930"] = "🕤", ["clock1030"] = "🕥", ["clock1130"] = "🕦", ["clock1230"] = "🕧", ["female_sign"] = "♀️", ["male_sign"] = "♂️", ["transgender_symbol"] = "⚧", ["medical_symbol"] = "⚕️", ["regional_indicator_z"] = "🇿", ["regional_indicator_y"] = "🇾", ["regional_indicator_x"] = "🇽", ["regional_indicator_w"] = "🇼", ["regional_indicator_v"] = "🇻", ["regional_indicator_u"] = "🇺", ["regional_indicator_t"] = "🇹", ["regional_indicator_s"] = "🇸", ["regional_indicator_r"] = "🇷", ["regional_indicator_q"] = "🇶", ["regional_indicator_p"] = "🇵", ["regional_indicator_o"] = "🇴", ["regional_indicator_n"] = "🇳", ["regional_indicator_m"] = "🇲", ["regional_indicator_l"] = "🇱", ["regional_indicator_k"] = "🇰", ["regional_indicator_j"] = "🇯", ["regional_indicator_i"] = "🇮", ["regional_indicator_h"] = "🇭", ["regional_indicator_g"] = "🇬", ["regional_indicator_f"] = "🇫", ["regional_indicator_e"] = "🇪", ["regional_indicator_d"] = "🇩", ["regional_indicator_c"] = "🇨", ["regional_indicator_b"] = "🇧", ["regional_indicator_a"] = "🇦", ["flag_white"] = "🏳️", ["flag_black"] = "🏴", ["checkered_flag"] = "🏁", ["triangular_flag_on_post"] = "🚩", ["rainbow_flag"] = "🏳️‍🌈", ["gay_pride_flag"] = "🏳️‍🌈", ["transgender_flag"] = "🏳️‍⚧️", ["pirate_flag"] = "🏴‍☠️", ["flag_af"] = "🇦🇫", ["flag_ax"] = "🇦🇽", ["flag_al"] = "🇦🇱", ["flag_dz"] = "🇩🇿", ["flag_as"] = "🇦🇸", ["flag_ad"] = "🇦🇩", ["flag_ao"] = "🇦🇴", ["flag_ai"] = "🇦🇮", ["flag_aq"] = "🇦🇶", ["flag_ag"] = "🇦🇬", ["flag_ar"] = "🇦🇷", ["flag_am"] = "🇦🇲", ["flag_aw"] = "🇦🇼", ["flag_au"] = "🇦🇺", ["flag_at"] = "🇦🇹", ["flag_az"] = "🇦🇿", ["flag_bs"] = "🇧🇸", ["flag_bh"] = "🇧🇭", ["flag_bd"] = "🇧🇩", ["flag_bb"] = "🇧🇧", ["flag_by"] = "🇧🇾", ["flag_be"] = "🇧🇪", ["flag_bz"] = "🇧🇿", ["flag_bj"] = "🇧🇯", ["flag_bm"] = "🇧🇲", ["flag_bt"] = "🇧🇹", ["flag_bo"] = "🇧🇴", ["flag_ba"] = "🇧🇦", ["flag_bw"] = "🇧🇼", ["flag_br"] = "🇧🇷", ["flag_io"] = "🇮🇴", ["flag_vg"] = "🇻🇬", ["flag_bn"] = "🇧🇳", ["flag_bg"] = "🇧🇬", ["flag_bf"] = "🇧🇫", ["flag_bi"] = "🇧🇮", ["flag_kh"] = "🇰🇭", ["flag_cm"] = "🇨🇲", ["flag_ca"] = "🇨🇦", ["flag_ic"] = "🇮🇨", ["flag_cv"] = "🇨🇻", ["flag_bq"] = "🇧🇶", ["flag_ky"] = "🇰🇾", ["flag_cf"] = "🇨🇫", ["flag_td"] = "🇹🇩", ["flag_cl"] = "🇨🇱", ["flag_cn"] = "🇨🇳", ["flag_cx"] = "🇨🇽", ["flag_cc"] = "🇨🇨", ["flag_co"] = "🇨🇴", ["flag_km"] = "🇰🇲", ["flag_cg"] = "🇨🇬", ["flag_cd"] = "🇨🇩", ["flag_ck"] = "🇨🇰", ["flag_cr"] = "🇨🇷", ["flag_ci"] = "🇨🇮", ["flag_hr"] = "🇭🇷", ["flag_cu"] = "🇨🇺", ["flag_cw"] = "🇨🇼", ["flag_cy"] = "🇨🇾", ["flag_cz"] = "🇨🇿", ["flag_dk"] = "🇩🇰", ["flag_dj"] = "🇩🇯", ["flag_dm"] = "🇩🇲", ["flag_do"] = "🇩🇴", ["flag_ec"] = "🇪🇨", ["flag_eg"] = "🇪🇬", ["flag_sv"] = "🇸🇻", ["flag_gq"] = "🇬🇶", ["flag_er"] = "🇪🇷", ["flag_ee"] = "🇪🇪", ["flag_et"] = "🇪🇹", ["flag_eu"] = "🇪🇺", ["flag_fk"] = "🇫🇰", ["flag_fo"] = "🇫🇴", ["flag_fj"] = "🇫🇯", ["flag_fi"] = "🇫🇮", ["flag_fr"] = "🇫🇷", ["flag_gf"] = "🇬🇫", ["flag_pf"] = "🇵🇫", ["flag_tf"] = "🇹🇫", ["flag_ga"] = "🇬🇦", ["flag_gm"] = "🇬🇲", ["flag_ge"] = "🇬🇪", ["flag_de"] = "🇩🇪", ["flag_gh"] = "🇬🇭", ["flag_gi"] = "🇬🇮", ["flag_gr"] = "🇬🇷", ["flag_gl"] = "🇬🇱", ["flag_gd"] = "🇬🇩", ["flag_gp"] = "🇬🇵", ["flag_gu"] = "🇬🇺", ["flag_gt"] = "🇬🇹", ["flag_gg"] = "🇬🇬", ["flag_gn"] = "🇬🇳", ["flag_gw"] = "🇬🇼", ["flag_gy"] = "🇬🇾", ["flag_ht"] = "🇭🇹", ["flag_hn"] = "🇭🇳", ["flag_hk"] = "🇭🇰", ["flag_hu"] = "🇭🇺", ["flag_is"] = "🇮🇸", ["flag_in"] = "🇮🇳", ["flag_id"] = "🇮🇩", ["flag_ir"] = "🇮🇷", ["flag_iq"] = "🇮🇶", ["flag_ie"] = "🇮🇪", ["flag_im"] = "🇮🇲", ["flag_il"] = "🇮🇱", ["flag_it"] = "🇮🇹", ["flag_jm"] = "🇯🇲", ["flag_jp"] = "🇯🇵", ["crossed_flags"] = "🎌", ["flag_je"] = "🇯🇪", ["flag_jo"] = "🇯🇴", ["flag_kz"] = "🇰🇿", ["flag_ke"] = "🇰🇪", ["flag_ki"] = "🇰🇮", ["flag_xk"] = "🇽🇰", ["flag_kw"] = "🇰🇼", ["flag_kg"] = "🇰🇬", ["flag_la"] = "🇱🇦", ["flag_lv"] = "🇱🇻", ["flag_lb"] = "🇱🇧", ["flag_ls"] = "🇱🇸", ["flag_lr"] = "🇱🇷", ["flag_ly"] = "🇱🇾", ["flag_li"] = "🇱🇮", ["flag_lt"] = "🇱🇹", ["flag_lu"] = "🇱🇺", ["flag_mo"] = "🇲🇴", ["flag_mk"] = "🇲🇰", ["flag_mg"] = "🇲🇬", ["flag_mw"] = "🇲🇼", ["flag_my"] = "🇲🇾", ["flag_mv"] = "🇲🇻", ["flag_ml"] = "🇲🇱", ["flag_mt"] = "🇲🇹", ["flag_mh"] = "🇲🇭", ["flag_mq"] = "🇲🇶", ["flag_mr"] = "🇲🇷", ["flag_mu"] = "🇲🇺", ["flag_yt"] = "🇾🇹", ["flag_mx"] = "🇲🇽", ["flag_fm"] = "🇫🇲", ["flag_md"] = "🇲🇩", ["flag_mc"] = "🇲🇨", ["flag_mn"] = "🇲🇳", ["flag_me"] = "🇲🇪", ["flag_ms"] = "🇲🇸", ["flag_ma"] = "🇲🇦", ["flag_mz"] = "🇲🇿", ["flag_mm"] = "🇲🇲", ["flag_na"] = "🇳🇦", ["flag_nr"] = "🇳🇷", ["flag_np"] = "🇳🇵", ["flag_nl"] = "🇳🇱", ["flag_nc"] = "🇳🇨", ["flag_nz"] = "🇳🇿", ["flag_ni"] = "🇳🇮", ["flag_ne"] = "🇳🇪", ["flag_ng"] = "🇳🇬", ["flag_nu"] = "🇳🇺", ["flag_nf"] = "🇳🇫", ["flag_kp"] = "🇰🇵", ["flag_mp"] = "🇲🇵", ["flag_no"] = "🇳🇴", ["flag_om"] = "🇴🇲", ["flag_pk"] = "🇵🇰", ["flag_pw"] = "🇵🇼", ["flag_ps"] = "🇵🇸", ["flag_pa"] = "🇵🇦", ["flag_pg"] = "🇵🇬", ["flag_py"] = "🇵🇾", ["flag_pe"] = "🇵🇪", ["flag_ph"] = "🇵🇭", ["flag_pn"] = "🇵🇳", ["flag_pl"] = "🇵🇱", ["flag_pt"] = "🇵🇹", ["flag_pr"] = "🇵🇷", ["flag_qa"] = "🇶🇦", ["flag_re"] = "🇷🇪", ["flag_ro"] = "🇷🇴", ["flag_ru"] = "🇷🇺", ["flag_rw"] = "🇷🇼", ["flag_ws"] = "🇼🇸", ["flag_sm"] = "🇸🇲", ["flag_st"] = "🇸🇹", ["flag_sa"] = "🇸🇦", ["flag_sn"] = "🇸🇳", ["flag_rs"] = "🇷🇸", ["flag_sc"] = "🇸🇨", ["flag_sl"] = "🇸🇱", ["flag_sg"] = "🇸🇬", ["flag_sx"] = "🇸🇽", ["flag_sk"] = "🇸🇰", ["flag_si"] = "🇸🇮", ["flag_gs"] = "🇬🇸", ["flag_sb"] = "🇸🇧", ["flag_so"] = "🇸🇴", ["flag_za"] = "🇿🇦", ["flag_kr"] = "🇰🇷", ["flag_ss"] = "🇸🇸", ["flag_es"] = "🇪🇸", ["flag_lk"] = "🇱🇰", ["flag_bl"] = "🇧🇱", ["flag_sh"] = "🇸🇭", ["flag_kn"] = "🇰🇳", ["flag_lc"] = "🇱🇨", ["flag_pm"] = "🇵🇲", ["flag_vc"] = "🇻🇨", ["flag_sd"] = "🇸🇩", ["flag_sr"] = "🇸🇷", ["flag_sz"] = "🇸🇿", ["flag_se"] = "🇸🇪", ["flag_ch"] = "🇨🇭", ["flag_sy"] = "🇸🇾", ["flag_tw"] = "🇹🇼", ["flag_tj"] = "🇹🇯", ["flag_tz"] = "🇹🇿", ["flag_th"] = "🇹🇭", ["flag_tl"] = "🇹🇱", ["flag_tg"] = "🇹🇬", ["flag_tk"] = "🇹🇰", ["flag_to"] = "🇹🇴", ["flag_tt"] = "🇹🇹", ["flag_tn"] = "🇹🇳", ["flag_tr"] = "🇹🇷", ["flag_tm"] = "🇹🇲", ["flag_tc"] = "🇹🇨", ["flag_vi"] = "🇻🇮", ["flag_tv"] = "🇹🇻", ["flag_ug"] = "🇺🇬", ["flag_ua"] = "🇺🇦", ["flag_ae"] = "🇦🇪", ["flag_gb"] = "🇬🇧", ["england"] = "🏴󠁧󠁢󠁥󠁮󠁧󠁿", ["scotland"] = "🏴󠁧󠁢󠁳󠁣󠁴󠁿", ["wales"] = "🏴󠁧󠁢󠁷󠁬󠁳󠁿", ["flag_us"] = "🇺🇸", ["flag_uy"] = "🇺🇾", ["flag_uz"] = "🇺🇿", ["flag_vu"] = "🇻🇺", ["flag_va"] = "🇻🇦", ["flag_ve"] = "🇻🇪", ["flag_vn"] = "🇻🇳", ["flag_wf"] = "🇼🇫", ["flag_eh"] = "🇪🇭", ["flag_ye"] = "🇾🇪", ["flag_zm"] = "🇿🇲", ["flag_zw"] = "🇿🇼", ["flag_ac"] = "🇦🇨", ["flag_bv"] = "🇧🇻", ["flag_cp"] = "🇨🇵", ["flag_ea"] = "🇪🇦", ["flag_dg"] = "🇩🇬", ["flag_hm"] = "🇭🇲", ["flag_mf"] = "🇲🇫", ["flag_sj"] = "🇸🇯", ["flag_ta"] = "🇹🇦", ["flag_um"] = "🇺🇲", ["united_nations"] = "🇺🇳", }; public static IReadOnlyCollection GetAllNames() => _toCodes.Keys; public static string? TryGetCode(string name) => _toCodes.GetValueOrDefault(name); public static string? TryGetName(string code) => _fromCodes.GetValueOrDefault(code); } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Guild.cs ================================================ using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/guild#guild-object public partial record Guild(Snowflake Id, string Name, string IconUrl) : IHasId { public bool IsDirect { get; } = Id == Snowflake.Zero; } public partial record Guild { // Direct messages are encapsulated within a special pseudo-guild for consistency public static Guild DirectMessages { get; } = new(Snowflake.Zero, "Direct Messages", ImageCdn.GetFallbackUserAvatarUrl()); public static Guild Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var name = json.GetProperty("name").GetNonNullString(); var iconUrl = json.GetPropertyOrNull("icon") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(h => ImageCdn.GetGuildIconUrl(id, h)) ?? ImageCdn.GetFallbackUserAvatarUrl(); return new Guild(id, name, iconUrl); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Interaction.cs ================================================ using System.Text.Json; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object public record Interaction(Snowflake Id, string Name, User User) { public static Interaction Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var name = json.GetProperty("name").GetNonNullString(); // may be empty, but not null var user = json.GetProperty("user").Pipe(User.Parse); return new Interaction(id, name, user); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Invite.cs ================================================ using System.Text.Json; using System.Text.RegularExpressions; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/invite#invite-object public record Invite(string Code, Guild Guild, Channel? Channel) { public static string? TryGetCodeFromUrl(string url) => Regex.Match(url, @"^https?://discord\.gg/(\w+)/?$").Groups[1].Value.NullIfWhiteSpace(); public static Invite Parse(JsonElement json) { var code = json.GetProperty("code").GetNonWhiteSpaceString(); var guild = json.GetPropertyOrNull("guild")?.Pipe(Guild.Parse) ?? Guild.DirectMessages; var channel = json.GetPropertyOrNull("channel")?.Pipe(c => Channel.Parse(c)); return new Invite(code, guild, channel); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Member.cs ================================================ using System.Collections.Generic; using System.Linq; using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/guild#guild-member-object public partial record Member( User User, string? DisplayName, string? AvatarUrl, IReadOnlyList RoleIds ) : IHasId { public Snowflake Id { get; } = User.Id; } public partial record Member { public static Member CreateFallback(User user) => new(user, null, null, []); public static Member Parse(JsonElement json, Snowflake? guildId = null) { var user = json.GetProperty("user").Pipe(User.Parse); var displayName = json.GetPropertyOrNull("nick")?.GetNonWhiteSpaceStringOrNull(); var roleIds = json.GetPropertyOrNull("roles") ?.EnumerateArray() .Select(j => j.GetNonWhiteSpaceString()) .Select(Snowflake.Parse) .ToArray() ?? []; var avatarUrl = guildId is not null ? json.GetPropertyOrNull("avatar") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(h => ImageCdn.GetMemberAvatarUrl(guildId.Value, user.Id, h)) : null; return new Member(user, displayName, avatarUrl, roleIds); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Message.cs ================================================ using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Discord.Data.Embeds; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#message-object public partial record Message( Snowflake Id, MessageKind Kind, MessageFlags Flags, User Author, DateTimeOffset Timestamp, DateTimeOffset? EditedTimestamp, DateTimeOffset? CallEndedTimestamp, bool IsPinned, string Content, IReadOnlyList Attachments, IReadOnlyList Embeds, IReadOnlyList Stickers, IReadOnlyList Reactions, IReadOnlyList MentionedUsers, MessageReference? Reference, Message? ReferencedMessage, MessageSnapshot? ForwardedMessage, Interaction? Interaction ) : IHasId { public bool IsEmpty { get; } = string.IsNullOrWhiteSpace(Content) && !Attachments.Any() && !Embeds.Any() && !Stickers.Any(); public bool IsSystemNotification { get; } = Kind is >= MessageKind.RecipientAdd and <= MessageKind.ThreadCreated; public bool IsReply { get; } = Kind == MessageKind.Reply; // App interactions are rendered as replies in the Discord client, but they are not actually replies public bool IsReplyLike => IsReply || Interaction is not null; public bool IsForwarded { get; } = Reference?.Kind == MessageReferenceKind.Forward; public IEnumerable GetReferencedUsers() { yield return Author; foreach (var user in MentionedUsers) yield return user; if (ReferencedMessage is not null) yield return ReferencedMessage.Author; if (Interaction is not null) yield return Interaction.User; } } public partial record Message { private static IReadOnlyList NormalizeEmbeds(IReadOnlyList embeds) { if (embeds.Count <= 1) return embeds; // Discord API doesn't support embeds with multiple images, even though Discord client does. // To work around this, it seems that the API returns multiple consecutive embeds with different images, // which are then merged together on the client. We need to replicate the same behavior ourselves. // Currently, only known case where this workaround is required is Twitter embeds. // https://github.com/Tyrrrz/DiscordChatExporter/issues/695 var normalizedEmbeds = new List(); for (var i = 0; i < embeds.Count; i++) { var embed = embeds[i]; if (embed.Url?.Contains("://twitter.com/", StringComparison.OrdinalIgnoreCase) == true) { // Find embeds with the same URL that only contain a single image and nothing else var trailingEmbeds = embeds .Skip(i + 1) .TakeWhile(e => e.Url == embed.Url && e.Timestamp is null && e.Author is null && e.Color is null && string.IsNullOrWhiteSpace(e.Description) && !e.Fields.Any() && e.Images.Count == 1 && e.Footer is null ) .ToArray(); if (trailingEmbeds.Any()) { // Concatenate all images into one embed var images = embed .Images.Concat(trailingEmbeds.SelectMany(e => e.Images)) .ToArray(); normalizedEmbeds.Add(embed with { Images = images }); i += trailingEmbeds.Length; } else { normalizedEmbeds.Add(embed); } } else { normalizedEmbeds.Add(embed); } } return normalizedEmbeds; } public static Message Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var kind = json.GetProperty("type").GetInt32().Pipe(t => (MessageKind)t); var flags = json.GetPropertyOrNull("flags")?.GetInt32OrNull()?.Pipe(f => (MessageFlags)f) ?? MessageFlags.None; var author = json.GetProperty("author").Pipe(User.Parse); var timestamp = json.GetProperty("timestamp").GetDateTimeOffset(); var editedTimestamp = json.GetPropertyOrNull("edited_timestamp")?.GetDateTimeOffsetOrNull(); var callEndedTimestamp = json.GetPropertyOrNull("call") ?.GetPropertyOrNull("ended_timestamp") ?.GetDateTimeOffsetOrNull(); var isPinned = json.GetPropertyOrNull("pinned")?.GetBooleanOrNull() ?? false; var content = json.GetPropertyOrNull("content")?.GetStringOrNull() ?? ""; var attachments = json.GetPropertyOrNull("attachments") ?.EnumerateArrayOrNull() ?.Select(Attachment.Parse) .ToArray() ?? []; var embeds = NormalizeEmbeds( json.GetPropertyOrNull("embeds")?.EnumerateArrayOrNull()?.Select(Embed.Parse).ToArray() ?? [] ); var stickers = json.GetPropertyOrNull("sticker_items") ?.EnumerateArrayOrNull() ?.Select(Sticker.Parse) .ToArray() ?? []; var reactions = json.GetPropertyOrNull("reactions") ?.EnumerateArrayOrNull() ?.Select(Reaction.Parse) .ToArray() ?? []; var mentionedUsers = json.GetPropertyOrNull("mentions")?.EnumerateArrayOrNull()?.Select(User.Parse).ToArray() ?? []; var messageReference = json.GetPropertyOrNull("message_reference") ?.Pipe(MessageReference.Parse); var referencedMessage = json.GetPropertyOrNull("referenced_message")?.Pipe(Parse); // Currently Discord only supports 1 snapshot per forward var forwardedMessage = json.GetPropertyOrNull("message_snapshots") ?.EnumerateArrayOrNull() ?.Select(j => j.GetPropertyOrNull("message")) .WhereNotNull() .Select(MessageSnapshot.Parse) .FirstOrDefault(); var interaction = json.GetPropertyOrNull("interaction")?.Pipe(Interaction.Parse); return new Message( id, kind, flags, author, timestamp, editedTimestamp, callEndedTimestamp, isPinned, content, attachments, embeds, stickers, reactions, mentionedUsers, messageReference, referencedMessage, forwardedMessage, interaction ); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/MessageFlags.cs ================================================ using System; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#message-object-message-flags [Flags] public enum MessageFlags { None = 0, CrossPosted = 1, CrossPost = 2, SuppressEmbeds = 4, SourceMessageDeleted = 8, Urgent = 16, HasThread = 32, Ephemeral = 64, Loading = 128, } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/MessageKind.cs ================================================ namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#message-object-message-types public enum MessageKind { Default = 0, RecipientAdd = 1, RecipientRemove = 2, Call = 3, ChannelNameChange = 4, ChannelIconChange = 5, ChannelPinnedMessage = 6, GuildMemberJoin = 7, ThreadCreated = 18, Reply = 19, } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/MessageReference.cs ================================================ using System.Text.Json; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#message-object-message-reference-structure public record MessageReference( MessageReferenceKind Kind, Snowflake? MessageId, Snowflake? ChannelId, Snowflake? GuildId ) { public static MessageReference Parse(JsonElement json) { var kind = json.GetPropertyOrNull("type")?.GetInt32OrNull()?.Pipe(t => (MessageReferenceKind)t) ?? MessageReferenceKind.Default; var messageId = json.GetPropertyOrNull("message_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse); var channelId = json.GetPropertyOrNull("channel_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse); var guildId = json.GetPropertyOrNull("guild_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse); return new MessageReference(kind, messageId, channelId, guildId); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/MessageReferenceKind.cs ================================================ namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#message-reference-types public enum MessageReferenceKind { Default = 0, Forward = 1, } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/MessageSnapshot.cs ================================================ using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Embeds; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://docs.discord.com/developers/resources/message#message-snapshot-object public record MessageSnapshot( DateTimeOffset Timestamp, DateTimeOffset? EditedTimestamp, string Content, IReadOnlyList Attachments, IReadOnlyList Embeds, IReadOnlyList Stickers ) { public static MessageSnapshot Parse(JsonElement json) { var timestamp = json.GetPropertyOrNull("timestamp")?.GetDateTimeOffsetOrNull() ?? DateTimeOffset.MinValue; var editedTimestamp = json.GetPropertyOrNull("edited_timestamp")?.GetDateTimeOffsetOrNull(); var content = json.GetPropertyOrNull("content")?.GetStringOrNull() ?? ""; var attachments = json.GetPropertyOrNull("attachments") ?.EnumerateArrayOrNull() ?.Select(Attachment.Parse) .ToArray() ?? []; var embeds = json.GetPropertyOrNull("embeds")?.EnumerateArrayOrNull()?.Select(Embed.Parse).ToArray() ?? []; var stickers = json.GetPropertyOrNull("sticker_items") ?.EnumerateArrayOrNull() ?.Select(Sticker.Parse) .ToArray() ?? []; return new MessageSnapshot( timestamp, editedTimestamp, content, attachments, embeds, stickers ); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Reaction.cs ================================================ using System.Text.Json; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/channel#reaction-object public record Reaction(Emoji Emoji, int Count) { public static Reaction Parse(JsonElement json) { var emoji = json.GetProperty("emoji").Pipe(Emoji.Parse); var count = json.GetProperty("count").GetInt32(); return new Reaction(emoji, count); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Role.cs ================================================ using System.Drawing; using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/topics/permissions#role-object public record Role(Snowflake Id, string Name, int Position, Color? Color) : IHasId { public static Role Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var name = json.GetProperty("name").GetNonNullString(); var position = json.GetProperty("position").GetInt32(); var color = json.GetPropertyOrNull("color") ?.GetInt32OrNull() ?.Pipe(System.Drawing.Color.FromArgb) .ResetAlpha() .NullIf(c => c.ToRgb() <= 0); return new Role(id, name, position, color); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/Sticker.cs ================================================ using System; using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/sticker#sticker-resource public partial record Sticker(Snowflake Id, string Name, StickerFormat Format, string SourceUrl) { public bool IsImage { get; } = Format != StickerFormat.Lottie; } public partial record Sticker { public static Sticker Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var name = json.GetProperty("name").GetNonNullString(); var format = json.GetProperty("format_type").GetInt32().Pipe(t => (StickerFormat)t); var sourceUrl = ImageCdn.GetStickerUrl( id, format switch { StickerFormat.Png => "png", StickerFormat.Apng => "png", StickerFormat.Lottie => "json", StickerFormat.Gif => "gif", _ => throw new InvalidOperationException($"Unknown sticker format '{format}'."), } ); return new Sticker(id, name, format, sourceUrl); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/StickerFormat.cs ================================================ namespace DiscordChatExporter.Core.Discord.Data; public enum StickerFormat { Png = 1, Apng = 2, Lottie = 3, Gif = 4, } ================================================ FILE: DiscordChatExporter.Core/Discord/Data/User.cs ================================================ using System.Text.Json; using DiscordChatExporter.Core.Discord.Data.Common; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Data; // https://discord.com/developers/docs/resources/user#user-object public partial record User( Snowflake Id, bool IsBot, // Remove after Discord migrates all accounts to the new system. // With that, also remove the DiscriminatorFormatted and FullName properties. // Replace existing calls to FullName with Name (not DisplayName). int? Discriminator, string Name, string DisplayName, string AvatarUrl ) : IHasId { public string DiscriminatorFormatted { get; } = Discriminator is not null ? $"{Discriminator:0000}" : "0000"; // This effectively represents the user's true identity. // In the old system, this is formed from the username and discriminator. // In the new system, the username is already the user's unique identifier. public string FullName => Discriminator is not null ? $"{Name}#{DiscriminatorFormatted}" : Name; } public partial record User { public static User Parse(JsonElement json) { var id = json.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse); var isBot = json.GetPropertyOrNull("bot")?.GetBooleanOrNull() ?? false; var discriminator = json.GetPropertyOrNull("discriminator") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(int.Parse) .NullIfDefault(); var name = json.GetProperty("username").GetNonNullString(); var displayName = json.GetPropertyOrNull("global_name")?.GetNonWhiteSpaceStringOrNull() ?? name; var avatarIndex = discriminator % 5 ?? (int)((id.Value >> 22) % 6); var avatarUrl = json.GetPropertyOrNull("avatar") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(h => ImageCdn.GetUserAvatarUrl(id, h)) ?? ImageCdn.GetFallbackUserAvatarUrl(avatarIndex); return new User(id, isBot, discriminator, name, displayName, avatarUrl); } } ================================================ FILE: DiscordChatExporter.Core/Discord/DiscordClient.cs ================================================ using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Net; using System.Net.Http; using System.Runtime.CompilerServices; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Exceptions; using DiscordChatExporter.Core.Utils; using DiscordChatExporter.Core.Utils.Extensions; using Gress; using JsonExtensions.Http; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord; public class DiscordClient( string token, RateLimitPreference rateLimitPreference = RateLimitPreference.RespectAll ) { private readonly Uri _baseUri = new("https://discord.com/api/v10/", UriKind.Absolute); private TokenKind? _resolvedTokenKind; private async ValueTask GetResponseAsync( string url, TokenKind tokenKind, CancellationToken cancellationToken = default ) { return await Http.ResponseResiliencePipeline.ExecuteAsync( async innerCancellationToken => { using var request = new HttpRequestMessage(HttpMethod.Get, new Uri(_baseUri, url)); // Don't validate because the token can have special characters // https://github.com/Tyrrrz/DiscordChatExporter/issues/828 request.Headers.TryAddWithoutValidation( "Authorization", tokenKind == TokenKind.Bot ? $"Bot {token}" : token ); var response = await Http.Client.SendAsync( request, HttpCompletionOption.ResponseHeadersRead, innerCancellationToken ); // Discord has advisory rate limits (communicated via response headers), but they are typically // way stricter than the actual rate limits enforced by the server. // The user may choose to ignore the advisory rate limits and only retry on hard rate limits, // if they want to prioritize speed over compliance (and safety of their account/bot). // https://github.com/Tyrrrz/DiscordChatExporter/issues/1021 if (rateLimitPreference.IsRespectedFor(tokenKind)) { var remainingRequestCount = response .Headers.TryGetValue("X-RateLimit-Remaining") ?.Pipe(s => int.Parse(s, CultureInfo.InvariantCulture)); var resetAfterDelay = response .Headers.TryGetValue("X-RateLimit-Reset-After") ?.Pipe(s => double.Parse(s, CultureInfo.InvariantCulture)) .Pipe(TimeSpan.FromSeconds); // If this was the last request available before hitting the rate limit, // wait out the reset time so that future requests can succeed. // This may add an unnecessary delay in case the user doesn't intend to // make any more requests, but implementing a smarter solution would // require properly keeping track of Discord's global/per-route/per-resource // rate limits and that's just way too much effort. // https://discord.com/developers/docs/topics/rate-limits if (remainingRequestCount <= 0 && resetAfterDelay is not null) { var delay = // Adding a small buffer to the reset time reduces the chance of getting // rate limited again, because it allows for more requests to be released. (resetAfterDelay.Value + TimeSpan.FromSeconds(1)) // Sometimes Discord returns an absurdly high value for the reset time, which // is not actually enforced by the server. So we cap it at a reasonable value. .Clamp(TimeSpan.Zero, TimeSpan.FromSeconds(60)); await Task.Delay(delay, innerCancellationToken); } } return response; }, cancellationToken ); } private async ValueTask ResolveTokenKindAsync( CancellationToken cancellationToken = default ) { if (_resolvedTokenKind is not null) return _resolvedTokenKind.Value; // Try authenticating as a user using var userResponse = await GetResponseAsync( "users/@me", TokenKind.User, cancellationToken ); if (userResponse.StatusCode != HttpStatusCode.Unauthorized) return (_resolvedTokenKind = TokenKind.User).Value; // Try authenticating as a bot using var botResponse = await GetResponseAsync( "users/@me", TokenKind.Bot, cancellationToken ); if (botResponse.StatusCode != HttpStatusCode.Unauthorized) return (_resolvedTokenKind = TokenKind.Bot).Value; throw new DiscordChatExporterException("Authentication token is invalid.", true); } private async ValueTask GetResponseAsync( string url, CancellationToken cancellationToken = default ) => await GetResponseAsync( url, await ResolveTokenKindAsync(cancellationToken), cancellationToken ); private async ValueTask GetJsonResponseAsync( string url, CancellationToken cancellationToken = default ) { using var response = await GetResponseAsync(url, cancellationToken); if (!response.IsSuccessStatusCode) { throw response.StatusCode switch { HttpStatusCode.Unauthorized => throw new DiscordChatExporterException( "Authentication token is invalid.", true ), HttpStatusCode.Forbidden => throw new DiscordChatExporterException( $"Request to '{url}' failed: forbidden." ), HttpStatusCode.NotFound => throw new DiscordChatExporterException( $"Request to '{url}' failed: not found." ), _ => throw new DiscordChatExporterException( $""" Request to '{url}' failed: {response .StatusCode.ToString() .ToSpaceSeparatedWords() .ToLowerInvariant()}. Response content: {await response.Content.ReadAsStringAsync( cancellationToken )} """, true ), }; } return await response.Content.ReadAsJsonAsync(cancellationToken); } private async ValueTask TryGetJsonResponseAsync( string url, CancellationToken cancellationToken = default ) { using var response = await GetResponseAsync(url, cancellationToken); return response.IsSuccessStatusCode ? await response.Content.ReadAsJsonAsync(cancellationToken) : null; } public async ValueTask GetApplicationAsync( CancellationToken cancellationToken = default ) { var response = await GetJsonResponseAsync("applications/@me", cancellationToken); return Application.Parse(response); } private async ValueTask EnsureMessageContentIntentAsync( CancellationToken cancellationToken = default ) { if (await ResolveTokenKindAsync(cancellationToken) != TokenKind.Bot) return; var application = await GetApplicationAsync(cancellationToken); if (application.IsMessageContentIntentEnabled) return; throw new DiscordChatExporterException( "Provided bot account is missing the MESSAGE_CONTENT privileged intent.", true ); } public async ValueTask TryGetUserAsync( Snowflake userId, CancellationToken cancellationToken = default ) { var response = await TryGetJsonResponseAsync($"users/{userId}", cancellationToken); return response?.Pipe(User.Parse); } public async IAsyncEnumerable GetUserGuildsAsync( [EnumeratorCancellation] CancellationToken cancellationToken = default ) { yield return Guild.DirectMessages; var currentAfter = Snowflake.Zero; while (true) { var url = new UrlBuilder() .SetPath("users/@me/guilds") .SetQueryParameter("limit", "100") .SetQueryParameter("after", currentAfter.ToString()) .Build(); var response = await GetJsonResponseAsync(url, cancellationToken); var count = 0; foreach (var guildJson in response.EnumerateArray()) { var guild = Guild.Parse(guildJson); yield return guild; currentAfter = guild.Id; count++; } if (count <= 0) yield break; } } public async ValueTask GetGuildAsync( Snowflake guildId, CancellationToken cancellationToken = default ) { if (guildId == Guild.DirectMessages.Id) return Guild.DirectMessages; var response = await GetJsonResponseAsync($"guilds/{guildId}", cancellationToken); return Guild.Parse(response); } public async IAsyncEnumerable GetGuildChannelsAsync( Snowflake guildId, [EnumeratorCancellation] CancellationToken cancellationToken = default ) { if (guildId == Guild.DirectMessages.Id) { var response = await GetJsonResponseAsync("users/@me/channels", cancellationToken); foreach (var channelJson in response.EnumerateArray()) yield return Channel.Parse(channelJson); } else { var response = await GetJsonResponseAsync( $"guilds/{guildId}/channels", cancellationToken ); var channelsJson = response .EnumerateArray() .OrderBy(j => j.GetProperty("position").GetInt32()) .ThenBy(j => j.GetProperty("id").GetNonWhiteSpaceString().Pipe(Snowflake.Parse)) .ToArray(); var parentsById = channelsJson .Where(j => j.GetProperty("type").GetInt32() == (int)ChannelKind.GuildCategory) .Select((j, i) => Channel.Parse(j, null, i + 1)) .ToDictionary(j => j.Id); // Discord channel positions are relative, so we need to normalize them // so that the user may refer to them more easily in file name templates. var position = 0; foreach (var channelJson in channelsJson) { var parent = channelJson .GetPropertyOrNull("parent_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse) .Pipe(parentsById.GetValueOrDefault); yield return Channel.Parse(channelJson, parent, position); position++; } } } public async IAsyncEnumerable GetGuildThreadsAsync( Snowflake guildId, bool includeArchived = false, Snowflake? before = null, Snowflake? after = null, [EnumeratorCancellation] CancellationToken cancellationToken = default ) { if (guildId == Guild.DirectMessages.Id) yield break; var channels = await GetGuildChannelsAsync(guildId, cancellationToken); foreach ( var channel in await GetChannelThreadsAsync( channels, includeArchived, before, after, cancellationToken ) ) { yield return channel; } } public async IAsyncEnumerable GetGuildRolesAsync( Snowflake guildId, [EnumeratorCancellation] CancellationToken cancellationToken = default ) { if (guildId == Guild.DirectMessages.Id) yield break; var response = await GetJsonResponseAsync($"guilds/{guildId}/roles", cancellationToken); foreach (var roleJson in response.EnumerateArray()) yield return Role.Parse(roleJson); } public async ValueTask TryGetGuildMemberAsync( Snowflake guildId, Snowflake memberId, CancellationToken cancellationToken = default ) { if (guildId == Guild.DirectMessages.Id) return null; var response = await TryGetJsonResponseAsync( $"guilds/{guildId}/members/{memberId}", cancellationToken ); return response?.Pipe(j => Member.Parse(j, guildId)); } public async ValueTask TryGetInviteAsync( string code, CancellationToken cancellationToken = default ) { var response = await TryGetJsonResponseAsync($"invites/{code}", cancellationToken); return response?.Pipe(Invite.Parse); } public async ValueTask GetChannelAsync( Snowflake channelId, CancellationToken cancellationToken = default ) { var response = await GetJsonResponseAsync($"channels/{channelId}", cancellationToken); var parentId = response .GetPropertyOrNull("parent_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse); // It's possible for the parent channel to be inaccessible, despite the // child channel being accessible. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1108 var parent = parentId is not null ? await TryGetChannelAsync(parentId.Value, cancellationToken) : null; return Channel.Parse(response, parent); } public async ValueTask TryGetChannelAsync( Snowflake channelId, CancellationToken cancellationToken = default ) { var response = await TryGetJsonResponseAsync($"channels/{channelId}", cancellationToken); if (response is null) return null; var parentId = response .Value.GetPropertyOrNull("parent_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse); Channel? parent = null; if (parentId is not null) { // It's possible for the parent channel to be inaccessible, despite the // child channel being accessible. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1108 parent = await TryGetChannelAsync(parentId.Value, cancellationToken); } return Channel.Parse(response.Value, parent); } public async IAsyncEnumerable GetChannelThreadsAsync( IReadOnlyList channels, bool includeArchived = false, Snowflake? before = null, Snowflake? after = null, [EnumeratorCancellation] CancellationToken cancellationToken = default ) { var filteredChannels = channels // Categories cannot have threads .Where(c => !c.IsCategory) // Voice channels cannot have threads .Where(c => !c.IsVoice) // Empty channels cannot have threads .Where(c => !c.IsEmpty) // If the 'before' boundary is specified, skip channels that don't have messages // for that range, because thread-start event should always be accompanied by a message. // Note that we don't perform a similar check for the 'after' boundary, because // threads may have messages in range, even if the parent channel doesn't. .Where(c => before is null || c.MayHaveMessagesBefore(before.Value)) .ToArray(); // Track yielded thread IDs to avoid duplicates that can occur when a thread transitions // from active to archived between the two separate API calls used to fetch threads. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1433 var seenThreadIds = new HashSet(); // User accounts can only fetch threads using the search endpoint if (await ResolveTokenKindAsync(cancellationToken) == TokenKind.User) { foreach (var channel in filteredChannels) { // Either include both active and archived threads, or only active threads foreach ( var isArchived in includeArchived ? new[] { false, true } : new[] { false } ) { // Offset is just the index of the last thread in the previous batch var currentOffset = 0; while (true) { var url = new UrlBuilder() .SetPath($"channels/{channel.Id}/threads/search") .SetQueryParameter("sort_by", "last_message_time") .SetQueryParameter("sort_order", "desc") .SetQueryParameter("archived", isArchived.ToString().ToLowerInvariant()) .SetQueryParameter("offset", currentOffset.ToString()) .Build(); // Can be null on channels that the user cannot access or channels without threads var response = await TryGetJsonResponseAsync(url, cancellationToken); if (response is null) break; var breakOuter = false; foreach ( var threadJson in response.Value.GetProperty("threads").EnumerateArray() ) { var thread = Channel.Parse(threadJson, channel); // If the 'after' boundary is specified, we can break early, // because threads are sorted by last message timestamp. if (after is not null && !thread.MayHaveMessagesAfter(after.Value)) { breakOuter = true; break; } if (seenThreadIds.Add(thread.Id)) yield return thread; currentOffset++; } if (breakOuter) break; if (!response.Value.GetProperty("has_more").GetBoolean()) break; } } } } // Bot accounts can only fetch threads using the threads endpoint else { var guilds = new HashSet(); foreach (var channel in filteredChannels) guilds.Add(channel.GuildId); // Active threads foreach (var guildId in guilds) { var parentsById = filteredChannels.ToDictionary(c => c.Id); var response = await GetJsonResponseAsync( $"guilds/{guildId}/threads/active", cancellationToken ); foreach (var threadJson in response.GetProperty("threads").EnumerateArray()) { var parent = threadJson .GetPropertyOrNull("parent_id") ?.GetNonWhiteSpaceStringOrNull() ?.Pipe(Snowflake.Parse) .Pipe(parentsById.GetValueOrDefault); if (filteredChannels.Contains(parent)) { var thread = Channel.Parse(threadJson, parent); if (seenThreadIds.Add(thread.Id)) yield return thread; } } } // Archived threads if (includeArchived) { foreach (var channel in filteredChannels) { foreach (var archiveType in new[] { "public", "private" }) { // This endpoint parameter expects an ISO8601 timestamp, not a snowflake var currentBefore = before ?.ToDate() .ToString("O", CultureInfo.InvariantCulture); while (true) { // Threads are sorted by archive timestamp, not by last message timestamp var url = new UrlBuilder() .SetPath($"channels/{channel.Id}/threads/archived/{archiveType}") .SetQueryParameter("before", currentBefore) .Build(); // Can be null on certain channels var response = await TryGetJsonResponseAsync(url, cancellationToken); if (response is null) break; foreach ( var threadJson in response .Value.GetProperty("threads") .EnumerateArray() ) { var thread = Channel.Parse(threadJson, channel); currentBefore = threadJson .GetProperty("thread_metadata") .GetProperty("archive_timestamp") .GetString(); if (seenThreadIds.Add(thread.Id)) yield return thread; } if (!response.Value.GetProperty("has_more").GetBoolean()) break; } } } } } } private async ValueTask TryGetFirstMessageAsync( Snowflake channelId, Snowflake? after = null, CancellationToken cancellationToken = default ) { var url = new UrlBuilder() .SetPath($"channels/{channelId}/messages") .SetQueryParameter("limit", "1") .SetQueryParameter("after", (after ?? Snowflake.Zero).ToString()) .Build(); var response = await GetJsonResponseAsync(url, cancellationToken); var message = response.EnumerateArray().Select(Message.Parse).FirstOrDefault(); return message; } private async ValueTask TryGetLastMessageAsync( Snowflake channelId, Snowflake? before = null, CancellationToken cancellationToken = default ) { var url = new UrlBuilder() .SetPath($"channels/{channelId}/messages") .SetQueryParameter("limit", "1") .SetQueryParameter("before", before?.ToString()) .Build(); var response = await GetJsonResponseAsync(url, cancellationToken); return response.EnumerateArray().Select(Message.Parse).LastOrDefault(); } public async IAsyncEnumerable GetMessagesAsync( Snowflake channelId, Snowflake? after = null, Snowflake? before = null, IProgress? progress = null, [EnumeratorCancellation] CancellationToken cancellationToken = default ) { // Get the last message in the specified range, so we can later calculate the // progress based on the difference between message timestamps. // This also snapshots the boundaries, which means that messages posted after // the export started will not appear in the output. var lastMessage = await TryGetLastMessageAsync(channelId, before, cancellationToken); if (lastMessage is null || lastMessage.Timestamp < after?.ToDate()) yield break; // Keep track of the first message in range in order to calculate the progress var firstMessage = default(Message); var currentAfter = after ?? Snowflake.Zero; while (true) { var url = new UrlBuilder() .SetPath($"channels/{channelId}/messages") .SetQueryParameter("limit", "100") .SetQueryParameter("after", currentAfter.ToString()) .Build(); var response = await GetJsonResponseAsync(url, cancellationToken); var messages = response .EnumerateArray() .Select(Message.Parse) // Messages are returned from newest to oldest, so we need to reverse them .Reverse() .ToArray(); // Break if there are no messages (can happen if messages are deleted during execution) if (!messages.Any()) yield break; // If all messages are empty, make sure that it's not because the bot account doesn't // have the MESSAGE_CONTENT intent enabled. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1106#issuecomment-1741548959 if (messages.All(m => m.IsEmpty)) await EnsureMessageContentIntentAsync(cancellationToken); foreach (var message in messages) { firstMessage ??= message; // Ensure that the messages are in range if (message.Timestamp > lastMessage.Timestamp) yield break; // Report progress based on timestamps if (progress is not null) { var exportedDuration = (message.Timestamp - firstMessage.Timestamp).Duration(); var totalDuration = (lastMessage.Timestamp - firstMessage.Timestamp).Duration(); progress.Report( Percentage.FromFraction( // Avoid division by zero if all messages have the exact same timestamp // (which happens when there's only one message in the channel) totalDuration > TimeSpan.Zero ? exportedDuration / totalDuration : 1 ) ); } yield return message; currentAfter = message.Id; } } } public async IAsyncEnumerable GetMessagesInReverseAsync( Snowflake channelId, Snowflake? after = null, Snowflake? before = null, IProgress? progress = null, [EnumeratorCancellation] CancellationToken cancellationToken = default ) { // Get the first message in the specified range, so we can later calculate the // progress based on the difference between message timestamps. // Snapshotting is not necessary here because new messages can't appear in the past. var firstMessage = await TryGetFirstMessageAsync(channelId, after, cancellationToken); if (firstMessage is null || firstMessage.Timestamp > before?.ToDate()) yield break; // Keep track of the last message in range in order to calculate the progress var lastMessage = default(Message); var currentBefore = before; while (true) { var url = new UrlBuilder() .SetPath($"channels/{channelId}/messages") .SetQueryParameter("limit", "100") .SetQueryParameter("before", currentBefore?.ToString()) .Build(); var response = await GetJsonResponseAsync(url, cancellationToken); var messages = response.EnumerateArray().Select(Message.Parse).ToArray(); // Break if there are no messages (can happen if messages are deleted during execution) if (!messages.Any()) yield break; // If all messages are empty, make sure that it's not because the bot account doesn't // have the MESSAGE_CONTENT intent enabled. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1106#issuecomment-1741548959 if (messages.All(m => m.IsEmpty)) await EnsureMessageContentIntentAsync(cancellationToken); foreach (var message in messages) { lastMessage ??= message; // Report progress based on timestamps if (progress is not null) { var exportedDuration = (lastMessage.Timestamp - message.Timestamp).Duration(); var totalDuration = (lastMessage.Timestamp - firstMessage.Timestamp).Duration(); progress.Report( Percentage.FromFraction( // Avoid division by zero if all messages have the exact same timestamp // (which happens when there's only one message in the channel) totalDuration > TimeSpan.Zero ? exportedDuration / totalDuration : 1 ) ); } yield return message; } currentBefore = messages.Last().Id; } } public async IAsyncEnumerable GetMessageReactionsAsync( Snowflake channelId, Snowflake messageId, Emoji emoji, [EnumeratorCancellation] CancellationToken cancellationToken = default ) { var reactionName = emoji.Id is not null // Custom emoji ? emoji.Name + ':' + emoji.Id // Standard emoji : emoji.Name; var currentAfter = Snowflake.Zero; while (true) { var url = new UrlBuilder() .SetPath( $"channels/{channelId}/messages/{messageId}/reactions/{Uri.EscapeDataString(reactionName)}" ) .SetQueryParameter("limit", "100") .SetQueryParameter("after", currentAfter.ToString()) .Build(); // Can be null on reactions with an emoji that has been deleted (?) // https://github.com/Tyrrrz/DiscordChatExporter/issues/1226 var response = await TryGetJsonResponseAsync(url, cancellationToken); if (response is null) yield break; var count = 0; foreach (var userJson in response.Value.EnumerateArray()) { var user = User.Parse(userJson); yield return user; currentAfter = user.Id; count++; } if (count <= 0) yield break; } } } ================================================ FILE: DiscordChatExporter.Core/Discord/Dump/DataDump.cs ================================================ using System; using System.Collections.Generic; using System.IO.Compression; using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using JsonExtensions.Reading; namespace DiscordChatExporter.Core.Discord.Dump; public partial class DataDump(IReadOnlyList channels) { public IReadOnlyList Channels { get; } = channels; } public partial class DataDump { public static DataDump Parse(JsonElement json) { var channels = new List(); foreach (var property in json.EnumerateObjectOrEmpty()) { var channelId = Snowflake.Parse(property.Name); var channelName = property.Value.GetString(); // Null items refer to deleted channels if (channelName is null) continue; var channel = new DataDumpChannel(channelId, channelName); channels.Add(channel); } return new DataDump(channels); } public static async ValueTask LoadAsync( string zipFilePath, CancellationToken cancellationToken = default ) { await using var archive = await ZipFile.OpenReadAsync(zipFilePath, cancellationToken); // Use case-insensitive search to accommodate for different data dump versions // https://github.com/Tyrrrz/DiscordChatExporter/issues/1459 var entry = archive.Entries.FirstOrDefault(e => e.FullName.Equals("messages/index.json", StringComparison.OrdinalIgnoreCase) ) ?? throw new InvalidOperationException( "Failed to locate the channel index inside the data package." ); await using var stream = await entry.OpenAsync(cancellationToken); using var document = await JsonDocument.ParseAsync(stream, default, cancellationToken); return Parse(document.RootElement); } } ================================================ FILE: DiscordChatExporter.Core/Discord/Dump/DataDumpChannel.cs ================================================ namespace DiscordChatExporter.Core.Discord.Dump; public record DataDumpChannel(Snowflake Id, string Name); ================================================ FILE: DiscordChatExporter.Core/Discord/RateLimitPreference.cs ================================================ using System; namespace DiscordChatExporter.Core.Discord; [Flags] public enum RateLimitPreference { IgnoreAll = 0, RespectForUserTokens = 0b1, RespectForBotTokens = 0b10, RespectAll = RespectForUserTokens | RespectForBotTokens, } public static class RateLimitPreferenceExtensions { extension(RateLimitPreference rateLimitPreference) { internal bool IsRespectedFor(TokenKind tokenKind) => tokenKind switch { TokenKind.User => (rateLimitPreference & RateLimitPreference.RespectForUserTokens) != 0, TokenKind.Bot => (rateLimitPreference & RateLimitPreference.RespectForBotTokens) != 0, _ => throw new ArgumentOutOfRangeException(nameof(tokenKind)), }; public string GetDisplayName() => rateLimitPreference switch { RateLimitPreference.IgnoreAll => "Always ignore", RateLimitPreference.RespectForUserTokens => "Respect for user tokens", RateLimitPreference.RespectForBotTokens => "Respect for bot tokens", RateLimitPreference.RespectAll => "Always respect", _ => throw new ArgumentOutOfRangeException(nameof(rateLimitPreference)), }; } } ================================================ FILE: DiscordChatExporter.Core/Discord/Snowflake.cs ================================================ using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; namespace DiscordChatExporter.Core.Discord; public readonly partial record struct Snowflake(ulong Value) { public DateTimeOffset ToDate() => DateTimeOffset .FromUnixTimeMilliseconds((long)((Value >> 22) + 1420070400000UL)) .ToLocalTime(); [ExcludeFromCodeCoverage] public override string ToString() => Value.ToString(CultureInfo.InvariantCulture); } public partial record struct Snowflake { public static Snowflake Zero { get; } = new(0); public static Snowflake FromDate(DateTimeOffset instant) => new(((ulong)instant.ToUnixTimeMilliseconds() - 1420070400000UL) << 22); public static Snowflake? TryParse(string? value, IFormatProvider? formatProvider = null) { if (string.IsNullOrWhiteSpace(value)) return null; // As number if (ulong.TryParse(value, NumberStyles.None, formatProvider, out var number)) return new Snowflake(number); // As date if (DateTimeOffset.TryParse(value, formatProvider, DateTimeStyles.None, out var instant)) return FromDate(instant); return null; } public static Snowflake Parse(string value, IFormatProvider? formatProvider) => TryParse(value, formatProvider) ?? throw new FormatException($"Invalid snowflake '{value}'."); public static Snowflake Parse(string value) => Parse(value, null); } public partial record struct Snowflake : IComparable, IComparable { public int CompareTo(Snowflake other) => Value.CompareTo(other.Value); public int CompareTo(object? obj) { if (obj is not Snowflake other) throw new ArgumentException($"Object must be of type {nameof(Snowflake)}."); return Value.CompareTo(other.Value); } public static bool operator >(Snowflake left, Snowflake right) => left.CompareTo(right) > 0; public static bool operator <(Snowflake left, Snowflake right) => left.CompareTo(right) < 0; } ================================================ FILE: DiscordChatExporter.Core/Discord/TokenKind.cs ================================================ namespace DiscordChatExporter.Core.Discord; public enum TokenKind { User, Bot, } ================================================ FILE: DiscordChatExporter.Core/DiscordChatExporter.Core.csproj ================================================ ================================================ FILE: DiscordChatExporter.Core/Exceptions/ChannelEmptyException.cs ================================================ namespace DiscordChatExporter.Core.Exceptions; public class ChannelEmptyException(string message) : DiscordChatExporterException(message); ================================================ FILE: DiscordChatExporter.Core/Exceptions/DiscordChatExporterException.cs ================================================ using System; namespace DiscordChatExporter.Core.Exceptions; public class DiscordChatExporterException( string message, bool isFatal = false, Exception? innerException = null ) : Exception(message, innerException) { public bool IsFatal { get; } = isFatal; } ================================================ FILE: DiscordChatExporter.Core/Exporting/ChannelExporter.cs ================================================ using System; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Exceptions; using Gress; namespace DiscordChatExporter.Core.Exporting; public class ChannelExporter(DiscordClient discord) { public async ValueTask ExportChannelAsync( ExportRequest request, IProgress? progress = null, CancellationToken cancellationToken = default ) { // Forum channels don't have messages, they are just a list of threads if (request.Channel.Kind == ChannelKind.GuildForum) { throw new DiscordChatExporterException( $"Channel '{request.Channel.Name}' " + $"of guild '{request.Guild.Name}' " + $"is a forum and cannot be exported directly. " + "You need to pull its threads and export them individually." ); } // Build context var context = new ExportContext(discord, request); await context.PopulateChannelsAndRolesAsync(cancellationToken); // Initialize the exporter before further checks to ensure the file is created even if // an exception is thrown after this point. await using var messageExporter = new MessageExporter(context); // Check if the channel is empty if (request.Channel.IsEmpty) { throw new ChannelEmptyException( $"Channel '{request.Channel.Name}' " + $"of guild '{request.Guild.Name}' " + $"does not contain any messages; an empty file will be created." ); } // Check if the 'before' and 'after' boundaries are valid if ( ( request.Before is not null && !request.Channel.MayHaveMessagesBefore(request.Before.Value) ) || ( request.After is not null && !request.Channel.MayHaveMessagesAfter(request.After.Value) ) ) { throw new ChannelEmptyException( $"Channel '{request.Channel.Name}' " + $"of guild '{request.Guild.Name}' " + $"does not contain any messages within the specified period; an empty file will be created." ); } var messages = !request.IsReverseMessageOrder ? discord.GetMessagesAsync( request.Channel.Id, request.After, request.Before, progress, cancellationToken ) : discord.GetMessagesInReverseAsync( request.Channel.Id, request.After, request.Before, progress, cancellationToken ); await foreach (var message in messages) { try { // Resolve members for referenced users foreach (var user in message.GetReferencedUsers()) await context.PopulateMemberAsync(user, cancellationToken); // Export the message if (request.MessageFilter.IsMatch(message)) await messageExporter.ExportMessageAsync(message, cancellationToken); } catch (Exception ex) { // Provide more context to the exception, to simplify debugging based on error messages throw new DiscordChatExporterException( $"Failed to export message #{message.Id} " + $"in channel '{request.Channel.Name}' (#{request.Channel.Id}) " + $"of guild '{request.Guild.Name} (#{request.Guild.Id})'.", ex is not DiscordChatExporterException dex || dex.IsFatal, ex ); } } } } ================================================ FILE: DiscordChatExporter.Core/Exporting/CsvMessageWriter.cs ================================================ using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; internal partial class CsvMessageWriter(Stream stream, ExportContext context) : MessageWriter(stream, context) { private readonly TextWriter _writer = new StreamWriter(stream); private async ValueTask FormatMarkdownAsync( string markdown, CancellationToken cancellationToken = default ) => Context.Request.ShouldFormatMarkdown ? await PlainTextMarkdownVisitor.FormatAsync(Context, markdown, cancellationToken) : markdown; public override async ValueTask WritePreambleAsync( CancellationToken cancellationToken = default ) => await _writer.WriteLineAsync("AuthorID,Author,Date,Content,Attachments,Reactions"); private async ValueTask WriteAttachmentsAsync( IReadOnlyList attachments, CancellationToken cancellationToken = default ) { var buffer = new StringBuilder(); foreach (var attachment in attachments) { cancellationToken.ThrowIfCancellationRequested(); buffer .AppendIfNotEmpty(',') .Append(await Context.ResolveAssetUrlAsync(attachment.Url, cancellationToken)); } await _writer.WriteAsync(CsvEncode(buffer.ToString())); } private async ValueTask WriteReactionsAsync( IReadOnlyList reactions, CancellationToken cancellationToken = default ) { var buffer = new StringBuilder(); foreach (var reaction in reactions) { cancellationToken.ThrowIfCancellationRequested(); buffer .AppendIfNotEmpty(',') .Append(reaction.Emoji.Name) .Append(' ') .Append('(') .Append(reaction.Count) .Append(')'); } await _writer.WriteAsync(CsvEncode(buffer.ToString())); } public override async ValueTask WriteMessageAsync( Message message, CancellationToken cancellationToken = default ) { await base.WriteMessageAsync(message, cancellationToken); // Author ID await _writer.WriteAsync(CsvEncode(message.Author.Id.ToString())); await _writer.WriteAsync(','); // Author name await _writer.WriteAsync(CsvEncode(message.Author.FullName)); await _writer.WriteAsync(','); // Message timestamp await _writer.WriteAsync(CsvEncode(Context.FormatDate(message.Timestamp, "o"))); await _writer.WriteAsync(','); // Message content if (message.IsSystemNotification) { await _writer.WriteAsync(CsvEncode(message.GetFallbackContent())); } else { await _writer.WriteAsync( CsvEncode(await FormatMarkdownAsync(message.Content, cancellationToken)) ); } await _writer.WriteAsync(','); // Attachments await WriteAttachmentsAsync(message.Attachments, cancellationToken); await _writer.WriteAsync(','); // Reactions await WriteReactionsAsync(message.Reactions, cancellationToken); // Finish row await _writer.WriteLineAsync(); } public override async ValueTask DisposeAsync() { await _writer.DisposeAsync(); await base.DisposeAsync(); } } internal partial class CsvMessageWriter { private static string CsvEncode(string value) { value = value.Replace("\"", "\"\"", StringComparison.Ordinal); return $"\"{value}\""; } } ================================================ FILE: DiscordChatExporter.Core/Exporting/ExportAssetDownloader.cs ================================================ using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using System.Web; using AsyncKeyedLock; using DiscordChatExporter.Core.Utils; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; internal partial class ExportAssetDownloader(string workingDirPath, bool reuse) { private static readonly AsyncKeyedLocker Locker = new(); // File paths of the previously downloaded assets private readonly Dictionary _previousPathsByUrl = new(StringComparer.Ordinal); public async ValueTask DownloadAsync( string url, CancellationToken cancellationToken = default ) { var fileName = GetFileNameFromUrl(url); var filePath = Path.Combine(workingDirPath, fileName); using var _ = await Locker.LockAsync(filePath, cancellationToken); if (_previousPathsByUrl.TryGetValue(url, out var cachedFilePath)) return cachedFilePath; // Reuse existing files if we're allowed to if (reuse && File.Exists(filePath)) return _previousPathsByUrl[url] = filePath; // Check for a file cached by the legacy naming scheme (5-char hash) and rename it // to the new naming scheme to preserve backwards compatibility with existing exports if (reuse) { var legacyFilePath = Path.Combine(workingDirPath, GetLegacyFileNameFromUrl(url)); if (File.Exists(legacyFilePath)) { // Overwrite in case the destination file was created concurrently between our // earlier existence check and this move operation try { File.Move(legacyFilePath, filePath, overwrite: true); return _previousPathsByUrl[url] = filePath; } catch (IOException) { // The legacy file was moved or deleted concurrently or something else happened. // Upgrading old files is not crucial, so we can just move on. } } } Directory.CreateDirectory(workingDirPath); await Http.ResiliencePipeline.ExecuteAsync( async innerCancellationToken => { // Download the file using var response = await Http.Client.GetAsync(url, innerCancellationToken); await using var output = File.Create(filePath); await response.Content.CopyToAsync(output, innerCancellationToken); }, cancellationToken ); return _previousPathsByUrl[url] = filePath; } } internal partial class ExportAssetDownloader { private static string NormalizeUrl(string url) { // Remove signature parameters from Discord CDN URLs to normalize them var uri = new Uri(url); if (!string.Equals(uri.Host, "cdn.discordapp.com", StringComparison.OrdinalIgnoreCase)) return url; var query = HttpUtility.ParseQueryString(uri.Query); query.Remove("ex"); query.Remove("is"); query.Remove("hm"); return uri.GetLeftPart(UriPartial.Path) + query; } private static string GetFileNameFromUrl(string url, string urlHash) { // Try to extract the file name from URL var fileName = Regex.Match(url, @".+/([^?]*)").Groups[1].Value; // If it's not there, just use the URL hash as the file name if (string.IsNullOrWhiteSpace(fileName)) return urlHash; // Otherwise, use the original file name but inject the hash in the middle var fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileName); var fileExtension = Path.GetExtension(fileName); // Probably not a file extension, just a dot in a long file name // https://github.com/Tyrrrz/DiscordChatExporter/pull/812 if (fileExtension.Length > 41) { fileNameWithoutExtension = fileName; fileExtension = ""; } return Path.EscapeFileName( fileNameWithoutExtension.Truncate(42) + '-' + urlHash + fileExtension ); } private static string GetFileNameFromUrl(string url) => GetFileNameFromUrl( url, // 16 chars = 64 bits, reaches 1% collision probability at ~609 million files SHA256 .HashData(Encoding.UTF8.GetBytes(NormalizeUrl(url))) .Pipe(Convert.ToHexStringLower) .Truncate(16) ); // Legacy naming used a 5-char hash, kept for backwards compatibility with existing exports private static string GetLegacyFileNameFromUrl(string url) => GetFileNameFromUrl( url, SHA256 .HashData(Encoding.UTF8.GetBytes(NormalizeUrl(url))) .Pipe(Convert.ToHexStringLower) // 5 chars = 20 bits, reaches 1% collision probability at ~145 files .Truncate(5) ); } ================================================ FILE: DiscordChatExporter.Core/Exporting/ExportContext.cs ================================================ using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Utils; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; internal class ExportContext(DiscordClient discord, ExportRequest request) { private readonly Dictionary _membersById = new(); private readonly Dictionary _channelsById = new(); private readonly Dictionary _rolesById = new(); private readonly ExportAssetDownloader _assetDownloader = new( request.AssetsDirPath, request.ShouldReuseAssets ); public DiscordClient Discord { get; } = discord; public ExportRequest Request { get; } = request; public DateTimeOffset NormalizeDate(DateTimeOffset instant) => Request.IsUtcNormalizationEnabled ? instant.ToUniversalTime() : instant.ToLocalTime(); public string FormatDate(DateTimeOffset instant, string format = "g") => NormalizeDate(instant).ToString(format, Request.CultureInfo); public async ValueTask PopulateChannelsAndRolesAsync( CancellationToken cancellationToken = default ) { await foreach ( var channel in Discord.GetGuildChannelsAsync(Request.Guild.Id, cancellationToken) ) { _channelsById[channel.Id] = channel; } await foreach (var role in Discord.GetGuildRolesAsync(Request.Guild.Id, cancellationToken)) { _rolesById[role.Id] = role; } } // Threads are not preloaded, so we resolve them on demand public async ValueTask PopulateChannelAsync( Snowflake id, CancellationToken cancellationToken = default ) { if (_channelsById.ContainsKey(id)) return; var channel = await Discord.TryGetChannelAsync(id, cancellationToken); // Store the result even if it's null, to avoid re-fetching non-existing channels _channelsById[id] = channel; } // Because members cannot be pulled in bulk, we need to populate them on demand private async ValueTask PopulateMemberAsync( Snowflake id, User? fallbackUser, CancellationToken cancellationToken = default ) { if (_membersById.ContainsKey(id)) return; var member = await Discord.TryGetGuildMemberAsync(Request.Guild.Id, id, cancellationToken); // User may have left the guild since they were mentioned. // Create a dummy member object based on the user info. if (member is null) { var user = fallbackUser ?? await Discord.TryGetUserAsync(id, cancellationToken); // User may have been deleted since they were mentioned if (user is not null) member = Member.CreateFallback(user); } // Store the result even if it's null, to avoid re-fetching non-existing members _membersById[id] = member; } public async ValueTask PopulateMemberAsync( Snowflake id, CancellationToken cancellationToken = default ) => await PopulateMemberAsync(id, null, cancellationToken); public async ValueTask PopulateMemberAsync( User user, CancellationToken cancellationToken = default ) => await PopulateMemberAsync(user.Id, user, cancellationToken); public Member? TryGetMember(Snowflake id) => _membersById.GetValueOrDefault(id); public Channel? TryGetChannel(Snowflake id) => _channelsById.GetValueOrDefault(id); public Role? TryGetRole(Snowflake id) => _rolesById.GetValueOrDefault(id); public IReadOnlyList GetUserRoles(Snowflake id) => TryGetMember(id) ?.RoleIds.Select(TryGetRole) .WhereNotNull() .OrderByDescending(r => r.Position) .ToArray() ?? []; public Color? TryGetUserColor(Snowflake id) => GetUserRoles(id).Where(r => r.Color is not null).Select(r => r.Color).FirstOrDefault(); public async ValueTask ResolveAssetUrlAsync( string url, CancellationToken cancellationToken = default ) { if (!Request.ShouldDownloadAssets) return url; try { var filePath = await _assetDownloader.DownloadAsync(url, cancellationToken); var relativeFilePath = Path.GetRelativePath(Request.OutputDirPath, filePath); // Prefer the relative path so that the export package can be copied around without breaking references. // However, if the assets directory lies outside the export directory, use the absolute path instead. var shouldUseAbsoluteFilePath = relativeFilePath.StartsWith( ".." + Path.DirectorySeparatorChar, StringComparison.Ordinal ) || relativeFilePath.StartsWith( ".." + Path.AltDirectorySeparatorChar, StringComparison.Ordinal ); var optimalFilePath = shouldUseAbsoluteFilePath ? filePath : relativeFilePath; // For HTML, the path needs to be properly formatted if (Request.Format is ExportFormat.HtmlDark or ExportFormat.HtmlLight) return Url.EncodeFilePath(optimalFilePath); return optimalFilePath; } // Try to catch only exceptions related to failed HTTP requests // https://github.com/Tyrrrz/DiscordChatExporter/issues/332 // https://github.com/Tyrrrz/DiscordChatExporter/issues/372 catch (Exception ex) when (ex is HttpRequestException or OperationCanceledException) { // We don't want this to crash the exporting process in case of failure. // TODO: add logging so we can be more liberal with catching exceptions. return url; } } } ================================================ FILE: DiscordChatExporter.Core/Exporting/ExportFormat.cs ================================================ using System; namespace DiscordChatExporter.Core.Exporting; public enum ExportFormat { PlainText, HtmlDark, HtmlLight, Csv, Json, } public static class ExportFormatExtensions { extension(ExportFormat format) { public string GetFileExtension() => format switch { ExportFormat.PlainText => "txt", ExportFormat.HtmlDark => "html", ExportFormat.HtmlLight => "html", ExportFormat.Csv => "csv", ExportFormat.Json => "json", _ => throw new ArgumentOutOfRangeException(nameof(format)), }; public string GetDisplayName() => format switch { ExportFormat.PlainText => "TXT", ExportFormat.HtmlDark => "HTML (Dark)", ExportFormat.HtmlLight => "HTML (Light)", ExportFormat.Csv => "CSV", ExportFormat.Json => "JSON", _ => throw new ArgumentOutOfRangeException(nameof(format)), }; } } ================================================ FILE: DiscordChatExporter.Core/Exporting/ExportRequest.cs ================================================ using System; using System.Globalization; using System.IO; using System.Text; using System.Text.RegularExpressions; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Exporting.Filtering; using DiscordChatExporter.Core.Exporting.Partitioning; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; public partial class ExportRequest { public Guild Guild { get; } public Channel Channel { get; } public string OutputFilePath { get; } public string OutputDirPath { get; } public string AssetsDirPath { get; } public ExportFormat Format { get; } public Snowflake? After { get; } public Snowflake? Before { get; } public PartitionLimit PartitionLimit { get; } public MessageFilter MessageFilter { get; } public bool IsReverseMessageOrder { get; } public bool ShouldFormatMarkdown { get; } public bool ShouldDownloadAssets { get; } public bool ShouldReuseAssets { get; } public string? Locale { get; } public CultureInfo? CultureInfo { get; } public bool IsUtcNormalizationEnabled { get; } public ExportRequest( Guild guild, Channel channel, string outputPath, string? assetsDirPath, ExportFormat format, Snowflake? after, Snowflake? before, PartitionLimit partitionLimit, MessageFilter messageFilter, bool isReverseMessageOrder, bool shouldFormatMarkdown, bool shouldDownloadAssets, bool shouldReuseAssets, string? locale, bool isUtcNormalizationEnabled ) { Guild = guild; Channel = channel; Format = format; After = after; Before = before; PartitionLimit = partitionLimit; MessageFilter = messageFilter; IsReverseMessageOrder = isReverseMessageOrder; ShouldFormatMarkdown = shouldFormatMarkdown; ShouldDownloadAssets = shouldDownloadAssets; ShouldReuseAssets = shouldReuseAssets; Locale = locale; IsUtcNormalizationEnabled = isUtcNormalizationEnabled; OutputFilePath = GetOutputBaseFilePath(Guild, Channel, outputPath, Format, After, Before); OutputDirPath = Path.GetDirectoryName(OutputFilePath)!; AssetsDirPath = !string.IsNullOrWhiteSpace(assetsDirPath) ? FormatPath(assetsDirPath, Guild, Channel, After, Before) : $"{OutputFilePath}_Files{Path.DirectorySeparatorChar}"; CultureInfo = Locale?.Pipe(CultureInfo.GetCultureInfo); } } public partial class ExportRequest { public static string GetDefaultOutputFileName( Guild guild, Channel channel, ExportFormat format, Snowflake? after = null, Snowflake? before = null ) { var buffer = new StringBuilder(); // Guild name buffer.Append(guild.Name); // Parent name if (channel.Parent is not null) buffer.Append(" - ").Append(channel.Parent.Name); // Channel name and ID buffer .Append(" - ") .Append(channel.Name) .Append(' ') .Append('[') .Append(channel.Id) .Append(']'); // Date range if (after is not null || before is not null) { buffer.Append(' ').Append('('); // Both 'after' and 'before' are set if (after is not null && before is not null) { buffer.Append( $"{after.Value.ToDate():yyyy-MM-dd} to {before.Value.ToDate():yyyy-MM-dd}" ); } // Only 'after' is set else if (after is not null) { buffer.Append($"after {after.Value.ToDate():yyyy-MM-dd}"); } // Only 'before' is set else if (before is not null) { buffer.Append($"before {before.Value.ToDate():yyyy-MM-dd}"); } buffer.Append(')'); } // File extension buffer.Append('.').Append(format.GetFileExtension()); return Path.EscapeFileName(buffer.ToString()); } private static string FormatPath( string path, Guild guild, Channel channel, Snowflake? after, Snowflake? before ) => Regex.Replace( path, "%.", m => Path.EscapeFileName( m.Value switch { "%g" => guild.Id.ToString(), "%G" => guild.Name, "%t" => channel.Parent?.Id.ToString() ?? "", "%T" => channel.Parent?.Name ?? "", "%c" => channel.Id.ToString(), "%C" => channel.Name, "%p" => channel.Position?.ToString(CultureInfo.InvariantCulture) ?? "0", "%P" => channel.Parent?.Position?.ToString(CultureInfo.InvariantCulture) ?? "0", "%a" => after?.ToDate().ToString("yyyy-MM-dd", CultureInfo.InvariantCulture) ?? "", "%b" => before ?.ToDate() .ToString("yyyy-MM-dd", CultureInfo.InvariantCulture) ?? "", "%d" => DateTimeOffset.Now.ToString( "yyyy-MM-dd", CultureInfo.InvariantCulture ), "%%" => "%", _ => m.Value, } ) ); private static string GetOutputBaseFilePath( Guild guild, Channel channel, string outputPath, ExportFormat format, Snowflake? after = null, Snowflake? before = null ) { var actualOutputPath = FormatPath(outputPath, guild, channel, after, before); // Output is a directory if ( Directory.Exists(actualOutputPath) || string.IsNullOrWhiteSpace(Path.GetExtension(actualOutputPath)) ) { var fileName = GetDefaultOutputFileName(guild, channel, format, after, before); return Path.Combine(actualOutputPath, fileName); } // Output is a file return actualOutputPath; } } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/BinaryExpressionKind.cs ================================================ namespace DiscordChatExporter.Core.Exporting.Filtering; internal enum BinaryExpressionKind { Or, And, } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/BinaryExpressionMessageFilter.cs ================================================ using System; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class BinaryExpressionMessageFilter( MessageFilter first, MessageFilter second, BinaryExpressionKind kind ) : MessageFilter { public override bool IsMatch(Message message) => kind switch { BinaryExpressionKind.Or => first.IsMatch(message) || second.IsMatch(message), BinaryExpressionKind.And => first.IsMatch(message) && second.IsMatch(message), _ => throw new InvalidOperationException($"Unknown binary expression kind '{kind}'."), }; } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/ContainsMessageFilter.cs ================================================ using System.Linq; using System.Text.RegularExpressions; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class ContainsMessageFilter(string text) : MessageFilter { // Match content within word boundaries, between spaces, or as the whole input. // For example, "max" shouldn't match on content "our maximum effort", // but should match on content "our max effort". // Also, "(max)" should match on content "our (max) effort", even though // parentheses are not considered word characters. // https://github.com/Tyrrrz/DiscordChatExporter/issues/909 private bool IsMatch(string? content) => !string.IsNullOrWhiteSpace(content) && Regex.IsMatch( content, @"(?:\b|\s|^)" + Regex.Escape(text) + @"(?:\b|\s|$)", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant ); public override bool IsMatch(Message message) => IsMatch(message.Content) || message.Embeds.Any(e => IsMatch(e.Title) || IsMatch(e.Author?.Name) || IsMatch(e.Description) || IsMatch(e.Footer?.Text) || e.Fields.Any(f => IsMatch(f.Name) || IsMatch(f.Value)) ); } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/FromMessageFilter.cs ================================================ using System; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class FromMessageFilter(string value) : MessageFilter { public override bool IsMatch(Message message) => string.Equals(value, message.Author.Name, StringComparison.OrdinalIgnoreCase) || string.Equals(value, message.Author.DisplayName, StringComparison.OrdinalIgnoreCase) || string.Equals(value, message.Author.FullName, StringComparison.OrdinalIgnoreCase) || string.Equals(value, message.Author.Id.ToString(), StringComparison.OrdinalIgnoreCase); } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/HasMessageFilter.cs ================================================ using System; using System.Linq; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Markdown.Parsing; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class HasMessageFilter(MessageContentMatchKind kind) : MessageFilter { public override bool IsMatch(Message message) => kind switch { MessageContentMatchKind.Link => MarkdownParser.ExtractLinks(message.Content).Any(), MessageContentMatchKind.Embed => message.Embeds.Any(), MessageContentMatchKind.File => message.Attachments.Any(), MessageContentMatchKind.Video => message.Attachments.Any(file => file.IsVideo), MessageContentMatchKind.Image => message.Attachments.Any(file => file.IsImage), MessageContentMatchKind.Sound => message.Attachments.Any(file => file.IsAudio), MessageContentMatchKind.Pin => message.IsPinned, MessageContentMatchKind.Invite => MarkdownParser .ExtractLinks(message.Content) .Select(l => l.Url) .Select(Invite.TryGetCodeFromUrl) .Any(c => !string.IsNullOrWhiteSpace(c)), _ => throw new InvalidOperationException( $"Unknown message content match kind '{kind}'." ), }; } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/MentionsMessageFilter.cs ================================================ using System; using System.Linq; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class MentionsMessageFilter(string value) : MessageFilter { public override bool IsMatch(Message message) => message.MentionedUsers.Any(user => string.Equals(value, user.Name, StringComparison.OrdinalIgnoreCase) || string.Equals(value, user.DisplayName, StringComparison.OrdinalIgnoreCase) || string.Equals(value, user.FullName, StringComparison.OrdinalIgnoreCase) || string.Equals(value, user.Id.ToString(), StringComparison.OrdinalIgnoreCase) ); } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/MessageContentMatchKind.cs ================================================ namespace DiscordChatExporter.Core.Exporting.Filtering; internal enum MessageContentMatchKind { Link, Embed, File, Video, Image, Sound, Pin, Invite, } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/MessageFilter.cs ================================================ using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Exporting.Filtering.Parsing; using Superpower; namespace DiscordChatExporter.Core.Exporting.Filtering; public abstract partial class MessageFilter { public abstract bool IsMatch(Message message); } public partial class MessageFilter { public static MessageFilter Null { get; } = new NullMessageFilter(); public static MessageFilter Parse(string value) => FilterGrammar.Filter.Parse(value); } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/NegatedMessageFilter.cs ================================================ using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class NegatedMessageFilter(MessageFilter filter) : MessageFilter { public override bool IsMatch(Message message) => !filter.IsMatch(message); } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/NullMessageFilter.cs ================================================ using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class NullMessageFilter : MessageFilter { public override bool IsMatch(Message message) => true; } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/Parsing/FilterGrammar.cs ================================================ using DiscordChatExporter.Core.Utils.Extensions; using Superpower; using Superpower.Parsers; namespace DiscordChatExporter.Core.Exporting.Filtering.Parsing; internal static class FilterGrammar { private static readonly TextParser EscapedCharacter = Character .EqualTo('\\') .IgnoreThen(Character.AnyChar); private static readonly TextParser QuotedString = from open in Character.In('"', '\'') from value in Parse.OneOf(EscapedCharacter, Character.Except(open)).Many().Text() from close in Character.EqualTo(open) select value; private static readonly TextParser UnquotedString = Parse .OneOf( EscapedCharacter, // Avoid whitespace as it's treated as an implicit 'and' operator. // Also avoid all special tokens used by other parsers. Character.ExceptIn(' ', '(', ')', '"', '\'', '-', '~', '|', '&') ) .AtLeastOnce() .Text(); private static readonly TextParser String = Parse .OneOf(QuotedString, UnquotedString) .Named("text string"); private static readonly TextParser ContainsFilter = String.Select(v => (MessageFilter)new ContainsMessageFilter(v) ); private static readonly TextParser FromFilter = Span.EqualToIgnoreCase("from:") .Try() .IgnoreThen(String) .Select(v => (MessageFilter)new FromMessageFilter(v)) .Named("from:"); private static readonly TextParser MentionsFilter = Span.EqualToIgnoreCase( "mentions:" ) .Try() .IgnoreThen(String) .Select(v => (MessageFilter)new MentionsMessageFilter(v)) .Named("mentions:"); private static readonly TextParser ReactionFilter = Span.EqualToIgnoreCase( "reaction:" ) .Try() .IgnoreThen(String) .Select(v => (MessageFilter)new ReactionMessageFilter(v)) .Named("reaction:"); private static readonly TextParser HasFilter = Span.EqualToIgnoreCase("has:") .Try() .IgnoreThen( Parse.OneOf( Span.EqualToIgnoreCase("link") .IgnoreThen(Parse.Return(MessageContentMatchKind.Link)) .Try(), Span.EqualToIgnoreCase("embed") .IgnoreThen(Parse.Return(MessageContentMatchKind.Embed)) .Try(), Span.EqualToIgnoreCase("file") .IgnoreThen(Parse.Return(MessageContentMatchKind.File)) .Try(), Span.EqualToIgnoreCase("video") .IgnoreThen(Parse.Return(MessageContentMatchKind.Video)) .Try(), Span.EqualToIgnoreCase("image") .IgnoreThen(Parse.Return(MessageContentMatchKind.Image)) .Try(), Span.EqualToIgnoreCase("sound") .IgnoreThen(Parse.Return(MessageContentMatchKind.Sound)), Span.EqualToIgnoreCase("pin") .IgnoreThen(Parse.Return(MessageContentMatchKind.Pin)) .Try(), Span.EqualToIgnoreCase("invite") .IgnoreThen(Parse.Return(MessageContentMatchKind.Invite)) .Try() ) ) .Select(k => (MessageFilter)new HasMessageFilter(k)) .Named("has:"); // Make sure that property-based filters like 'has:link' don't prevent text like 'hello' from being parsed. // https://github.com/Tyrrrz/DiscordChatExporter/issues/909#issuecomment-1227575455 private static readonly TextParser PrimitiveFilter = Parse.OneOf( FromFilter, MentionsFilter, ReactionFilter, HasFilter, ContainsFilter ); private static readonly TextParser GroupedFilter = from open in Character.EqualTo('(') from content in Parse.Ref(() => ChainedFilter!).Token() from close in Character.EqualTo(')') select content; private static readonly TextParser NegatedFilter = Character // Dash is annoying to use from CLI due to conflicts with options, so we provide tilde as an alias .In('-', '~') .IgnoreThen(Parse.OneOf(GroupedFilter, PrimitiveFilter)) .Select(f => (MessageFilter)new NegatedMessageFilter(f)); private static readonly TextParser ChainedFilter = Parse.Chain( // Operator Parse.OneOf( // Explicit operator Character.In('|', '&').Token().Try(), // Implicit operator (resolves to 'and') Character.EqualTo(' ').AtLeastOnce().IgnoreThen(Parse.Return(' ')) ), // Operand Parse.OneOf(NegatedFilter, GroupedFilter, PrimitiveFilter), // Reducer (op, left, right) => op switch { '|' => new BinaryExpressionMessageFilter(left, right, BinaryExpressionKind.Or), _ => new BinaryExpressionMessageFilter(left, right, BinaryExpressionKind.And), } ); public static readonly TextParser Filter = ChainedFilter.Token().AtEnd(); } ================================================ FILE: DiscordChatExporter.Core/Exporting/Filtering/ReactionMessageFilter.cs ================================================ using System; using System.Linq; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting.Filtering; internal class ReactionMessageFilter(string value) : MessageFilter { public override bool IsMatch(Message message) => message.Reactions.Any(r => string.Equals(value, r.Emoji.Id?.ToString(), StringComparison.OrdinalIgnoreCase) || string.Equals(value, r.Emoji.Name, StringComparison.OrdinalIgnoreCase) || string.Equals(value, r.Emoji.Code, StringComparison.OrdinalIgnoreCase) ); } ================================================ FILE: DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs ================================================ using System; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Markdown; using DiscordChatExporter.Core.Markdown.Parsing; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; internal partial class HtmlMarkdownVisitor( ExportContext context, StringBuilder buffer, bool isJumbo ) : MarkdownVisitor { protected override ValueTask VisitTextAsync( TextNode text, CancellationToken cancellationToken = default ) { buffer.Append(HtmlEncode(text.Text)); return default; } protected override async ValueTask VisitFormattingAsync( FormattingNode formatting, CancellationToken cancellationToken = default ) { var (openingTag, closingTag) = formatting.Kind switch { FormattingKind.Bold => ( // lang=html "", // lang=html "" ), FormattingKind.Italic => ( // lang=html "", // lang=html "" ), FormattingKind.Underline => ( // lang=html "", // lang=html "" ), FormattingKind.Strikethrough => ( // lang=html "", // lang=html "" ), FormattingKind.Spoiler => ( // lang=html """""", // lang=html """""" ), FormattingKind.Quote => ( // lang=html """
""", // lang=html """
""" ), _ => throw new InvalidOperationException( $"Unknown formatting kind '{formatting.Kind}'." ), }; buffer.Append(openingTag); await VisitAsync(formatting.Children, cancellationToken); buffer.Append(closingTag); } protected override async ValueTask VisitHeadingAsync( HeadingNode heading, CancellationToken cancellationToken = default ) { buffer.Append( // lang=html $"" ); await VisitAsync(heading.Children, cancellationToken); buffer.Append( // lang=html $"" ); } protected override async ValueTask VisitListAsync( ListNode list, CancellationToken cancellationToken = default ) { buffer.Append( // lang=html "
    " ); await VisitAsync(list.Items, cancellationToken); buffer.Append( // lang=html "
" ); } protected override async ValueTask VisitListItemAsync( ListItemNode listItem, CancellationToken cancellationToken = default ) { buffer.Append( // lang=html "
  • " ); await VisitAsync(listItem.Children, cancellationToken); buffer.Append( // lang=html "
  • " ); } protected override ValueTask VisitInlineCodeBlockAsync( InlineCodeBlockNode inlineCodeBlock, CancellationToken cancellationToken = default ) { buffer.Append( // lang=html $""" {HtmlEncode( inlineCodeBlock.Code )} """ ); return default; } protected override ValueTask VisitMultiLineCodeBlockAsync( MultiLineCodeBlockNode multiLineCodeBlock, CancellationToken cancellationToken = default ) { var highlightClass = !string.IsNullOrWhiteSpace(multiLineCodeBlock.Language) ? $"language-{multiLineCodeBlock.Language}" : "nohighlight"; buffer.Append( // lang=html $""" {HtmlEncode( multiLineCodeBlock.Code )} """ ); return default; } protected override async ValueTask VisitLinkAsync( LinkNode link, CancellationToken cancellationToken = default ) { // Try to extract the message ID if the link points to a Discord message var linkedMessageId = Regex .Match(link.Url, @"^https?://(?:discord|discordapp)\.com/channels/.*?/(\d+)/?$") .Groups[1] .Value; buffer.Append( !string.IsNullOrWhiteSpace(linkedMessageId) // lang=html ? $"""""" // lang=html : $"""""" ); await VisitAsync(link.Children, cancellationToken); buffer.Append( // lang=html "" ); } protected override async ValueTask VisitEmojiAsync( EmojiNode emoji, CancellationToken cancellationToken = default ) { var jumboClass = isJumbo ? "chatlog__emoji--large" : ""; buffer.Append( // lang=html $""" {emoji.Name} """ ); } protected override async ValueTask VisitMentionAsync( MentionNode mention, CancellationToken cancellationToken = default ) { if (mention.Kind == MentionKind.Everyone) { buffer.Append( // lang=html """ @everyone """ ); } else if (mention.Kind == MentionKind.Here) { buffer.Append( // lang=html """ @here """ ); } else if (mention.Kind == MentionKind.User) { // User mentions are not always included in the message object, // which means they need to be populated on demand. // https://github.com/Tyrrrz/DiscordChatExporter/issues/304 if (mention.TargetId is not null) await context.PopulateMemberAsync(mention.TargetId.Value, cancellationToken); var member = mention.TargetId?.Pipe(context.TryGetMember); var fullName = member?.User.FullName ?? "Unknown"; var displayName = member?.DisplayName ?? member?.User.DisplayName ?? "Unknown"; buffer.Append( // lang=html $""" @{HtmlEncode( displayName )} """ ); } else if (mention.Kind == MentionKind.Channel) { // Channel/thread mentions may reference threads that are not preloaded, // so we resolve them on demand. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1261 if (mention.TargetId is not null) await context.PopulateChannelAsync(mention.TargetId.Value, cancellationToken); var channel = mention.TargetId?.Pipe(context.TryGetChannel); var symbol = channel?.IsVoice == true ? "🔊" : "#"; var name = channel?.Name ?? "deleted-channel"; buffer.Append( // lang=html $""" {symbol}{HtmlEncode(name)} """ ); } else if (mention.Kind == MentionKind.Role) { var role = mention.TargetId?.Pipe(context.TryGetRole); var name = role?.Name ?? "deleted-role"; var color = role?.Color; var style = color is not null ? $""" color: rgb({color.Value.R}, {color.Value.G}, {color .Value .B}); background-color: rgba({color.Value.R}, {color.Value.G}, {color .Value .B}, 0.1); """ : null; buffer.Append( // lang=html $""" @{HtmlEncode(name)} """ ); } } protected override ValueTask VisitTimestampAsync( TimestampNode timestamp, CancellationToken cancellationToken = default ) { var formatted = timestamp.Instant is not null ? context.FormatDate(timestamp.Instant.Value, timestamp.Format ?? "g") : "Invalid date"; var formattedLong = timestamp.Instant is not null ? context.FormatDate(timestamp.Instant.Value, "f") : ""; buffer.Append( // lang=html $""" {HtmlEncode(formatted)} """ ); return default; } } internal partial class HtmlMarkdownVisitor { private static string HtmlEncode(string text) => WebUtility.HtmlEncode(text); public static async ValueTask FormatAsync( ExportContext context, string markdown, bool isJumboAllowed = true, CancellationToken cancellationToken = default ) { var nodes = MarkdownParser.Parse(markdown); var isJumbo = isJumboAllowed && nodes.All(n => n is EmojiNode || n is TextNode textNode && string.IsNullOrWhiteSpace(textNode.Text) ); var buffer = new StringBuilder(); await new HtmlMarkdownVisitor(context, buffer, isJumbo).VisitAsync( nodes, cancellationToken ); return buffer.ToString(); } } ================================================ FILE: DiscordChatExporter.Core/Exporting/HtmlMessageExtensions.cs ================================================ using System; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Discord.Data.Embeds; namespace DiscordChatExporter.Core.Exporting; internal static class HtmlMessageExtensions { // Message content is hidden if it's a link to an embedded media // https://github.com/Tyrrrz/DiscordChatExporter/issues/682 extension(Message message) { public bool IsContentHidden() { if (message.Embeds.Count != 1) return false; var embed = message.Embeds[0]; return string.Equals( message.Content.Trim(), embed.Url, StringComparison.OrdinalIgnoreCase ) && embed.Kind is EmbedKind.Image or EmbedKind.Gifv; } } } ================================================ FILE: DiscordChatExporter.Core/Exporting/HtmlMessageWriter.cs ================================================ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord.Data; using WebMarkupMin.Core; namespace DiscordChatExporter.Core.Exporting; internal class HtmlMessageWriter(Stream stream, ExportContext context, string themeName) : MessageWriter(stream, context) { private readonly TextWriter _writer = new StreamWriter(stream); private readonly HtmlMinifier _minifier = new(); private readonly List _messageGroup = []; // Note: in reverse order, last message appears earlier than the first message private bool CanJoinGroup(Message message) { // If the group is empty, any message can join it if (_messageGroup.LastOrDefault() is not { } lastMessage) return true; // Reply-like messages cannot join existing groups because they need to appear first if (message.IsReplyLike) return false; // Grouping for system notifications if (message.IsSystemNotification) { // Can only be grouped with other system notifications if (!lastMessage.IsSystemNotification) return false; } // Grouping for normal messages else { // Can only be grouped with other normal messages if (lastMessage.IsSystemNotification) return false; // Messages must be within 7 minutes of each other if ((message.Timestamp - lastMessage.Timestamp).Duration().TotalMinutes > 7) return false; // Messages must be sent by the same author if (message.Author.Id != lastMessage.Author.Id) return false; // If the author changed their name after the last message, their new messages // cannot join the existing group. if ( !string.Equals( message.Author.FullName, lastMessage.Author.FullName, StringComparison.Ordinal ) ) return false; } return true; } // Use to preserve blocks of code inside the templates private string Minify(string html) => _minifier.Minify(html, false).MinifiedContent; public override async ValueTask WritePreambleAsync( CancellationToken cancellationToken = default ) { await _writer.WriteLineAsync( Minify( await new PreambleTemplate { Context = Context, ThemeName = themeName }.RenderAsync( cancellationToken ) ) ); } private async ValueTask WriteMessageGroupAsync( IReadOnlyList messages, CancellationToken cancellationToken = default ) { await _writer.WriteLineAsync( Minify( await new MessageGroupTemplate { Context = Context, Messages = messages, }.RenderAsync(cancellationToken) ) ); } public override async ValueTask WriteMessageAsync( Message message, CancellationToken cancellationToken = default ) { await base.WriteMessageAsync(message, cancellationToken); // If the message can be grouped, buffer it for now if (CanJoinGroup(message)) { _messageGroup.Add(message); } // Otherwise, flush the group and render messages else { await WriteMessageGroupAsync(_messageGroup, cancellationToken); _messageGroup.Clear(); _messageGroup.Add(message); } } public override async ValueTask WritePostambleAsync( CancellationToken cancellationToken = default ) { // Flush current message group if (_messageGroup.Any()) await WriteMessageGroupAsync(_messageGroup, cancellationToken); await _writer.WriteLineAsync( Minify( await new PostambleTemplate { Context = Context, MessagesWritten = MessagesWritten, }.RenderAsync(cancellationToken) ) ); } public override async ValueTask DisposeAsync() { await _writer.DisposeAsync(); await base.DisposeAsync(); } } ================================================ FILE: DiscordChatExporter.Core/Exporting/JsonMessageWriter.cs ================================================ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.Encodings.Web; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Discord.Data.Embeds; using DiscordChatExporter.Core.Markdown.Parsing; using DiscordChatExporter.Core.Utils.Extensions; using JsonExtensions.Writing; namespace DiscordChatExporter.Core.Exporting; internal class JsonMessageWriter(Stream stream, ExportContext context) : MessageWriter(stream, context) { private readonly Utf8JsonWriter _writer = new( stream, new JsonWriterOptions { // https://github.com/Tyrrrz/DiscordChatExporter/issues/450 Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, Indented = true, // Validation errors may mask actual failures // https://github.com/Tyrrrz/DiscordChatExporter/issues/413 SkipValidation = true, } ); private async ValueTask FormatMarkdownAsync( string markdown, CancellationToken cancellationToken = default ) => Context.Request.ShouldFormatMarkdown ? await PlainTextMarkdownVisitor.FormatAsync(Context, markdown, cancellationToken) : markdown; private async ValueTask WriteUserAsync( User user, bool includeRoles = true, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString("id", user.Id.ToString()); _writer.WriteString("name", user.Name); _writer.WriteString("discriminator", user.DiscriminatorFormatted); _writer.WriteString( "nickname", Context.TryGetMember(user.Id)?.DisplayName ?? user.DisplayName ); _writer.WriteString("color", Context.TryGetUserColor(user.Id)?.ToHex()); _writer.WriteBoolean("isBot", user.IsBot); if (includeRoles) { _writer.WritePropertyName("roles"); await WriteRolesAsync(Context.GetUserRoles(user.Id), cancellationToken); } _writer.WriteString( "avatarUrl", await Context.ResolveAssetUrlAsync( Context.TryGetMember(user.Id)?.AvatarUrl ?? user.AvatarUrl, cancellationToken ) ); _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteEmojiAsync( Emoji emoji, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString("id", emoji.Id.ToString()); _writer.WriteString("name", emoji.Name); _writer.WriteString("code", emoji.Code); _writer.WriteBoolean("isAnimated", emoji.IsAnimated); _writer.WriteString( "imageUrl", await Context.ResolveAssetUrlAsync(emoji.ImageUrl, cancellationToken) ); _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteRolesAsync( IReadOnlyList roles, CancellationToken cancellationToken = default ) { _writer.WriteStartArray(); foreach (var role in roles) { _writer.WriteStartObject(); _writer.WriteString("id", role.Id.ToString()); _writer.WriteString("name", role.Name); _writer.WriteString("color", role.Color?.ToHex()); _writer.WriteNumber("position", role.Position); _writer.WriteEndObject(); } _writer.WriteEndArray(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteAttachmentAsync( Attachment attachment, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString("id", attachment.Id.ToString()); _writer.WriteString( "url", await Context.ResolveAssetUrlAsync(attachment.Url, cancellationToken) ); _writer.WriteString("fileName", attachment.FileName); _writer.WriteNumber("fileSizeBytes", attachment.FileSize.TotalBytes); _writer.WriteEndObject(); } private async ValueTask WriteEmbedAuthorAsync( EmbedAuthor embedAuthor, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString("name", embedAuthor.Name); _writer.WriteString("url", embedAuthor.Url); if (!string.IsNullOrWhiteSpace(embedAuthor.IconUrl)) { _writer.WriteString( "iconUrl", await Context.ResolveAssetUrlAsync( embedAuthor.IconProxyUrl ?? embedAuthor.IconUrl, cancellationToken ) ); _writer.WriteString("iconCanonicalUrl", embedAuthor.IconUrl); } _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteEmbedImageAsync( EmbedImage embedImage, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); if (!string.IsNullOrWhiteSpace(embedImage.Url)) { _writer.WriteString( "url", await Context.ResolveAssetUrlAsync( embedImage.ProxyUrl ?? embedImage.Url, cancellationToken ) ); _writer.WriteString("canonicalUrl", embedImage.Url); } _writer.WriteNumber("width", embedImage.Width); _writer.WriteNumber("height", embedImage.Height); _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteEmbedVideoAsync( EmbedVideo embedVideo, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); if (!string.IsNullOrWhiteSpace(embedVideo.Url)) { _writer.WriteString( "url", await Context.ResolveAssetUrlAsync( embedVideo.ProxyUrl ?? embedVideo.Url, cancellationToken ) ); _writer.WriteString("canonicalUrl", embedVideo.Url); } _writer.WriteNumber("width", embedVideo.Width); _writer.WriteNumber("height", embedVideo.Height); _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteEmbedFooterAsync( EmbedFooter embedFooter, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString("text", embedFooter.Text); if (!string.IsNullOrWhiteSpace(embedFooter.IconUrl)) { _writer.WriteString( "iconUrl", await Context.ResolveAssetUrlAsync( embedFooter.IconProxyUrl ?? embedFooter.IconUrl, cancellationToken ) ); _writer.WriteString("iconCanonicalUrl", embedFooter.IconUrl); } _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteEmbedFieldAsync( EmbedField embedField, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString("name", await FormatMarkdownAsync(embedField.Name, cancellationToken)); _writer.WriteString( "value", await FormatMarkdownAsync(embedField.Value, cancellationToken) ); _writer.WriteBoolean("isInline", embedField.IsInline); _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteEmbedAsync( Embed embed, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString( "title", await FormatMarkdownAsync(embed.Title ?? "", cancellationToken) ); _writer.WriteString("url", embed.Url); _writer.WriteString("timestamp", embed.Timestamp?.Pipe(Context.NormalizeDate)); _writer.WriteString( "description", await FormatMarkdownAsync(embed.Description ?? "", cancellationToken) ); if (embed.Color is not null) _writer.WriteString("color", embed.Color.Value.ToHex()); if (embed.Author is not null) { _writer.WritePropertyName("author"); await WriteEmbedAuthorAsync(embed.Author, cancellationToken); } if (embed.Thumbnail is not null) { _writer.WritePropertyName("thumbnail"); await WriteEmbedImageAsync(embed.Thumbnail, cancellationToken); } if (embed.Image is not null) { _writer.WritePropertyName("image"); await WriteEmbedImageAsync(embed.Image, cancellationToken); } if (embed.Video is not null) { _writer.WritePropertyName("video"); await WriteEmbedVideoAsync(embed.Video, cancellationToken); } if (embed.Footer is not null) { _writer.WritePropertyName("footer"); await WriteEmbedFooterAsync(embed.Footer, cancellationToken); } // Images _writer.WriteStartArray("images"); foreach (var image in embed.Images) await WriteEmbedImageAsync(image, cancellationToken); _writer.WriteEndArray(); // Fields _writer.WriteStartArray("fields"); foreach (var field in embed.Fields) await WriteEmbedFieldAsync(field, cancellationToken); _writer.WriteEndArray(); // Inline emoji _writer.WriteStartArray("inlineEmojis"); if (!string.IsNullOrWhiteSpace(embed.Description)) { foreach ( var emoji in MarkdownParser .ExtractEmojis(embed.Description) .DistinctBy(e => e.Name, StringComparer.Ordinal) ) { await WriteEmojiAsync( new Emoji(emoji.Id, emoji.Name, emoji.IsAnimated), cancellationToken ); } } _writer.WriteEndArray(); _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } private async ValueTask WriteStickerAsync( Sticker sticker, CancellationToken cancellationToken = default ) { _writer.WriteStartObject(); _writer.WriteString("id", sticker.Id.ToString()); _writer.WriteString("name", sticker.Name); _writer.WriteString("format", sticker.Format.ToString()); _writer.WriteString( "sourceUrl", await Context.ResolveAssetUrlAsync(sticker.SourceUrl, cancellationToken) ); _writer.WriteEndObject(); } public override async ValueTask WritePreambleAsync( CancellationToken cancellationToken = default ) { // Root object (start) _writer.WriteStartObject(); // Guild _writer.WriteStartObject("guild"); _writer.WriteString("id", Context.Request.Guild.Id.ToString()); _writer.WriteString("name", Context.Request.Guild.Name); _writer.WriteString( "iconUrl", await Context.ResolveAssetUrlAsync(Context.Request.Guild.IconUrl, cancellationToken) ); _writer.WriteEndObject(); // Channel _writer.WriteStartObject("channel"); _writer.WriteString("id", Context.Request.Channel.Id.ToString()); _writer.WriteString("type", Context.Request.Channel.Kind.ToString()); // Original schema did not account for threads, so 'category' actually refers to the parent channel _writer.WriteString("categoryId", Context.Request.Channel.Parent?.Id.ToString()); _writer.WriteString("category", Context.Request.Channel.Parent?.Name); _writer.WriteString("name", Context.Request.Channel.Name); _writer.WriteString("topic", Context.Request.Channel.Topic); if (!string.IsNullOrWhiteSpace(Context.Request.Channel.IconUrl)) { _writer.WriteString( "iconUrl", await Context.ResolveAssetUrlAsync( Context.Request.Channel.IconUrl, cancellationToken ) ); } _writer.WriteEndObject(); // Date range _writer.WriteStartObject("dateRange"); _writer.WriteString("after", Context.Request.After?.ToDate().Pipe(Context.NormalizeDate)); _writer.WriteString("before", Context.Request.Before?.ToDate().Pipe(Context.NormalizeDate)); _writer.WriteEndObject(); // Timestamp _writer.WriteString("exportedAt", Context.NormalizeDate(DateTimeOffset.UtcNow)); // Message array (start) _writer.WriteStartArray("messages"); await _writer.FlushAsync(cancellationToken); } public override async ValueTask WriteMessageAsync( Message message, CancellationToken cancellationToken = default ) { await base.WriteMessageAsync(message, cancellationToken); _writer.WriteStartObject(); // Metadata _writer.WriteString("id", message.Id.ToString()); _writer.WriteString("type", message.Kind.ToString()); _writer.WriteString("timestamp", Context.NormalizeDate(message.Timestamp)); _writer.WriteString( "timestampEdited", message.EditedTimestamp?.Pipe(Context.NormalizeDate) ); _writer.WriteString( "callEndedTimestamp", message.CallEndedTimestamp?.Pipe(Context.NormalizeDate) ); _writer.WriteBoolean("isPinned", message.IsPinned); // Content if (message.IsSystemNotification) { _writer.WriteString("content", message.GetFallbackContent()); } else { _writer.WriteString( "content", await FormatMarkdownAsync(message.Content, cancellationToken) ); } // Author _writer.WritePropertyName("author"); await WriteUserAsync(message.Author, true, cancellationToken); // Attachments _writer.WriteStartArray("attachments"); foreach (var attachment in message.Attachments) await WriteAttachmentAsync(attachment, cancellationToken); _writer.WriteEndArray(); // Embeds _writer.WriteStartArray("embeds"); foreach (var embed in message.Embeds) await WriteEmbedAsync(embed, cancellationToken); _writer.WriteEndArray(); // Stickers _writer.WriteStartArray("stickers"); foreach (var sticker in message.Stickers) await WriteStickerAsync(sticker, cancellationToken); _writer.WriteEndArray(); // Reactions _writer.WriteStartArray("reactions"); foreach (var reaction in message.Reactions) { _writer.WriteStartObject(); // Emoji _writer.WritePropertyName("emoji"); await WriteEmojiAsync(reaction.Emoji, cancellationToken); _writer.WriteNumber("count", reaction.Count); // Reaction authors _writer.WriteStartArray("users"); await foreach ( var user in Context.Discord.GetMessageReactionsAsync( Context.Request.Channel.Id, message.Id, reaction.Emoji, cancellationToken ) ) { await WriteUserAsync(user, false, cancellationToken); } _writer.WriteEndArray(); _writer.WriteEndObject(); } _writer.WriteEndArray(); // Mentions _writer.WriteStartArray("mentions"); foreach (var user in message.MentionedUsers) await WriteUserAsync(user, true, cancellationToken); _writer.WriteEndArray(); // Message reference if (message.Reference is not null) { _writer.WriteStartObject("reference"); _writer.WriteString("type", message.Reference.Kind.ToString()); _writer.WriteString("messageId", message.Reference.MessageId?.ToString()); _writer.WriteString("channelId", message.Reference.ChannelId?.ToString()); _writer.WriteString("guildId", message.Reference.GuildId?.ToString()); _writer.WriteEndObject(); } // Forwarded message if (message.ForwardedMessage is not null) { _writer.WriteStartObject("forwardedMessage"); _writer.WriteString( "timestamp", Context.NormalizeDate(message.ForwardedMessage.Timestamp) ); _writer.WriteString( "timestampEdited", message.ForwardedMessage.EditedTimestamp?.Pipe(Context.NormalizeDate) ); _writer.WriteString( "content", await FormatMarkdownAsync(message.ForwardedMessage.Content, cancellationToken) ); // Forwarded attachments _writer.WriteStartArray("attachments"); foreach (var attachment in message.ForwardedMessage.Attachments) await WriteAttachmentAsync(attachment, cancellationToken); _writer.WriteEndArray(); // Forwarded embeds _writer.WriteStartArray("embeds"); foreach (var embed in message.ForwardedMessage.Embeds) await WriteEmbedAsync(embed, cancellationToken); _writer.WriteEndArray(); // Forwarded stickers _writer.WriteStartArray("stickers"); foreach (var sticker in message.ForwardedMessage.Stickers) await WriteStickerAsync(sticker, cancellationToken); _writer.WriteEndArray(); _writer.WriteEndObject(); } // Interaction if (message.Interaction is not null) { _writer.WriteStartObject("interaction"); _writer.WriteString("id", message.Interaction.Id.ToString()); _writer.WriteString("name", message.Interaction.Name); _writer.WritePropertyName("user"); await WriteUserAsync(message.Interaction.User, true, cancellationToken); _writer.WriteEndObject(); } // Inline emoji _writer.WriteStartArray("inlineEmojis"); foreach ( var emoji in MarkdownParser .ExtractEmojis(message.Content) .DistinctBy(e => e.Name, StringComparer.Ordinal) ) { await WriteEmojiAsync( new Emoji(emoji.Id, emoji.Name, emoji.IsAnimated), cancellationToken ); } _writer.WriteEndArray(); _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } public override async ValueTask WritePostambleAsync( CancellationToken cancellationToken = default ) { // Message array (end) _writer.WriteEndArray(); _writer.WriteNumber("messageCount", MessagesWritten); // Root object (end) _writer.WriteEndObject(); await _writer.FlushAsync(cancellationToken); } public override async ValueTask DisposeAsync() { await _writer.DisposeAsync(); await base.DisposeAsync(); } } ================================================ FILE: DiscordChatExporter.Core/Exporting/MessageExporter.cs ================================================ using System; using System.IO; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting; internal partial class MessageExporter(ExportContext context) : IAsyncDisposable { private int _partitionIndex; private MessageWriter? _writer; public long MessagesExported { get; private set; } private async ValueTask InitializeWriterAsync( CancellationToken cancellationToken = default ) { // Ensure that the partition limit has not been reached if ( _writer is not null && context.Request.PartitionLimit.IsReached( _writer.MessagesWritten, _writer.BytesWritten ) ) { await UninitializeWriterAsync(cancellationToken); _partitionIndex++; } // Writer is still valid, return if (_writer is not null) return _writer; Directory.CreateDirectory(context.Request.OutputDirPath); var filePath = GetPartitionFilePath(context.Request.OutputFilePath, _partitionIndex); var writer = CreateMessageWriter(filePath, context.Request.Format, context); await writer.WritePreambleAsync(cancellationToken); return _writer = writer; } private async ValueTask UninitializeWriterAsync(CancellationToken cancellationToken = default) { if (_writer is not null) { try { await _writer.WritePostambleAsync(cancellationToken); } // Writer must be disposed, even if it fails to write the postamble finally { await _writer.DisposeAsync(); _writer = null; } } } public async ValueTask ExportMessageAsync( Message message, CancellationToken cancellationToken = default ) { var writer = await InitializeWriterAsync(cancellationToken); await writer.WriteMessageAsync(message, cancellationToken); MessagesExported++; } public async ValueTask DisposeAsync() { // If not messages were written, force the creation of an empty file if (MessagesExported <= 0) _ = await InitializeWriterAsync(); await UninitializeWriterAsync(); } } internal partial class MessageExporter { private static string GetPartitionFilePath(string baseFilePath, int partitionIndex) { // First partition, don't change the file name if (partitionIndex <= 0) return baseFilePath; // Inject partition index into the file name var fileNameWithoutExt = Path.GetFileNameWithoutExtension(baseFilePath); var fileExt = Path.GetExtension(baseFilePath); var fileName = $"{fileNameWithoutExt} [part {partitionIndex + 1}]{fileExt}"; var dirPath = Path.GetDirectoryName(baseFilePath); return !string.IsNullOrWhiteSpace(dirPath) ? Path.Combine(dirPath, fileName) : fileName; } private static MessageWriter CreateMessageWriter( string filePath, ExportFormat format, ExportContext context ) => format switch { ExportFormat.PlainText => new PlainTextMessageWriter(File.Create(filePath), context), ExportFormat.Csv => new CsvMessageWriter(File.Create(filePath), context), ExportFormat.HtmlDark => new HtmlMessageWriter(File.Create(filePath), context, "Dark"), ExportFormat.HtmlLight => new HtmlMessageWriter( File.Create(filePath), context, "Light" ), ExportFormat.Json => new JsonMessageWriter(File.Create(filePath), context), _ => throw new ArgumentOutOfRangeException( nameof(format), $"Unknown export format '{format}'." ), }; } ================================================ FILE: DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml ================================================ @using System @using System.Collections.Generic @using System.Linq @using System.Threading.Tasks @using DiscordChatExporter.Core.Discord.Data @using DiscordChatExporter.Core.Discord.Data.Embeds @using DiscordChatExporter.Core.Markdown.Parsing @using DiscordChatExporter.Core.Utils.Extensions @inherits RazorBlade.HtmlTemplate @functions { public required ExportContext Context { get; init; } public required IReadOnlyList Messages { get; init; } } @{ ValueTask ResolveAssetUrlAsync(string url) => Context.ResolveAssetUrlAsync(url, CancellationToken); string FormatDate(DateTimeOffset instant, string format = "g") => Context.FormatDate(instant, format); async ValueTask FormatMarkdownAsync(string markdown) => Context.Request.ShouldFormatMarkdown ? await HtmlMarkdownVisitor.FormatAsync(Context, markdown, true, CancellationToken) : markdown; async ValueTask FormatEmbedMarkdownAsync(string markdown) => Context.Request.ShouldFormatMarkdown ? await HtmlMarkdownVisitor.FormatAsync(Context, markdown, false, CancellationToken) : markdown; }
    @foreach (var (i, message) in Messages.Index()) { var isFirst = i == 0; var authorMember = Context.TryGetMember(message.Author.Id); var authorColor = Context.TryGetUserColor(message.Author.Id); var authorDisplayName = message.Author.IsBot ? message.Author.DisplayName : authorMember?.DisplayName ?? message.Author.DisplayName;
    @* System notification *@ @if (message.IsSystemNotification) {
    @{ var icon = message.Kind switch { MessageKind.RecipientAdd => "join-icon", MessageKind.RecipientRemove => "leave-icon", MessageKind.Call => "call-icon", MessageKind.ChannelNameChange => "pencil-icon", MessageKind.ChannelIconChange => "pencil-icon", MessageKind.ChannelPinnedMessage => "pin-icon", MessageKind.GuildMemberJoin => "join-icon", MessageKind.ThreadCreated => "thread-icon", _ => "pencil-icon" }; }
    @* Author name *@ @authorDisplayName @* Space out the content *@ @* System notification content *@ @if (message.Kind == MessageKind.RecipientAdd && message.MentionedUsers.Any()) { added @message.MentionedUsers.First().DisplayName to the group. } else if (message.Kind == MessageKind.RecipientRemove && message.MentionedUsers.Any()) { if (message.Author.Id == message.MentionedUsers.First().Id) { left the group. } else { removed @message.MentionedUsers.First().DisplayName from the group. } } else if (message.Kind == MessageKind.Call) { started a call that lasted @(((message.CallEndedTimestamp ?? message.Timestamp) - message.Timestamp).TotalMinutes.ToString("n0", Context.Request.CultureInfo)) minutes } else if (message.Kind == MessageKind.ChannelNameChange) { changed the channel name: @message.Content } else if (message.Kind == MessageKind.ChannelIconChange) { changed the channel icon. } else if (message.Kind == MessageKind.ChannelPinnedMessage && message.Reference is not null) { pinned a message to this channel. } else if (message.Kind == MessageKind.ThreadCreated) { started a thread. } else if (message.Kind == MessageKind.GuildMemberJoin) { joined the server. } else { @message.Content.ToLowerInvariant() } @* Timestamp *@ @FormatDate(message.Timestamp)
    } // Regular message else {
    @if (isFirst) { // Reply symbol if (message.IsReplyLike) {
    } // Avatar Avatar } else {
    @FormatDate(message.Timestamp, "t")
    }
    @if (isFirst) { // Message referenced by the reply if (message.IsReplyLike) {
    @if (message.ReferencedMessage is not null) { var referencedUserMember = Context.TryGetMember(message.ReferencedMessage.Author.Id); var referencedUserColor = Context.TryGetUserColor(message.ReferencedMessage.Author.Id); var referencedUserDisplayName = message.ReferencedMessage.Author.IsBot ? message.ReferencedMessage.Author.DisplayName : referencedUserMember?.DisplayName ?? message.ReferencedMessage.Author.DisplayName; Avatar
    @referencedUserDisplayName
    @if (!string.IsNullOrWhiteSpace(message.ReferencedMessage.Content) && !message.ReferencedMessage.IsContentHidden()) { @Html.Raw(await FormatEmbedMarkdownAsync(message.ReferencedMessage.Content)) } else if (message.ReferencedMessage.Attachments.Any() || message.ReferencedMessage.Embeds.Any()) { Click to see attachment 🖼️ } else { Click to see original message } @if (message.ReferencedMessage.EditedTimestamp is not null) { (edited) }
    } else if (message.Interaction is not null) { var interactionUserMember = Context.TryGetMember(message.Interaction.User.Id); var interactionUserColor = Context.TryGetUserColor(message.Interaction.User.Id); var interactionUserDisplayName = message.Interaction.User.IsBot ? message.Interaction.User.DisplayName : interactionUserMember?.DisplayName ?? message.Interaction.User.DisplayName; Avatar
    @interactionUserDisplayName
    used /@message.Interaction.Name
    } else {
    Original message was deleted or could not be loaded.
    }
    } // Header
    @* Author name *@ @authorDisplayName @* Bot tag *@ @if (message.Author.IsBot) { // For cross-posts, the BOT tag is replaced with the SERVER tag if (message.Flags.HasFlag(MessageFlags.CrossPost)) { SERVER } else { BOT } } @* Timestamp *@ @FormatDate(message.Timestamp)
    } @* Content *@ @if ((!string.IsNullOrWhiteSpace(message.Content) && !message.IsContentHidden()) || message.EditedTimestamp is not null) {
    @* Text *@ @if (!string.IsNullOrWhiteSpace(message.Content) && !message.IsContentHidden()) { @Html.Raw(await FormatMarkdownAsync(message.Content)) } @* Edited timestamp *@ @if (message.EditedTimestamp is not null) { (edited) }
    } @* Forwarded message *@ @if (message is { IsForwarded: true, ForwardedMessage: not null }) {
    Forwarded
    @* Forwarded content *@ @if (!string.IsNullOrWhiteSpace(message.ForwardedMessage.Content)) {
    @Html.Raw(await FormatMarkdownAsync(message.ForwardedMessage.Content))
    } @* Forwarded attachments *@ @if (message.ForwardedMessage.Attachments.Any()) {
    @foreach (var attachment in message.ForwardedMessage.Attachments) { @if (attachment.IsImage) { @(attachment.Description ?? } else if (attachment.IsVideo) { } else if (attachment.IsAudio) { } else {
    @attachment.FileSize
    } }
    } @* Forwarded stickers *@ @foreach (var sticker in message.ForwardedMessage.Stickers) {
    @if (sticker.IsImage) { Sticker } else if (sticker.Format == StickerFormat.Lottie) {
    }
    } @* Forwarded timestamp *@
    Originally sent: @FormatDate(message.ForwardedMessage.Timestamp) @if (message.ForwardedMessage.EditedTimestamp is not null) { (edited) }
    } @* Attachments *@ @foreach (var attachment in message.Attachments) {
    @* Spoiler caption *@ @if (attachment.IsSpoiler) {
    SPOILER
    } @* Attachment preview *@ @if (attachment.IsImage) { @(attachment.Description ?? } else if (attachment.IsVideo) { } else if (attachment.IsAudio) { } else {
    @attachment.FileSize
    }
    } @* Invites *@ @{ var inviteCodes = MarkdownParser .ExtractLinks(message.Content) .Select(l => l.Url) .Select(Invite.TryGetCodeFromUrl) .WhereNotNull() .ToArray(); foreach (var inviteCode in inviteCodes) { var invite = await Context.Discord.TryGetInviteAsync(inviteCode, CancellationToken); if (invite is null) { continue; }
    @(invite.Channel?.IsDirect == true ? "Invite to join a group DM" : "Invite to join a server")
    Guild icon
    @(invite.Channel?.Name ?? "Unknown Channel")
    } } @* Embeds *@ @foreach (var embed in message.Embeds) { // Spotify embed if (embed.TryGetSpotifyTrack() is { } spotifyTrackEmbed) {
    } // YouTube embed else if (embed.TryGetYouTubeVideo() is { } youTubeVideoEmbed) {
    @* Color pill *@ @if (embed.Color is not null) {
    } else {
    }
    @* Embed author *@ @if (embed.Author is not null) {
    @if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl)) { Author icon } @if (!string.IsNullOrWhiteSpace(embed.Author.Name)) { if (!string.IsNullOrWhiteSpace(embed.Author.Url)) {
    @embed.Author.Name
    } else {
    @embed.Author.Name
    } }
    } @* Embed title *@ @if (!string.IsNullOrWhiteSpace(embed.Title)) {
    @if (!string.IsNullOrWhiteSpace(embed.Url)) {
    @Html.Raw(await FormatEmbedMarkdownAsync(embed.Title))
    } else {
    @Html.Raw(await FormatEmbedMarkdownAsync(embed.Title))
    }
    } @* Video thumbnail *@
    } // Generic image embed else if (embed.Kind == EmbedKind.Image && !string.IsNullOrWhiteSpace(embed.Url)) { var embedImageUrl = embed.Image?.ProxyUrl ?? embed.Image?.Url ?? embed.Thumbnail?.ProxyUrl ?? embed.Thumbnail?.Url ?? embed.Url; var embedImageCanonicalUrl = embed.Image?.Url ?? embed.Thumbnail?.Url ?? embed.Url; } // Generic video embed else if (embed.Kind == EmbedKind.Video && !string.IsNullOrWhiteSpace(embed.Url) // Twitch clips cannot be embedded in local HTML files && embed.TryGetTwitchClip() is null) { var embedVideoUrl = embed.Video?.ProxyUrl ?? embed.Video?.Url ?? embed.Url; var embedVideoCanonicalUrl = embed.Video?.Url ?? embed.Url;
    } // Generic gifv embed else if (embed.Kind == EmbedKind.Gifv && !string.IsNullOrWhiteSpace(embed.Url)) { var embedVideoUrl = embed.Video?.ProxyUrl ?? embed.Video?.Url ?? embed.Url; var embedVideoCanonicalUrl = embed.Video?.Url ?? embed.Url;
    } // Rich embed else {
    @* Color pill *@ @if (embed.Color is not null) {
    } else {
    }
    @* Embed author *@ @if (embed.Author is not null) {
    @if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl)) { Author icon } @if (!string.IsNullOrWhiteSpace(embed.Author.Name)) { if (!string.IsNullOrWhiteSpace(embed.Author.Url)) {
    @embed.Author.Name
    } else {
    @embed.Author.Name
    } }
    } @* Embed title *@ @if (!string.IsNullOrWhiteSpace(embed.Title)) {
    @if (!string.IsNullOrWhiteSpace(embed.Url)) {
    @Html.Raw(await FormatEmbedMarkdownAsync(embed.Title))
    } else {
    @Html.Raw(await FormatEmbedMarkdownAsync(embed.Title))
    }
    } @* Embed description *@ @if (!string.IsNullOrWhiteSpace(embed.Description)) {
    @Html.Raw(await FormatEmbedMarkdownAsync(embed.Description))
    } @* Embed fields *@ @if (embed.Fields.Any()) {
    @foreach (var field in embed.Fields) {
    @if (!string.IsNullOrWhiteSpace(field.Name)) {
    @Html.Raw(await FormatEmbedMarkdownAsync(field.Name))
    } @if (!string.IsNullOrWhiteSpace(field.Value)) {
    @Html.Raw(await FormatEmbedMarkdownAsync(field.Value))
    }
    }
    }
    @* Embed content *@ @if (embed.Thumbnail is not null && !string.IsNullOrWhiteSpace(embed.Thumbnail.Url)) { }
    @* Embed images *@ @if (embed.Images.Any()) {
    @foreach (var image in embed.Images) { if (!string.IsNullOrWhiteSpace(image.Url)) { } }
    } @* Embed footer & icon *@ @if (embed.Footer is not null || embed.Timestamp is not null) { }
    } } @* Stickers *@ @foreach (var sticker in message.Stickers) {
    @if (sticker.IsImage) { Sticker } else if (sticker.Format == StickerFormat.Lottie) {
    }
    } @* Message reactions *@ @if (message.Reactions.Any()) {
    @foreach (var reaction in message.Reactions) {
    @reaction.Emoji.Name @reaction.Count
    }
    }
    }
    }
    ================================================ FILE: DiscordChatExporter.Core/Exporting/MessageWriter.cs ================================================ using System; using System.IO; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Exporting; internal abstract class MessageWriter(Stream stream, ExportContext context) : IAsyncDisposable { protected Stream Stream { get; } = stream; protected ExportContext Context { get; } = context; public long MessagesWritten { get; private set; } public long BytesWritten => Stream.Length; public virtual ValueTask WritePreambleAsync(CancellationToken cancellationToken = default) => default; public virtual ValueTask WriteMessageAsync( Message message, CancellationToken cancellationToken = default ) { MessagesWritten++; return default; } public virtual ValueTask WritePostambleAsync(CancellationToken cancellationToken = default) => default; public virtual async ValueTask DisposeAsync() => await Stream.DisposeAsync(); } ================================================ FILE: DiscordChatExporter.Core/Exporting/Partitioning/FileSizePartitionLimit.cs ================================================ namespace DiscordChatExporter.Core.Exporting.Partitioning; internal class FileSizePartitionLimit(long limit) : PartitionLimit { public override bool IsReached(long messagesWritten, long bytesWritten) => bytesWritten >= limit; } ================================================ FILE: DiscordChatExporter.Core/Exporting/Partitioning/MessageCountPartitionLimit.cs ================================================ namespace DiscordChatExporter.Core.Exporting.Partitioning; internal class MessageCountPartitionLimit(long limit) : PartitionLimit { public override bool IsReached(long messagesWritten, long bytesWritten) => messagesWritten >= limit; } ================================================ FILE: DiscordChatExporter.Core/Exporting/Partitioning/NullPartitionLimit.cs ================================================ namespace DiscordChatExporter.Core.Exporting.Partitioning; internal class NullPartitionLimit : PartitionLimit { public override bool IsReached(long messagesWritten, long bytesWritten) => false; } ================================================ FILE: DiscordChatExporter.Core/Exporting/Partitioning/PartitionLimit.cs ================================================ using System; using System.Globalization; using System.Text.RegularExpressions; namespace DiscordChatExporter.Core.Exporting.Partitioning; public abstract partial class PartitionLimit { public abstract bool IsReached(long messagesWritten, long bytesWritten); } public partial class PartitionLimit { public static PartitionLimit Null { get; } = new NullPartitionLimit(); private static long? TryParseFileSizeBytes(string value, IFormatProvider? formatProvider = null) { var match = Regex.Match(value, @"^\s*(\d+[\.,]?\d*)\s*(\w)?b\s*$", RegexOptions.IgnoreCase); // Number part if ( !double.TryParse( match.Groups[1].Value, NumberStyles.Float, formatProvider, out var number ) ) { return null; } // Magnitude part var magnitude = match.Groups[2].Value.ToUpperInvariant() switch { "G" => 1_000_000_000, "M" => 1_000_000, "K" => 1_000, "" => 1, _ => -1, }; if (magnitude < 0) { return null; } return (long)(number * magnitude); } public static PartitionLimit? TryParse(string value, IFormatProvider? formatProvider = null) { var fileSizeLimit = TryParseFileSizeBytes(value, formatProvider); if (fileSizeLimit is not null) return new FileSizePartitionLimit(fileSizeLimit.Value); if (int.TryParse(value, NumberStyles.Integer, formatProvider, out var messageCountLimit)) return new MessageCountPartitionLimit(messageCountLimit); return null; } public static PartitionLimit Parse(string value, IFormatProvider? formatProvider = null) => TryParse(value, formatProvider) ?? throw new FormatException($"Invalid partition limit '{value}'."); } ================================================ FILE: DiscordChatExporter.Core/Exporting/PlainTextMarkdownVisitor.cs ================================================ using System.Text; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Markdown; using DiscordChatExporter.Core.Markdown.Parsing; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; internal partial class PlainTextMarkdownVisitor(ExportContext context, StringBuilder buffer) : MarkdownVisitor { protected override ValueTask VisitTextAsync( TextNode text, CancellationToken cancellationToken = default ) { buffer.Append(text.Text); return default; } protected override ValueTask VisitEmojiAsync( EmojiNode emoji, CancellationToken cancellationToken = default ) { buffer.Append(emoji.IsCustomEmoji ? $":{emoji.Name}:" : emoji.Name); return default; } protected override async ValueTask VisitMentionAsync( MentionNode mention, CancellationToken cancellationToken = default ) { if (mention.Kind == MentionKind.Everyone) { buffer.Append("@everyone"); } else if (mention.Kind == MentionKind.Here) { buffer.Append("@here"); } else if (mention.Kind == MentionKind.User) { // User mentions are not always included in the message object, // which means they need to be populated on demand. // https://github.com/Tyrrrz/DiscordChatExporter/issues/304 if (mention.TargetId is not null) await context.PopulateMemberAsync(mention.TargetId.Value, cancellationToken); var member = mention.TargetId?.Pipe(context.TryGetMember); var displayName = member?.DisplayName ?? member?.User.DisplayName ?? "Unknown"; buffer.Append($"@{displayName}"); } else if (mention.Kind == MentionKind.Channel) { // Channel/thread mentions may reference threads that are not preloaded, // so we resolve them on demand. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1261 if (mention.TargetId is not null) await context.PopulateChannelAsync(mention.TargetId.Value, cancellationToken); var channel = mention.TargetId?.Pipe(context.TryGetChannel); var name = channel?.Name ?? "deleted-channel"; buffer.Append($"#{name}"); // Voice channel marker if (channel?.IsVoice == true) buffer.Append(" [voice]"); } else if (mention.Kind == MentionKind.Role) { var role = mention.TargetId?.Pipe(context.TryGetRole); var name = role?.Name ?? "deleted-role"; buffer.Append($"@{name}"); } } protected override ValueTask VisitTimestampAsync( TimestampNode timestamp, CancellationToken cancellationToken = default ) { buffer.Append( timestamp.Instant is not null ? context.FormatDate(timestamp.Instant.Value, timestamp.Format ?? "g") : "Invalid date" ); return default; } } internal partial class PlainTextMarkdownVisitor { public static async ValueTask FormatAsync( ExportContext context, string markdown, CancellationToken cancellationToken = default ) { var nodes = MarkdownParser.ParseMinimal(markdown); var buffer = new StringBuilder(); await new PlainTextMarkdownVisitor(context, buffer).VisitAsync(nodes, cancellationToken); return buffer.ToString(); } } ================================================ FILE: DiscordChatExporter.Core/Exporting/PlainTextMessageExtensions.cs ================================================ using System.Globalization; using System.Linq; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; internal static class PlainTextMessageExtensions { extension(Message message) { public string GetFallbackContent() => message.Kind switch { MessageKind.RecipientAdd => message.MentionedUsers.Any() ? $"Added {message.MentionedUsers.First().DisplayName} to the group." : "Added a recipient.", MessageKind.RecipientRemove => message.MentionedUsers.Any() ? message.Author.Id == message.MentionedUsers.First().Id ? "Left the group." : $"Removed {message.MentionedUsers.First().DisplayName} from the group." : "Removed a recipient.", MessageKind.Call => $"Started a call that lasted {message .CallEndedTimestamp? .Pipe(t => t - message.Timestamp) .Pipe(t => t.TotalMinutes) .ToString("n0", CultureInfo.InvariantCulture) ?? "0"} minutes.", MessageKind.ChannelNameChange => !string.IsNullOrWhiteSpace(message.Content) ? $"Changed the channel name: {message.Content}" : "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.", _ => message.Content, }; } } ================================================ FILE: DiscordChatExporter.Core/Exporting/PlainTextMessageWriter.cs ================================================ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Discord.Data.Embeds; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Exporting; internal class PlainTextMessageWriter(Stream stream, ExportContext context) : MessageWriter(stream, context) { private readonly TextWriter _writer = new StreamWriter(stream); private async ValueTask FormatMarkdownAsync( string markdown, CancellationToken cancellationToken = default ) => Context.Request.ShouldFormatMarkdown ? await PlainTextMarkdownVisitor.FormatAsync(Context, markdown, cancellationToken) : markdown; private async ValueTask WriteMessageHeaderAsync(Message message) { // Timestamp & author await _writer.WriteAsync($"[{Context.FormatDate(message.Timestamp)}]"); await _writer.WriteAsync($" {message.Author.FullName}"); // Whether the message is pinned if (message.IsPinned) await _writer.WriteAsync(" (pinned)"); await _writer.WriteLineAsync(); } private async ValueTask WriteAttachmentsAsync( IReadOnlyList attachments, CancellationToken cancellationToken = default ) { if (!attachments.Any()) return; await _writer.WriteLineAsync("{Attachments}"); foreach (var attachment in attachments) { cancellationToken.ThrowIfCancellationRequested(); await _writer.WriteLineAsync( await Context.ResolveAssetUrlAsync(attachment.Url, cancellationToken) ); } await _writer.WriteLineAsync(); } private async ValueTask WriteEmbedsAsync( IReadOnlyList embeds, CancellationToken cancellationToken = default ) { foreach (var embed in embeds) { cancellationToken.ThrowIfCancellationRequested(); await _writer.WriteLineAsync("{Embed}"); if (!string.IsNullOrWhiteSpace(embed.Author?.Name)) { await _writer.WriteLineAsync(embed.Author.Name); } if (!string.IsNullOrWhiteSpace(embed.Url)) { await _writer.WriteLineAsync(embed.Url); } if (!string.IsNullOrWhiteSpace(embed.Title)) { await _writer.WriteLineAsync( await FormatMarkdownAsync(embed.Title, cancellationToken) ); } if (!string.IsNullOrWhiteSpace(embed.Description)) { await _writer.WriteLineAsync( await FormatMarkdownAsync(embed.Description, cancellationToken) ); } foreach (var field in embed.Fields) { if (!string.IsNullOrWhiteSpace(field.Name)) { await _writer.WriteLineAsync( await FormatMarkdownAsync(field.Name, cancellationToken) ); } if (!string.IsNullOrWhiteSpace(field.Value)) { await _writer.WriteLineAsync( await FormatMarkdownAsync(field.Value, cancellationToken) ); } } if (!string.IsNullOrWhiteSpace(embed.Thumbnail?.Url)) { await _writer.WriteLineAsync( await Context.ResolveAssetUrlAsync( embed.Thumbnail.ProxyUrl ?? embed.Thumbnail.Url, cancellationToken ) ); } foreach (var image in embed.Images) { if (!string.IsNullOrWhiteSpace(image.Url)) { await _writer.WriteLineAsync( await Context.ResolveAssetUrlAsync( image.ProxyUrl ?? image.Url, cancellationToken ) ); } } if (!string.IsNullOrWhiteSpace(embed.Footer?.Text)) { await _writer.WriteLineAsync(embed.Footer.Text); } await _writer.WriteLineAsync(); } } private async ValueTask WriteStickersAsync( IReadOnlyList stickers, CancellationToken cancellationToken = default ) { if (!stickers.Any()) return; await _writer.WriteLineAsync("{Stickers}"); foreach (var sticker in stickers) { cancellationToken.ThrowIfCancellationRequested(); await _writer.WriteLineAsync( await Context.ResolveAssetUrlAsync(sticker.SourceUrl, cancellationToken) ); } await _writer.WriteLineAsync(); } private async ValueTask WriteReactionsAsync( IReadOnlyList reactions, CancellationToken cancellationToken = default ) { if (!reactions.Any()) return; await _writer.WriteLineAsync("{Reactions}"); foreach (var (i, reaction) in reactions.Index()) { cancellationToken.ThrowIfCancellationRequested(); if (i > 0) { await _writer.WriteAsync(' '); } await _writer.WriteAsync(reaction.Emoji.Name); if (reaction.Count > 1) { await _writer.WriteAsync($" ({reaction.Count})"); } } await _writer.WriteLineAsync(); } public override async ValueTask WritePreambleAsync( CancellationToken cancellationToken = default ) { await _writer.WriteLineAsync(new string('=', 62)); await _writer.WriteLineAsync($"Guild: {Context.Request.Guild.Name}"); await _writer.WriteLineAsync($"Channel: {Context.Request.Channel.GetHierarchicalName()}"); if (!string.IsNullOrWhiteSpace(Context.Request.Channel.Topic)) { await _writer.WriteLineAsync($"Topic: {Context.Request.Channel.Topic}"); } if (Context.Request.After is not null) { await _writer.WriteLineAsync( $"After: {Context.FormatDate(Context.Request.After.Value.ToDate())}" ); } if (Context.Request.Before is not null) { await _writer.WriteLineAsync( $"Before: {Context.FormatDate(Context.Request.Before.Value.ToDate())}" ); } await _writer.WriteLineAsync(new string('=', 62)); await _writer.WriteLineAsync(); } private async ValueTask WriteForwardedMessageAsync( MessageSnapshot forwardedMessage, CancellationToken cancellationToken = default ) { await _writer.WriteLineAsync("{Forwarded Message}"); if (!string.IsNullOrWhiteSpace(forwardedMessage.Content)) { await _writer.WriteLineAsync( await FormatMarkdownAsync(forwardedMessage.Content, cancellationToken) ); } await _writer.WriteLineAsync( $"Originally sent: {Context.FormatDate(forwardedMessage.Timestamp)}" ); await WriteAttachmentsAsync(forwardedMessage.Attachments, cancellationToken); await WriteEmbedsAsync(forwardedMessage.Embeds, cancellationToken); await WriteStickersAsync(forwardedMessage.Stickers, cancellationToken); await _writer.WriteLineAsync(); } public override async ValueTask WriteMessageAsync( Message message, CancellationToken cancellationToken = default ) { await base.WriteMessageAsync(message, cancellationToken); // Header await WriteMessageHeaderAsync(message); // Content if (message.IsSystemNotification) { await _writer.WriteLineAsync(message.GetFallbackContent()); } else { await _writer.WriteLineAsync( await FormatMarkdownAsync(message.Content, cancellationToken) ); } await _writer.WriteLineAsync(); // Forwarded message content if (message.ForwardedMessage is not null) { await WriteForwardedMessageAsync(message.ForwardedMessage, cancellationToken); } // Attachments, embeds, reactions, etc. await WriteAttachmentsAsync(message.Attachments, cancellationToken); await WriteEmbedsAsync(message.Embeds, cancellationToken); await WriteStickersAsync(message.Stickers, cancellationToken); await WriteReactionsAsync(message.Reactions, cancellationToken); await _writer.WriteLineAsync(); } public override async ValueTask WritePostambleAsync( CancellationToken cancellationToken = default ) { await _writer.WriteLineAsync(new string('=', 62)); await _writer.WriteLineAsync($"Exported {MessagesWritten:N0} message(s)"); await _writer.WriteLineAsync(new string('=', 62)); } public override async ValueTask DisposeAsync() { await _writer.DisposeAsync(); await base.DisposeAsync(); } } ================================================ FILE: DiscordChatExporter.Core/Exporting/PostambleTemplate.cshtml ================================================ @using System @inherits RazorBlade.HtmlTemplate @functions { public required ExportContext Context { get; init; } public required long MessagesWritten { get; init; } } @{ /* Close elements opened by preamble */ }
    Exported @MessagesWritten.ToString("n0", Context.Request.CultureInfo) message(s)
    Timezone: UTC@((Context.Request.IsUtcNormalizationEnabled ? 0 : TimeZoneInfo.Local.BaseUtcOffset.TotalHours).ToString("+#.#;-#.#;+0", Context.Request.CultureInfo))
    ================================================ FILE: DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml ================================================ @using System @using System.Threading.Tasks @inherits RazorBlade.HtmlTemplate @functions { public required ExportContext Context { get; init; } public required string ThemeName { get; init; } } @{ string Themed(string darkVariant, string lightVariant) => string.Equals(ThemeName, "Dark", StringComparison.OrdinalIgnoreCase) ? darkVariant : lightVariant; string GetFontUrl(string style, int weight) => $"https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/ggsans-{style}-{weight}.woff2"; ValueTask ResolveAssetUrlAsync(string url) => Context.ResolveAssetUrlAsync(url, CancellationToken); string FormatDate(DateTimeOffset instant, string format = "g") => Context.FormatDate(instant, format); async ValueTask FormatMarkdownAsync(string markdown) => Context.Request.ShouldFormatMarkdown ? await HtmlMarkdownVisitor.FormatAsync(Context, markdown, true, CancellationToken) : markdown; } @Context.Request.Guild.Name - @Context.Request.Channel.Name @* Styling *@ @* Syntax highlighting *@ @* Lottie animation support *@ @* Scripts *@ @* Icons *@
    Guild icon
    @Context.Request.Guild.Name
    @Context.Request.Channel.GetHierarchicalName()
    @if (!string.IsNullOrWhiteSpace(Context.Request.Channel.Topic)) {
    @Html.Raw(await FormatMarkdownAsync(Context.Request.Channel.Topic))
    } @if (Context.Request.After is not null || Context.Request.Before is not null) {
    @if (Context.Request.After is not null && Context.Request.Before is not null) { @($"Between {FormatDate(Context.Request.After.Value.ToDate())} and {FormatDate(Context.Request.Before.Value.ToDate())}") } else if (Context.Request.After is not null) { @($"After {FormatDate(Context.Request.After.Value.ToDate())}") } else if (Context.Request.Before is not null) { @($"Before {FormatDate(Context.Request.Before.Value.ToDate())}") }
    }
    @* Preamble cuts off at this point *@
    ================================================ FILE: DiscordChatExporter.Core/Markdown/EmojiNode.cs ================================================ using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Core.Markdown; internal record EmojiNode( // Only present on custom emoji Snowflake? Id, // Name of a custom emoji (e.g. LUL) or actual representation of a standard emoji (e.g. 🙂) string Name, bool IsAnimated ) : MarkdownNode { // This coupling is unsound from the domain-design perspective, but it helps us reuse // some code for now. We can refactor this later, if the coupling becomes a problem. private readonly Emoji _emoji = new(Id, Name, IsAnimated); public EmojiNode(string name) : this(null, name, false) { } public bool IsCustomEmoji => _emoji.IsCustomEmoji; // Name of a custom emoji (e.g. LUL) or name of a standard emoji (e.g. slight_smile) public string Code => _emoji.Code; public string ImageUrl => _emoji.ImageUrl; } ================================================ FILE: DiscordChatExporter.Core/Markdown/FormattingKind.cs ================================================ namespace DiscordChatExporter.Core.Markdown; internal enum FormattingKind { Bold, Italic, Underline, Strikethrough, Spoiler, Quote, } ================================================ FILE: DiscordChatExporter.Core/Markdown/FormattingNode.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown; internal record FormattingNode(FormattingKind Kind, IReadOnlyList Children) : MarkdownNode, IContainerNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/HeadingNode.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown; internal record HeadingNode(int Level, IReadOnlyList Children) : MarkdownNode, IContainerNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/IContainerNode.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown; internal interface IContainerNode { IReadOnlyList Children { get; } } ================================================ FILE: DiscordChatExporter.Core/Markdown/InlineCodeBlockNode.cs ================================================ namespace DiscordChatExporter.Core.Markdown; internal record InlineCodeBlockNode(string Code) : MarkdownNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/LinkNode.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown; // Named links can contain child nodes (e.g. [**bold URL**](https://test.com)) internal record LinkNode(string Url, IReadOnlyList Children) : MarkdownNode, IContainerNode { public LinkNode(string url) : this(url, [new TextNode(url)]) { } } ================================================ FILE: DiscordChatExporter.Core/Markdown/ListItemNode.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown; internal record ListItemNode(IReadOnlyList Children) : MarkdownNode, IContainerNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/ListNode.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown; internal record ListNode(IReadOnlyList Items) : MarkdownNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/MarkdownNode.cs ================================================ namespace DiscordChatExporter.Core.Markdown; internal abstract record MarkdownNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/MentionKind.cs ================================================ namespace DiscordChatExporter.Core.Markdown; internal enum MentionKind { Everyone, Here, User, Channel, Role, } ================================================ FILE: DiscordChatExporter.Core/Markdown/MentionNode.cs ================================================ using DiscordChatExporter.Core.Discord; namespace DiscordChatExporter.Core.Markdown; // Null ID means it's a meta mention or an invalid mention internal record MentionNode(Snowflake? TargetId, MentionKind Kind) : MarkdownNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/MultiLineCodeBlockNode.cs ================================================ namespace DiscordChatExporter.Core.Markdown; internal record MultiLineCodeBlockNode(string Language, string Code) : MarkdownNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/AggregateMatcher.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown.Parsing; internal class AggregateMatcher( params IReadOnlyList> matchers ) : IMatcher { public ParsedMatch? TryMatch(TContext context, StringSegment segment) { ParsedMatch? earliestMatch = null; // Try to match the input with each matcher and get the match with the lowest start index foreach (var matcher in matchers) { // Try to match var match = matcher.TryMatch(context, segment); // If there's no match - continue if (match is null) continue; // If this match is earlier than previous earliest - replace if ( earliestMatch is null || match.Segment.StartIndex < earliestMatch.Segment.StartIndex ) { earliestMatch = match; } // If the earliest match starts at the very beginning - break, // because it's impossible to find a match earlier than that if (earliestMatch.Segment.StartIndex == segment.StartIndex) break; } return earliestMatch; } } ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/IMatcher.cs ================================================ using System; using System.Collections.Generic; namespace DiscordChatExporter.Core.Markdown.Parsing; internal interface IMatcher { ParsedMatch? TryMatch(TContext context, StringSegment segment); } internal static class MatcherExtensions { public static IEnumerable> MatchAll( this IMatcher matcher, TContext context, StringSegment segment, Func fallbackTransform ) { // Loop through segments divided by individual matches var currentIndex = segment.StartIndex; while (currentIndex < segment.EndIndex) { // Find a match within this segment var match = matcher.TryMatch( context, segment.Relocate(currentIndex, segment.EndIndex - currentIndex) ); if (match is null) break; // If this match doesn't start immediately at the current position - transform and yield fallback first if (match.Segment.StartIndex > currentIndex) { var fallbackSegment = segment.Relocate( currentIndex, match.Segment.StartIndex - currentIndex ); yield return new ParsedMatch( fallbackSegment, fallbackTransform(context, fallbackSegment) ); } yield return match; // Shift current index to the end of the match currentIndex = match.Segment.StartIndex + match.Segment.Length; } // If EOL hasn't been reached - transform and yield remaining part as fallback if (currentIndex < segment.EndIndex) { var fallbackSegment = segment.Relocate(currentIndex, segment.EndIndex - currentIndex); yield return new ParsedMatch( fallbackSegment, fallbackTransform(context, fallbackSegment) ); } } } ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/MarkdownContext.cs ================================================ namespace DiscordChatExporter.Core.Markdown.Parsing; internal readonly record struct MarkdownContext(int Depth = 0); ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/MarkdownParser.cs ================================================ using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Utils; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Markdown.Parsing; // Discord does NOT use a recursive-descent parser for markdown which becomes evident in some // scenarios, like when multiple formatting nodes are nested together. // To replicate Discord's behavior, we're employing a special parser that uses a set of regular // expressions that are executed sequentially in a first-matched-first-served manner. internal static partial class MarkdownParser { private const RegexOptions DefaultRegexOptions = RegexOptions.Compiled | RegexOptions.IgnorePatternWhitespace | RegexOptions.CultureInvariant | RegexOptions.Multiline; /* Formatting */ private static readonly IMatcher BoldFormattingNodeMatcher = new RegexMatcher( // There must be exactly two closing asterisks. new Regex(@"\*\*(.+?)\*\*(?!\*)", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode(FormattingKind.Bold, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher ItalicFormattingNodeMatcher = new RegexMatcher( // There must be exactly one closing asterisk. // Opening asterisk must not be followed by whitespace. // Closing asterisk must not be preceded by whitespace. new Regex( @"\*(?!\s)(.+?)(? new FormattingNode(FormattingKind.Italic, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher< MarkdownContext, MarkdownNode > ItalicBoldFormattingNodeMatcher = new RegexMatcher( // There must be exactly three closing asterisks. new Regex(@"\*(\*\*.+?\*\*)\*(?!\*)", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode( FormattingKind.Italic, Parse(c, s.Relocate(m.Groups[1]), BoldFormattingNodeMatcher) ) ); private static readonly IMatcher ItalicAltFormattingNodeMatcher = new RegexMatcher( // Closing underscore must not be followed by a word character. new Regex(@"_(.+?)_(?!\w)", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode(FormattingKind.Italic, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher UnderlineFormattingNodeMatcher = new RegexMatcher( // There must be exactly two closing underscores. new Regex(@"__(.+?)__(?!_)", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode(FormattingKind.Underline, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher< MarkdownContext, MarkdownNode > ItalicUnderlineFormattingNodeMatcher = new RegexMatcher( // There must be exactly three closing underscores. new Regex(@"_(__.+?__)_(?!_)", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode( FormattingKind.Italic, Parse(c, s.Relocate(m.Groups[1]), UnderlineFormattingNodeMatcher) ) ); private static readonly IMatcher< MarkdownContext, MarkdownNode > StrikethroughFormattingNodeMatcher = new RegexMatcher( new Regex(@"~~(.+?)~~", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode(FormattingKind.Strikethrough, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher SpoilerFormattingNodeMatcher = new RegexMatcher( new Regex(@"\|\|(.+?)\|\|", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode(FormattingKind.Spoiler, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher SingleLineQuoteNodeMatcher = new RegexMatcher( // Include the linebreak in the content so that the lines are preserved in quotes. new Regex(@"^>\s(.+\n?)", DefaultRegexOptions), (c, s, m) => new FormattingNode(FormattingKind.Quote, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher< MarkdownContext, MarkdownNode > RepeatedSingleLineQuoteNodeMatcher = new RegexMatcher( // Include the linebreaks in the content, so that the lines are preserved in quotes. // Empty content is allowed within quotes. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1115 new Regex(@"(?:^>\s(.*\n?)){2,}", DefaultRegexOptions), (c, s, m) => new FormattingNode( FormattingKind.Quote, m.Groups[1].Captures.SelectMany(r => Parse(c, s.Relocate(r))).ToArray() ) ); private static readonly IMatcher MultiLineQuoteNodeMatcher = new RegexMatcher( new Regex(@"^>>>\s(.+)", DefaultRegexOptions | RegexOptions.Singleline), (c, s, m) => new FormattingNode(FormattingKind.Quote, Parse(c, s.Relocate(m.Groups[1]))) ); private static readonly IMatcher HeadingNodeMatcher = new RegexMatcher( // Consume the linebreak so that it's not attached to following nodes. new Regex(@"^(\#{1,3})\s(.+)\n", DefaultRegexOptions), (c, s, m) => new HeadingNode(m.Groups[1].Length, Parse(c, s.Relocate(m.Groups[2]))) ); private static readonly IMatcher ListNodeMatcher = new RegexMatcher( // Can be preceded by whitespace, which specifies the list's nesting level. // Following lines that start with (level+1) whitespace are considered part of the list item. // Consume the linebreak so that it's not attached to following nodes. new Regex(@"^(\s*)(?:[\-\*]\s(.+(?:\n\s\1.*)*)?\n?)+", DefaultRegexOptions), (c, s, m) => new ListNode( m.Groups[2] .Captures.Select(x => new ListItemNode(Parse(c, s.Relocate(x)))) .ToArray() ) ); /* Code blocks */ private static readonly IMatcher InlineCodeBlockNodeMatcher = new RegexMatcher( // One or two backticks are allowed, but they must match on both sides. new Regex(@"(`{1,2})([^`]+)\1", DefaultRegexOptions | RegexOptions.Singleline), (_, _, m) => new InlineCodeBlockNode(m.Groups[2].Value) ); private static readonly IMatcher MultiLineCodeBlockNodeMatcher = new RegexMatcher( // Language identifier is one word immediately after opening backticks, followed immediately by a linebreak. // Blank lines at the beginning and at the end of content are trimmed. new Regex(@"```(?:(\w*)\n)?(.+?)```", DefaultRegexOptions | RegexOptions.Singleline), (_, _, m) => new MultiLineCodeBlockNode(m.Groups[1].Value, m.Groups[2].Value.Trim('\r', '\n')) ); /* Mentions */ private static readonly IMatcher EveryoneMentionNodeMatcher = new StringMatcher( "@everyone", (_, _) => new MentionNode(null, MentionKind.Everyone) ); private static readonly IMatcher HereMentionNodeMatcher = new StringMatcher( "@here", (_, _) => new MentionNode(null, MentionKind.Here) ); private static readonly IMatcher UserMentionNodeMatcher = new RegexMatcher( // Capture <@123456> or <@!123456> new Regex(@"<@!?(\d+)>", DefaultRegexOptions), (_, _, m) => new MentionNode(Snowflake.TryParse(m.Groups[1].Value), MentionKind.User) ); private static readonly IMatcher ChannelMentionNodeMatcher = new RegexMatcher( // Capture <#123456> new Regex(@"<\#!?(\d+)>", DefaultRegexOptions), (_, _, m) => new MentionNode(Snowflake.TryParse(m.Groups[1].Value), MentionKind.Channel) ); private static readonly IMatcher RoleMentionNodeMatcher = new RegexMatcher( // Capture <@&123456> new Regex(@"<@&(\d+)>", DefaultRegexOptions), (_, _, m) => new MentionNode(Snowflake.TryParse(m.Groups[1].Value), MentionKind.Role) ); /* Emoji */ private static readonly IMatcher StandardEmojiNodeMatcher = new RegexMatcher( new Regex( // Build a pattern from all known emoji, sorted longest-first so that compound // emoji (e.g. sequences with ZWJ or skin-tone modifiers) are matched before // their individual components. "(" + string.Join( "|", EmojiIndex .GetAllNames() .OrderByDescending(e => e.Length) .Select(Regex.Escape) ) + ")", DefaultRegexOptions ), (_, _, m) => new EmojiNode(m.Groups[1].Value) ); private static readonly IMatcher CodedStandardEmojiNodeMatcher = new RegexMatcher( // Capture :thinking: new Regex(@":([\w_]+):", DefaultRegexOptions), (_, _, m) => EmojiIndex.TryGetName(m.Groups[1].Value)?.Pipe(n => new EmojiNode(n)) ); private static readonly IMatcher CustomEmojiNodeMatcher = new RegexMatcher( // Capture <:lul:123456> or new Regex(@"<(a)?:(.+?):(\d+?)>", DefaultRegexOptions), (_, _, m) => new EmojiNode( Snowflake.TryParse(m.Groups[3].Value), m.Groups[2].Value, !string.IsNullOrWhiteSpace(m.Groups[1].Value) ) ); /* Links */ private static readonly IMatcher AutoLinkNodeMatcher = new RegexMatcher( // Any non-whitespace character after http:// or https:// // until the last punctuation character or whitespace. new Regex(@"(https?://\S*[^\.,:;""'\s])", DefaultRegexOptions), (_, _, m) => new LinkNode(m.Groups[1].Value) ); private static readonly IMatcher HiddenLinkNodeMatcher = new RegexMatcher( // Same as auto link but also surrounded by angular brackets new Regex(@"<(https?://\S*[^\.,:;""'\s])>", DefaultRegexOptions), (_, _, m) => new LinkNode(m.Groups[1].Value) ); private static readonly IMatcher MaskedLinkNodeMatcher = new RegexMatcher( // Capture [title](link) new Regex(@"\[(.+?)\]\((.+?)\)", DefaultRegexOptions), (c, s, m) => new LinkNode(m.Groups[2].Value, Parse(c, s.Relocate(m.Groups[1]))) ); /* Text */ private static readonly IMatcher ShrugTextNodeMatcher = new StringMatcher( // Capture the shrug kaomoji. // This escapes it from matching for formatting. @"¯\_(ツ)_/¯", (_, s) => new TextNode(s.ToString()) ); private static readonly IMatcher IgnoredEmojiTextNodeMatcher = new RegexMatcher( // Capture some specific emoji that don't get rendered. // This escapes them from matching for emoji. new Regex(@"([\u26A7\u2640\u2642\u2695\u267E\u00A9\u00AE\u2122])", DefaultRegexOptions), (_, _, m) => new TextNode(m.Groups[1].Value) ); private static readonly IMatcher EscapedSymbolTextNodeMatcher = new RegexMatcher( // Capture any "symbol/other" character or surrogate pair preceded by a backslash. // This escapes them from matching for emoji. // https://github.com/Tyrrrz/DiscordChatExporter/issues/230 new Regex(@"\\(\p{So}|\p{Cs}{2})", DefaultRegexOptions), (_, _, m) => new TextNode(m.Groups[1].Value) ); private static readonly IMatcher< MarkdownContext, MarkdownNode > EscapedCharacterTextNodeMatcher = new RegexMatcher( // Capture any non-whitespace, non latin alphanumeric character preceded by a backslash. // This escapes them from matching for formatting or other tokens. new Regex(@"\\([^a-zA-Z0-9\s])", DefaultRegexOptions), (_, _, m) => new TextNode(m.Groups[1].Value) ); /* Misc */ private static readonly IMatcher TimestampNodeMatcher = new RegexMatcher( // Capture or new Regex(@"", DefaultRegexOptions), (_, _, m) => { try { var instant = DateTimeOffset.UnixEpoch + TimeSpan.FromSeconds( long.Parse( m.Groups[1].Value, NumberStyles.Integer, CultureInfo.InvariantCulture ) ); // https://discord.com/developers/docs/reference#message-formatting-timestamp-styles var format = m.Groups[2].Value.NullIfWhiteSpace() switch { // Known formats "t" => "t", "T" => "T", "d" => "d", "D" => "D", "f" => "f", "F" => "F", // Relative format: ignore because it doesn't make sense in a static export "r" => null, "R" => null, // Unspecified format: will be mapped to the default format null => null, // Unknown format: throw an exception to consider this timestamp invalid // https://github.com/Tyrrrz/DiscordChatExporter/issues/1156 var f => throw new InvalidOperationException( $"Unknown timestamp format '{f}'." ), }; return new TimestampNode(instant, format); } // https://github.com/Tyrrrz/DiscordChatExporter/issues/681 // https://github.com/Tyrrrz/DiscordChatExporter/issues/766 catch (Exception ex) when (ex is FormatException or ArgumentOutOfRangeException or OverflowException or InvalidOperationException ) { // For invalid timestamps, Discord renders "Invalid Date" instead of ignoring the markdown return TimestampNode.Invalid; } } ); // Matchers that have similar patterns are ordered from most specific to least specific private static readonly IMatcher NodeMatcher = new AggregateMatcher( // Escaped text ShrugTextNodeMatcher, IgnoredEmojiTextNodeMatcher, EscapedSymbolTextNodeMatcher, EscapedCharacterTextNodeMatcher, // Formatting ItalicBoldFormattingNodeMatcher, ItalicUnderlineFormattingNodeMatcher, BoldFormattingNodeMatcher, ItalicFormattingNodeMatcher, UnderlineFormattingNodeMatcher, ItalicAltFormattingNodeMatcher, StrikethroughFormattingNodeMatcher, SpoilerFormattingNodeMatcher, MultiLineQuoteNodeMatcher, RepeatedSingleLineQuoteNodeMatcher, SingleLineQuoteNodeMatcher, HeadingNodeMatcher, ListNodeMatcher, // Code blocks MultiLineCodeBlockNodeMatcher, InlineCodeBlockNodeMatcher, // Mentions EveryoneMentionNodeMatcher, HereMentionNodeMatcher, UserMentionNodeMatcher, ChannelMentionNodeMatcher, RoleMentionNodeMatcher, // Links MaskedLinkNodeMatcher, AutoLinkNodeMatcher, HiddenLinkNodeMatcher, // Emoji StandardEmojiNodeMatcher, CustomEmojiNodeMatcher, CodedStandardEmojiNodeMatcher, // Misc TimestampNodeMatcher ); // Minimal set of matchers for non-multimedia formats (e.g. plain text) private static readonly IMatcher MinimalNodeMatcher = new AggregateMatcher( // Mentions EveryoneMentionNodeMatcher, HereMentionNodeMatcher, UserMentionNodeMatcher, ChannelMentionNodeMatcher, RoleMentionNodeMatcher, // Emoji CustomEmojiNodeMatcher, // Misc TimestampNodeMatcher ); private static IReadOnlyList Parse( MarkdownContext context, StringSegment segment, IMatcher matcher ) { // Limit recursion depth to a reasonable number to prevent // stack overflow on messages with inadvertently deep nesting. // Example: ********************************* (repeat ad nauseam) // https://github.com/Tyrrrz/DiscordChatExporter/issues/1214 if (context.Depth >= 32) return [new TextNode(segment.ToString())]; return matcher .MatchAll( new MarkdownContext(context.Depth + 1), segment, (_, s) => new TextNode(s.ToString()) ) .Select(r => r.Value) .ToArray(); } } internal static partial class MarkdownParser { private static void Extract( IEnumerable nodes, ICollection extractedNodes ) where TNode : MarkdownNode { foreach (var node in nodes) { if (node is TNode extractedNode) extractedNodes.Add(extractedNode); if (node is IContainerNode containerNode) Extract(containerNode.Children, extractedNodes); } } public static IReadOnlyList Extract(string markdown) where TNode : MarkdownNode { var extractedNodes = new List(); Extract(Parse(markdown), extractedNodes); return extractedNodes; } public static IReadOnlyList ExtractLinks(string markdown) => Extract(markdown); public static IReadOnlyList ExtractEmojis(string markdown) => Extract(markdown); private static IReadOnlyList Parse( MarkdownContext context, StringSegment segment ) => Parse(context, segment, NodeMatcher); public static IReadOnlyList Parse(string markdown) => Parse(new MarkdownContext(), new StringSegment(markdown)); private static IReadOnlyList ParseMinimal( MarkdownContext context, StringSegment segment ) => Parse(context, segment, MinimalNodeMatcher); public static IReadOnlyList ParseMinimal(string markdown) => ParseMinimal(new MarkdownContext(), new StringSegment(markdown)); } ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/MarkdownVisitor.cs ================================================ using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace DiscordChatExporter.Core.Markdown.Parsing; internal abstract class MarkdownVisitor { protected virtual ValueTask VisitTextAsync( TextNode text, CancellationToken cancellationToken = default ) => default; protected virtual async ValueTask VisitFormattingAsync( FormattingNode formatting, CancellationToken cancellationToken = default ) => await VisitAsync(formatting.Children, cancellationToken); protected virtual async ValueTask VisitHeadingAsync( HeadingNode heading, CancellationToken cancellationToken = default ) => await VisitAsync(heading.Children, cancellationToken); protected virtual async ValueTask VisitListAsync( ListNode list, CancellationToken cancellationToken = default ) => await VisitAsync(list.Items, cancellationToken); protected virtual async ValueTask VisitListItemAsync( ListItemNode listItem, CancellationToken cancellationToken = default ) => await VisitAsync(listItem.Children, cancellationToken); protected virtual ValueTask VisitInlineCodeBlockAsync( InlineCodeBlockNode inlineCodeBlock, CancellationToken cancellationToken = default ) => default; protected virtual ValueTask VisitMultiLineCodeBlockAsync( MultiLineCodeBlockNode multiLineCodeBlock, CancellationToken cancellationToken = default ) => default; protected virtual async ValueTask VisitLinkAsync( LinkNode link, CancellationToken cancellationToken = default ) => await VisitAsync(link.Children, cancellationToken); protected virtual ValueTask VisitEmojiAsync( EmojiNode emoji, CancellationToken cancellationToken = default ) => default; protected virtual ValueTask VisitMentionAsync( MentionNode mention, CancellationToken cancellationToken = default ) => default; protected virtual ValueTask VisitTimestampAsync( TimestampNode timestamp, CancellationToken cancellationToken = default ) => default; public async ValueTask VisitAsync( MarkdownNode node, CancellationToken cancellationToken = default ) { if (node is TextNode text) { await VisitTextAsync(text, cancellationToken); return; } if (node is FormattingNode formatting) { await VisitFormattingAsync(formatting, cancellationToken); return; } if (node is HeadingNode heading) { await VisitHeadingAsync(heading, cancellationToken); return; } if (node is ListNode list) { await VisitListAsync(list, cancellationToken); return; } if (node is ListItemNode listItem) { await VisitListItemAsync(listItem, cancellationToken); return; } if (node is InlineCodeBlockNode inlineCodeBlock) { await VisitInlineCodeBlockAsync(inlineCodeBlock, cancellationToken); return; } if (node is MultiLineCodeBlockNode multiLineCodeBlock) { await VisitMultiLineCodeBlockAsync(multiLineCodeBlock, cancellationToken); return; } if (node is LinkNode link) { await VisitLinkAsync(link, cancellationToken); return; } if (node is EmojiNode emoji) { await VisitEmojiAsync(emoji, cancellationToken); return; } if (node is MentionNode mention) { await VisitMentionAsync(mention, cancellationToken); return; } if (node is TimestampNode timestamp) { await VisitTimestampAsync(timestamp, cancellationToken); return; } throw new ArgumentOutOfRangeException(nameof(node)); } public async ValueTask VisitAsync( IEnumerable nodes, CancellationToken cancellationToken = default ) { foreach (var node in nodes) await VisitAsync(node, cancellationToken); } } ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/ParsedMatch.cs ================================================ namespace DiscordChatExporter.Core.Markdown.Parsing; internal class ParsedMatch(StringSegment segment, T value) { public StringSegment Segment { get; } = segment; public T Value { get; } = value; } ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/RegexMatcher.cs ================================================ using System; using System.Text.RegularExpressions; namespace DiscordChatExporter.Core.Markdown.Parsing; internal class RegexMatcher( Regex regex, Func transform ) : IMatcher { public ParsedMatch? TryMatch(TContext context, StringSegment segment) { var match = regex.Match(segment.Source, segment.StartIndex, segment.Length); if (!match.Success) return null; // Overload regex.Match(string, int, int) doesn't take the whole string into account, // it effectively functions as a match check on a substring. // Which is super weird because regex.Match(string, int) takes the whole input in context. // So in order to properly account for ^/$ regex tokens, we need to make sure that // the expression also matches on the bigger part of the input. if (!regex.IsMatch(segment.Source[..segment.EndIndex], segment.StartIndex)) return null; var segmentMatch = segment.Relocate(match); var value = transform(context, segmentMatch, match); return value is not null ? new ParsedMatch(segmentMatch, value) : null; } } ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/StringMatcher.cs ================================================ using System; namespace DiscordChatExporter.Core.Markdown.Parsing; internal class StringMatcher( string needle, StringComparison comparison, Func transform ) : IMatcher { public StringMatcher(string needle, Func transform) : this(needle, StringComparison.Ordinal, transform) { } public ParsedMatch? TryMatch(TContext context, StringSegment segment) { var index = segment.Source.IndexOf(needle, segment.StartIndex, segment.Length, comparison); if (index < 0) return null; var segmentMatch = segment.Relocate(index, needle.Length); var value = transform(context, segmentMatch); return value is not null ? new ParsedMatch(segmentMatch, value) : null; } } ================================================ FILE: DiscordChatExporter.Core/Markdown/Parsing/StringSegment.cs ================================================ using System.Text.RegularExpressions; namespace DiscordChatExporter.Core.Markdown.Parsing; internal readonly record struct StringSegment(string Source, int StartIndex, int Length) { public int EndIndex => StartIndex + Length; public StringSegment(string target) : this(target, 0, target.Length) { } public StringSegment Relocate(int newStartIndex, int newLength) => new(Source, newStartIndex, newLength); public StringSegment Relocate(Capture capture) => Relocate(capture.Index, capture.Length); public override string ToString() => Source[StartIndex..EndIndex]; } ================================================ FILE: DiscordChatExporter.Core/Markdown/TextNode.cs ================================================ namespace DiscordChatExporter.Core.Markdown; internal record TextNode(string Text) : MarkdownNode; ================================================ FILE: DiscordChatExporter.Core/Markdown/TimestampNode.cs ================================================ using System; namespace DiscordChatExporter.Core.Markdown; // Null date means invalid timestamp internal record TimestampNode(DateTimeOffset? Instant, string? Format) : MarkdownNode { public static TimestampNode Invalid { get; } = new(null, null); } ================================================ FILE: DiscordChatExporter.Core/Utils/Docker.cs ================================================ using System; namespace DiscordChatExporter.Core.Utils; public static class Docker { public static bool IsRunningInContainer { get; } = Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true"; } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/AsyncCollectionExtensions.cs ================================================ using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace DiscordChatExporter.Core.Utils.Extensions; public static class AsyncCollectionExtensions { extension(IAsyncEnumerable asyncEnumerable) { private async ValueTask> CollectAsync() { var list = new List(); await foreach (var i in asyncEnumerable) list.Add(i); return list; } public ValueTaskAwaiter> GetAwaiter() => asyncEnumerable.CollectAsync().GetAwaiter(); } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/CollectionExtensions.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Core.Utils.Extensions; public static class CollectionExtensions { extension(T obj) { public IEnumerable ToSingletonEnumerable() { yield return obj; } } extension(IEnumerable source) where T : class { public IEnumerable WhereNotNull() { foreach (var o in source) { if (o is not null) yield return o; } } } extension(IEnumerable source) where T : struct { public IEnumerable WhereNotNull() { foreach (var o in source) { if (o is not null) yield return o.Value; } } } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/ColorExtensions.cs ================================================ using System.Drawing; namespace DiscordChatExporter.Core.Utils.Extensions; public static class ColorExtensions { extension(Color color) { public Color WithAlpha(int alpha) => Color.FromArgb(alpha, color); public Color ResetAlpha() => color.WithAlpha(255); public int ToRgb() => color.ToArgb() & 0xffffff; public string ToHex() => $"#{color.R:X2}{color.G:X2}{color.B:X2}"; } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/ExceptionExtensions.cs ================================================ using System; using System.Collections.Generic; namespace DiscordChatExporter.Core.Utils.Extensions; public static class ExceptionExtensions { extension(Exception exception) { private void PopulateChildren(ICollection children) { if (exception is AggregateException aggregateException) { foreach (var innerException in aggregateException.InnerExceptions) { children.Add(innerException); PopulateChildren(innerException, children); } } else if (exception.InnerException is not null) { children.Add(exception.InnerException); PopulateChildren(exception.InnerException, children); } } public IReadOnlyList GetSelfAndChildren() { var children = new List { exception }; PopulateChildren(exception, children); return children; } } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/GenericExtensions.cs ================================================ using System; using System.Collections.Generic; namespace DiscordChatExporter.Core.Utils.Extensions; public static class GenericExtensions { extension(TIn input) { public TOut Pipe(Func transform) => transform(input); } extension(T value) where T : struct { public T? NullIf(Func predicate) => !predicate(value) ? value : null; public T? NullIfDefault() => value.NullIf(v => EqualityComparer.Default.Equals(v, default)); } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/HttpExtensions.cs ================================================ using System.Net.Http.Headers; namespace DiscordChatExporter.Core.Utils.Extensions; public static class HttpExtensions { extension(HttpHeaders headers) { public string? TryGetValue(string name) => headers.TryGetValues(name, out var values) ? string.Concat(values) : null; } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/PathExtensions.cs ================================================ using System; using System.IO; using System.Text; namespace DiscordChatExporter.Core.Utils.Extensions; public static class PathExtensions { // This is a union of invalid characters from Windows (NTFS/FAT32), Linux (ext4/XFS), and macOS (HFS+/APFS). // We use this instead of Path.GetInvalidFileNameChars() because that only returns OS-specific characters, // not filesystem-specific characters. It's possible to use, for example, an NTFS drive on Linux, // which would make some additional characters invalid that are otherwise valid on Linux. // https://github.com/Tyrrrz/DiscordChatExporter/issues/1452 private static readonly char[] InvalidFileNameChars = [ '\0', // Null character - invalid on all filesystems '/', // Path separator on Unix and Windows '\\', // Path separator on Windows ':', // Reserved on Windows (drive letters, NTFS streams) '*', // Wildcard on Windows '?', // Wildcard on Windows '"', // Reserved on Windows '<', // Redirection on Windows '>', // Redirection on Windows '|', // Pipe on Windows ]; extension(Path) { public static string EscapeFileName(string path) { var buffer = new StringBuilder(path.Length); foreach (var c in path) buffer.Append(!InvalidFileNameChars.Contains(c) ? c : '_'); // File names cannot end with a dot on Windows // https://github.com/Tyrrrz/DiscordChatExporter/issues/977 if (OperatingSystem.IsWindows()) { while (buffer.Length > 0 && buffer[^1] == '.') buffer.Remove(buffer.Length - 1, 1); } return buffer.ToString(); } } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/StringExtensions.cs ================================================ using System.Text; namespace DiscordChatExporter.Core.Utils.Extensions; public static class StringExtensions { extension(string str) { public string? NullIfWhiteSpace() => !string.IsNullOrWhiteSpace(str) ? str : null; public string Truncate(int charCount) => str.Length > charCount ? str[..charCount] : str; public string ToSpaceSeparatedWords() { var builder = new StringBuilder(str.Length * 2); foreach (var c in str) { if (char.IsUpper(c) && builder.Length > 0) builder.Append(' '); builder.Append(c); } return builder.ToString(); } } extension(StringBuilder builder) { public StringBuilder AppendIfNotEmpty(char value) => builder.Length > 0 ? builder.Append(value) : builder; } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/SuperpowerExtensions.cs ================================================ using System; using System.Diagnostics.CodeAnalysis; using Superpower; using Superpower.Parsers; namespace DiscordChatExporter.Core.Utils.Extensions; public static class SuperpowerExtensions { extension(TextParser parser) { public TextParser Token() => parser.Between(Character.WhiteSpace.IgnoreMany(), Character.WhiteSpace.IgnoreMany()); // Only used for debugging while writing Superpower parsers. // From https://twitter.com/nblumhardt/status/1389349059786264578 [ExcludeFromCodeCoverage] public TextParser Log(string description) => i => { Console.WriteLine($"Trying {description} ->"); var r = parser(i); Console.WriteLine($"Result was {r}"); return r; }; } } ================================================ FILE: DiscordChatExporter.Core/Utils/Extensions/TimeSpanExtensions.cs ================================================ using System; namespace DiscordChatExporter.Core.Utils.Extensions; public static class TimeSpanExtensions { extension(TimeSpan value) { public TimeSpan Clamp(TimeSpan min, TimeSpan max) { if (value < min) return min; if (value > max) return max; return value; } } } ================================================ FILE: DiscordChatExporter.Core/Utils/Http.cs ================================================ using System; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Sockets; using System.Security.Authentication; using System.Threading.Tasks; using DiscordChatExporter.Core.Utils.Extensions; using Polly; using Polly.Retry; namespace DiscordChatExporter.Core.Utils; public static class Http { public static HttpClient Client { get; } = new(); private static bool IsRetryableStatusCode(HttpStatusCode statusCode) => statusCode is HttpStatusCode.TooManyRequests or HttpStatusCode.RequestTimeout || // Treat all server-side errors as retryable // https://github.com/Tyrrrz/DiscordChatExporter/issues/908 (int)statusCode >= 500; private static bool IsRetryableException(Exception exception) => exception .GetSelfAndChildren() .Any(ex => ex is TimeoutException or SocketException or AuthenticationException || ex is HttpRequestException hrex && IsRetryableStatusCode(hrex.StatusCode ?? HttpStatusCode.OK) ); public static ResiliencePipeline ResiliencePipeline { get; } = new ResiliencePipelineBuilder() .AddRetry( new RetryStrategyOptions { ShouldHandle = new PredicateBuilder().Handle(IsRetryableException), MaxRetryAttempts = 4, BackoffType = DelayBackoffType.Exponential, Delay = TimeSpan.FromSeconds(1), } ) .Build(); public static ResiliencePipeline ResponseResiliencePipeline { get; } = new ResiliencePipelineBuilder() .AddRetry( new RetryStrategyOptions { ShouldHandle = new PredicateBuilder() .Handle(IsRetryableException) .HandleResult(m => IsRetryableStatusCode(m.StatusCode)), MaxRetryAttempts = 8, DelayGenerator = args => { // If rate-limited, use retry-after header as the guide. // The response can be null here if an exception was thrown. if (args.Outcome.Result?.Headers.RetryAfter?.Delta is { } retryAfter) { // Add some buffer just in case return ValueTask.FromResult( retryAfter + TimeSpan.FromSeconds(1) ); } return ValueTask.FromResult( TimeSpan.FromSeconds(Math.Pow(2, args.AttemptNumber) + 1) ); }, } ) .Build(); } ================================================ FILE: DiscordChatExporter.Core/Utils/Url.cs ================================================ using System; using System.IO; using System.Text; namespace DiscordChatExporter.Core.Utils; public static class Url { public static string EncodeFilePath(string filePath) { var buffer = new StringBuilder(); var position = 0; // For absolute paths, prepend file:// protocol for proper browser handling if (Path.IsPathFullyQualified(filePath)) { buffer.Append("file://"); // On Windows, we need to add an extra slash before the drive letter // e.g., file:///C:/path instead of file://C:/path if (!filePath.StartsWith('/') && !filePath.StartsWith('\\')) { buffer.Append('/'); } } while (true) { if (position >= filePath.Length) break; var separatorIndex = filePath.IndexOfAny([':', '/', '\\'], position); if (separatorIndex < 0) { buffer.Append(Uri.EscapeDataString(filePath[position..])); break; } // Append the segment buffer.Append(Uri.EscapeDataString(filePath[position..separatorIndex])); // Append the separator buffer.Append( filePath[separatorIndex] switch { // Normalize slashes '\\' => '/', var c => c, } ); position = separatorIndex + 1; } return buffer.ToString(); } } ================================================ FILE: DiscordChatExporter.Core/Utils/UrlBuilder.cs ================================================ using System; using System.Collections.Generic; using System.Linq; using System.Text; using DiscordChatExporter.Core.Utils.Extensions; namespace DiscordChatExporter.Core.Utils; public class UrlBuilder { private string _path = ""; private readonly Dictionary _queryParameters = new( StringComparer.OrdinalIgnoreCase ); public UrlBuilder SetPath(string path) { _path = path; return this; } public UrlBuilder SetQueryParameter(string key, string? value, bool ignoreUnsetValue = true) { if (ignoreUnsetValue && string.IsNullOrWhiteSpace(value)) return this; var keyEncoded = Uri.EscapeDataString(key); var valueEncoded = value?.Pipe(Uri.EscapeDataString); _queryParameters[keyEncoded] = valueEncoded; return this; } public string Build() { var buffer = new StringBuilder(); buffer.Append(_path); if (_queryParameters.Any()) { buffer .Append('?') .AppendJoin('&', _queryParameters.Select(kvp => $"{kvp.Key}={kvp.Value}")); } return buffer.ToString(); } } ================================================ FILE: DiscordChatExporter.Gui/App.axaml ================================================  ================================================ FILE: DiscordChatExporter.Gui/App.axaml.cs ================================================ using System; using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Markup.Xaml; using Avalonia.Media; using Avalonia.Platform; using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.Localization; using DiscordChatExporter.Gui.Services; using DiscordChatExporter.Gui.Utils; using DiscordChatExporter.Gui.Utils.Extensions; using DiscordChatExporter.Gui.ViewModels; using DiscordChatExporter.Gui.ViewModels.Components; using DiscordChatExporter.Gui.ViewModels.Dialogs; using DiscordChatExporter.Gui.Views; using Material.Styles.Themes; using Microsoft.Extensions.DependencyInjection; namespace DiscordChatExporter.Gui; public class App : Application, IDisposable { private readonly DisposableCollector _eventRoot = new(); private readonly ServiceProvider _services; private readonly SettingsService _settingsService; private readonly MainViewModel _mainViewModel; private bool _isDisposed; public App() { var services = new ServiceCollection(); // Framework services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); // Services services.AddSingleton(); services.AddSingleton(); // Localization services.AddSingleton(); // View models services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); _services = services.BuildServiceProvider(true); _settingsService = _services.GetRequiredService(); _mainViewModel = _services.GetRequiredService().CreateMainViewModel(); // Re-initialize the theme when the user changes it _eventRoot.Add( _settingsService.WatchProperty( o => o.Theme, () => { RequestedThemeVariant = _settingsService.Theme switch { ThemeVariant.Light => Avalonia.Styling.ThemeVariant.Light, ThemeVariant.Dark => Avalonia.Styling.ThemeVariant.Dark, _ => Avalonia.Styling.ThemeVariant.Default, }; InitializeTheme(); } ) ); } public override void Initialize() { base.Initialize(); AvaloniaXamlLoader.Load(this); } private void InitializeTheme() { var actualTheme = RequestedThemeVariant?.Key switch { "Light" => PlatformThemeVariant.Light, "Dark" => PlatformThemeVariant.Dark, _ => PlatformSettings?.GetColorValues().ThemeVariant ?? PlatformThemeVariant.Light, }; this.LocateMaterialTheme().CurrentTheme = actualTheme == PlatformThemeVariant.Light ? Theme.Create(Theme.Light, Color.Parse("#343838"), Color.Parse("#F9A825")) : Theme.Create(Theme.Dark, Color.Parse("#E8E8E8"), Color.Parse("#F9A825")); } public override void OnFrameworkInitializationCompleted() { if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) { desktop.MainWindow = new MainView { DataContext = _mainViewModel }; void OnExit(object? sender, ControlledApplicationLifetimeExitEventArgs args) { if (sender is IControlledApplicationLifetime lifetime) lifetime.Exit -= OnExit; Dispose(); } // Although `App.Dispose()` is invoked from `Program.Main(...)`, on some platforms // it may be called too late in the shutdown lifecycle. Attach an exit // handler to ensure timely disposal as a safeguard. // https://github.com/Tyrrrz/YoutubeDownloader/issues/795 desktop.Exit += OnExit; } base.OnFrameworkInitializationCompleted(); // Set up custom theme colors InitializeTheme(); // Load settings _settingsService.Load(); } private void Application_OnActualThemeVariantChanged(object? sender, EventArgs args) => // Re-initialize the theme when the system theme changes InitializeTheme(); public void Dispose() { if (_isDisposed) return; _isDisposed = true; _eventRoot.Dispose(); _services.Dispose(); } } ================================================ FILE: DiscordChatExporter.Gui/Converters/ChannelToHierarchicalNameStringConverter.cs ================================================ using System; using System.Globalization; using Avalonia.Data.Converters; using DiscordChatExporter.Core.Discord.Data; namespace DiscordChatExporter.Gui.Converters; public class ChannelToHierarchicalNameStringConverter : IValueConverter { public static ChannelToHierarchicalNameStringConverter Instance { get; } = new(); public object? Convert( object? value, Type targetType, object? parameter, CultureInfo culture ) => value is Channel channel ? channel.GetHierarchicalName() : null; public object ConvertBack( object? value, Type targetType, object? parameter, CultureInfo culture ) => throw new NotSupportedException(); } ================================================ FILE: DiscordChatExporter.Gui/Converters/ExportFormatToStringConverter.cs ================================================ using System; using System.Globalization; using Avalonia.Data.Converters; using DiscordChatExporter.Core.Exporting; namespace DiscordChatExporter.Gui.Converters; public class ExportFormatToStringConverter : IValueConverter { public static ExportFormatToStringConverter Instance { get; } = new(); public object? Convert( object? value, Type targetType, object? parameter, CultureInfo culture ) => value is ExportFormat format ? format.GetDisplayName() : default; public object ConvertBack( object? value, Type targetType, object? parameter, CultureInfo culture ) => throw new NotSupportedException(); } ================================================ FILE: DiscordChatExporter.Gui/Converters/LocaleToDisplayNameStringConverter.cs ================================================ using System; using System.Globalization; using Avalonia.Data.Converters; namespace DiscordChatExporter.Gui.Converters; public class LocaleToDisplayNameStringConverter : IValueConverter { public static LocaleToDisplayNameStringConverter Instance { get; } = new(); public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) => value is string locale && !string.IsNullOrWhiteSpace(locale) ? CultureInfo.GetCultureInfo(locale).DisplayName : "System"; public object ConvertBack( object? value, Type targetType, object? parameter, CultureInfo culture ) => throw new NotSupportedException(); } ================================================ FILE: DiscordChatExporter.Gui/Converters/MarkdownToInlinesConverter.cs ================================================ using System; using System.Globalization; using System.Linq; using Avalonia.Controls.Documents; using Avalonia.Data.Converters; using Avalonia.Media; using DiscordChatExporter.Gui.Utils.Extensions; using DiscordChatExporter.Gui.Views.Controls; using Markdig; using Markdig.Syntax; using Markdig.Syntax.Inlines; using MarkdownInline = Markdig.Syntax.Inlines.Inline; namespace DiscordChatExporter.Gui.Converters; public class MarkdownToInlinesConverter : IValueConverter { public static readonly MarkdownToInlinesConverter Instance = new(); private static readonly MarkdownPipeline MarkdownPipeline = new MarkdownPipelineBuilder() .UseEmphasisExtras() .Build(); private static void ProcessInline( InlineCollection inlines, MarkdownInline markdownInline, FontWeight? fontWeight = null, FontStyle? fontStyle = null, TextDecorationCollection? textDecorations = null ) { switch (markdownInline) { case LiteralInline literal: { var run = new Run(literal.Content.ToString()); if (fontWeight is not null) run.FontWeight = fontWeight.Value; if (fontStyle is not null) run.FontStyle = fontStyle.Value; if (textDecorations is not null) run.TextDecorations = textDecorations; inlines.Add(run); break; } case LineBreakInline: { inlines.Add(new LineBreak()); break; } case EmphasisInline emphasis: { var newWeight = fontWeight; var newStyle = fontStyle; var newDecorations = textDecorations; switch (emphasis.DelimiterChar) { case '*' or '_' when emphasis.DelimiterCount == 2: newWeight = FontWeight.SemiBold; break; case '*' or '_': newStyle = FontStyle.Italic; break; case '~': newDecorations = TextDecorations.Strikethrough; break; case '+': newDecorations = TextDecorations.Underline; break; } foreach (var child in emphasis) ProcessInline(inlines, child, newWeight, newStyle, newDecorations); break; } case LinkInline link: { inlines.Add(new HyperLink { Text = link.GetInnerText(), Url = link.Url }); break; } case ContainerInline container: { foreach (var child in container) ProcessInline(inlines, child, fontWeight, fontStyle, textDecorations); break; } } } public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { var inlines = new InlineCollection(); if (value is not string { Length: > 0 } text) return inlines; var isFirst = true; foreach (var block in Markdown.Parse(text, MarkdownPipeline)) { switch (block) { case ParagraphBlock { Inline: not null } paragraph: { if (!isFirst) { // Insert a blank line between paragraphs inlines.Add(new LineBreak()); inlines.Add(new LineBreak()); } isFirst = false; foreach (var markdownInline in paragraph.Inline!) ProcessInline(inlines, markdownInline); break; } case ListBlock list: { var itemOrder = 1; if (list.IsOrdered && int.TryParse(list.OrderedStart, out var startNum)) itemOrder = startNum; foreach (var listItem in list.OfType()) { if (!isFirst) inlines.Add(new LineBreak()); isFirst = false; var prefix = list.IsOrdered ? $"{itemOrder++}. " : $"{list.BulletType} "; inlines.Add(new Run(prefix)); foreach (var subBlock in listItem.OfType()) { if (subBlock is { Inline: not null }) { foreach (var markdownInline in subBlock.Inline) ProcessInline(inlines, markdownInline); } } } break; } } } return inlines; } public object? ConvertBack( object? value, Type targetType, object? parameter, CultureInfo culture ) => throw new NotSupportedException(); } ================================================ FILE: DiscordChatExporter.Gui/Converters/RateLimitPreferenceToStringConverter.cs ================================================ using System; using System.Globalization; using Avalonia.Data.Converters; using DiscordChatExporter.Core.Discord; namespace DiscordChatExporter.Gui.Converters; public class RateLimitPreferenceToStringConverter : IValueConverter { public static RateLimitPreferenceToStringConverter Instance { get; } = new(); public object? Convert( object? value, Type targetType, object? parameter, CultureInfo culture ) => value is RateLimitPreference rateLimitPreference ? rateLimitPreference.GetDisplayName() : default; public object ConvertBack( object? value, Type targetType, object? parameter, CultureInfo culture ) => throw new NotSupportedException(); } ================================================ FILE: DiscordChatExporter.Gui/Converters/SnowflakeToTimestampStringConverter.cs ================================================ using System; using System.Globalization; using Avalonia.Data.Converters; using DiscordChatExporter.Core.Discord; namespace DiscordChatExporter.Gui.Converters; public class SnowflakeToTimestampStringConverter : IValueConverter { public static SnowflakeToTimestampStringConverter Instance { get; } = new(); public object? Convert( object? value, Type targetType, object? parameter, CultureInfo culture ) => value is Snowflake snowflake ? snowflake.ToDate().ToString("g", culture) : null; public object ConvertBack( object? value, Type targetType, object? parameter, CultureInfo culture ) => throw new NotSupportedException(); } ================================================ FILE: DiscordChatExporter.Gui/DiscordChatExporter.Gui.csproj ================================================ WinExe DiscordChatExporter ..\favicon.ico true false true HimalayanPinkSalt false false false ================================================ FILE: DiscordChatExporter.Gui/Framework/DialogManager.cs ================================================ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Avalonia; using Avalonia.Platform.Storage; using DialogHostAvalonia; using DiscordChatExporter.Gui.Utils.Extensions; namespace DiscordChatExporter.Gui.Framework; public class DialogManager : IDisposable { private readonly SemaphoreSlim _dialogLock = new(1, 1); public async Task ShowDialogAsync(DialogViewModelBase dialog) { await _dialogLock.WaitAsync(); try { await DialogHost.Show( dialog, // It's fine to await in a void method here because it's an event handler // ReSharper disable once AsyncVoidLambda async (object _, DialogOpenedEventArgs args) => { await dialog.WaitForCloseAsync(); try { args.Session.Close(); } catch (InvalidOperationException) { // Dialog host is already processing a close operation } } ); // Yield to allow DialogHost to fully reset its state before // another dialog is shown (e.g. when dialogs are shown sequentially). await Task.Yield(); return dialog.DialogResult; } finally { _dialogLock.Release(); } } public async Task PromptSaveFilePathAsync( IReadOnlyList? fileTypes = null, string defaultFilePath = "" ) { var topLevel = Application.Current?.ApplicationLifetime?.TryGetTopLevel() ?? throw new ApplicationException("Could not find the top-level visual element."); var file = await topLevel.StorageProvider.SaveFilePickerAsync( new FilePickerSaveOptions { FileTypeChoices = fileTypes, SuggestedFileName = defaultFilePath, DefaultExtension = Path.GetExtension(defaultFilePath).TrimStart('.'), } ); return file?.TryGetLocalPath() ?? file?.Path.ToString(); } public async Task PromptDirectoryPathAsync(string defaultDirPath = "") { var topLevel = Application.Current?.ApplicationLifetime?.TryGetTopLevel() ?? throw new ApplicationException("Could not find the top-level visual element."); var result = await topLevel.StorageProvider.OpenFolderPickerAsync( new FolderPickerOpenOptions { AllowMultiple = false, SuggestedStartLocation = await topLevel.StorageProvider.TryGetFolderFromPathAsync( defaultDirPath ), } ); var directory = result.FirstOrDefault(); if (directory is null) return null; return directory.TryGetLocalPath() ?? directory.Path.ToString(); } public void Dispose() => _dialogLock.Dispose(); } ================================================ FILE: DiscordChatExporter.Gui/Framework/DialogViewModelBase.cs ================================================ using System.Threading.Tasks; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; namespace DiscordChatExporter.Gui.Framework; public abstract partial class DialogViewModelBase : ViewModelBase { private readonly TaskCompletionSource _closeTcs = new( TaskCreationOptions.RunContinuationsAsynchronously ); [ObservableProperty] public partial T? DialogResult { get; set; } [RelayCommand] protected void Close(T dialogResult) { DialogResult = dialogResult; _closeTcs.TrySetResult(dialogResult); } public async Task WaitForCloseAsync() => await _closeTcs.Task; } public abstract class DialogViewModelBase : DialogViewModelBase; ================================================ FILE: DiscordChatExporter.Gui/Framework/SnackbarManager.cs ================================================ using System; using Avalonia.Threading; using Material.Styles.Controls; using Material.Styles.Models; namespace DiscordChatExporter.Gui.Framework; public class SnackbarManager { private readonly TimeSpan _defaultDuration = TimeSpan.FromSeconds(5); public void Notify(string message, TimeSpan? duration = null) => SnackbarHost.Post( new SnackbarModel(message, duration ?? _defaultDuration), null, DispatcherPriority.Normal ); public void Notify( string message, string actionText, Action actionHandler, TimeSpan? duration = null ) => SnackbarHost.Post( new SnackbarModel( message, duration ?? _defaultDuration, new SnackbarButtonModel { Text = actionText, Action = actionHandler } ), null, DispatcherPriority.Normal ); } ================================================ FILE: DiscordChatExporter.Gui/Framework/ThemeVariant.cs ================================================ namespace DiscordChatExporter.Gui.Framework; public enum ThemeVariant { System, Light, Dark, } ================================================ FILE: DiscordChatExporter.Gui/Framework/UserControl.cs ================================================ using System; using Avalonia.Controls; namespace DiscordChatExporter.Gui.Framework; public class UserControl : UserControl { public new TDataContext DataContext { get => base.DataContext is TDataContext dataContext ? dataContext : throw new InvalidCastException( $"DataContext is null or not of the expected type '{typeof(TDataContext).FullName}'." ); set => base.DataContext = value; } } ================================================ FILE: DiscordChatExporter.Gui/Framework/ViewManager.cs ================================================ using Avalonia.Controls; using Avalonia.Controls.Templates; using DiscordChatExporter.Gui.ViewModels; using DiscordChatExporter.Gui.ViewModels.Components; using DiscordChatExporter.Gui.ViewModels.Dialogs; using DiscordChatExporter.Gui.Views; using DiscordChatExporter.Gui.Views.Components; using DiscordChatExporter.Gui.Views.Dialogs; namespace DiscordChatExporter.Gui.Framework; public partial class ViewManager { private Control? TryCreateView(ViewModelBase viewModel) => viewModel switch { MainViewModel => new MainView(), DashboardViewModel => new DashboardView(), ExportSetupViewModel => new ExportSetupView(), MessageBoxViewModel => new MessageBoxView(), SettingsViewModel => new SettingsView(), _ => null, }; public Control? TryBindView(ViewModelBase viewModel) { var view = TryCreateView(viewModel); if (view is null) return null; view.DataContext ??= viewModel; return view; } } public partial class ViewManager : IDataTemplate { bool IDataTemplate.Match(object? data) => data is ViewModelBase; Control? ITemplate.Build(object? data) => data is ViewModelBase viewModel ? TryBindView(viewModel) : null; } ================================================ FILE: DiscordChatExporter.Gui/Framework/ViewModelBase.cs ================================================ using System; using CommunityToolkit.Mvvm.ComponentModel; namespace DiscordChatExporter.Gui.Framework; public abstract class ViewModelBase : ObservableObject, IDisposable { ~ViewModelBase() => Dispose(false); protected void OnAllPropertiesChanged() => OnPropertyChanged(string.Empty); protected virtual void Dispose(bool disposing) { } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } } ================================================ FILE: DiscordChatExporter.Gui/Framework/ViewModelManager.cs ================================================ using System; using System.Collections.Generic; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Gui.ViewModels; using DiscordChatExporter.Gui.ViewModels.Components; using DiscordChatExporter.Gui.ViewModels.Dialogs; using Microsoft.Extensions.DependencyInjection; namespace DiscordChatExporter.Gui.Framework; public class ViewModelManager(IServiceProvider services) { public MainViewModel CreateMainViewModel() => services.GetRequiredService(); public DashboardViewModel CreateDashboardViewModel() => services.GetRequiredService(); public ExportSetupViewModel CreateExportSetupViewModel( Guild guild, IReadOnlyList channels ) { var viewModel = services.GetRequiredService(); viewModel.Guild = guild; viewModel.Channels = channels; return viewModel; } public MessageBoxViewModel CreateMessageBoxViewModel( string title, string message, string? okButtonText, string? cancelButtonText ) { var viewModel = services.GetRequiredService(); viewModel.Title = title; viewModel.Message = message; viewModel.DefaultButtonText = okButtonText; viewModel.CancelButtonText = cancelButtonText; return viewModel; } public MessageBoxViewModel CreateMessageBoxViewModel(string title, string message) => CreateMessageBoxViewModel(title, message, "CLOSE", null); public SettingsViewModel CreateSettingsViewModel() => services.GetRequiredService(); } ================================================ FILE: DiscordChatExporter.Gui/Framework/Window.cs ================================================ using System; using Avalonia.Controls; namespace DiscordChatExporter.Gui.Framework; public class Window : Window { public new TDataContext DataContext { get => base.DataContext is TDataContext dataContext ? dataContext : throw new InvalidCastException( $"DataContext is null or not of the expected type '{typeof(TDataContext).FullName}'." ); set => base.DataContext = value; } } ================================================ FILE: DiscordChatExporter.Gui/Localization/Language.cs ================================================ namespace DiscordChatExporter.Gui.Localization; public enum Language { System, English, Ukrainian, German, French, Spanish, } ================================================ FILE: DiscordChatExporter.Gui/Localization/LocalizationManager.English.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Gui.Localization; public partial class LocalizationManager { private static readonly IReadOnlyDictionary EnglishLocalization = new Dictionary { // Dashboard [nameof(PullGuildsTooltip)] = "Pull available servers and channels (Enter)", [nameof(SettingsTooltip)] = "Settings", [nameof(LastMessageSentTooltip)] = "Last message sent:", [nameof(TokenWatermark)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "To get the token for your personal account:", [nameof(TokenPersonalTosWarning)] = "* Automating user accounts is technically against TOS — **use at your own risk**!", [nameof(TokenPersonalInstructions)] = """ 1. Open Discord in your web browser and login 2. Open any server or direct message channel 3. Press **Ctrl+Shift+I** to show developer tools 4. Navigate to the **Network** tab 5. Press **Ctrl+R** to reload 6. Switch between random channels to trigger network requests 7. Search for a request that starts with **messages** 8. Select the **Headers** tab on the right 9. Scroll down to the **Request Headers** section 10. Copy the value of the **authorization** header """, // Token instructions (bot) [nameof(TokenBotHeader)] = "To get the token for your bot:", [nameof(TokenBotInstructions)] = """ The token is generated during bot creation. If you lost it, generate a new one: 1. Open Discord [developer portal](https://discord.com/developers/applications) 2. Open your application's settings 3. Navigate to the **Bot** section on the left 4. Under **Token** click **Reset Token** 5. Click **Yes, do it!** and authenticate to confirm * Integrations using the previous token will stop working until updated * Your bot needs to have the **Message Content Intent** enabled to read messages """, [nameof(TokenHelpText)] = "If you have questions or issues, please refer to the [documentation](https://github.com/Tyrrrz/DiscordChatExporter/tree/prime/.docs)", // Settings [nameof(SettingsTitle)] = "Settings", [nameof(ThemeLabel)] = "Theme", [nameof(ThemeTooltip)] = "Preferred user interface theme", [nameof(LanguageLabel)] = "Language", [nameof(LanguageTooltip)] = "Preferred user interface language", [nameof(AutoUpdateLabel)] = "Auto-update", [nameof(AutoUpdateTooltip)] = "Perform automatic updates on every launch", [nameof(PersistTokenLabel)] = "Persist token", [nameof(PersistTokenTooltip)] = """ Save the last used token to a file so that it can be persisted between sessions. **Warning**: although the token is stored with encryption, it may still be recovered by an attacker who has access to your system. """, [nameof(RateLimitPreferenceLabel)] = "Rate limit preference", [nameof(RateLimitPreferenceTooltip)] = "Whether to respect advisory rate limits. If disabled, only hard rate limits (i.e. 429 responses) will be respected.", [nameof(ShowThreadsLabel)] = "Show threads", [nameof(ShowThreadsTooltip)] = "Which types of threads to show in the channel list", [nameof(LocaleLabel)] = "Locale", [nameof(LocaleTooltip)] = "Locale to use when formatting dates and numbers", [nameof(NormalizeToUtcLabel)] = "Normalize to UTC", [nameof(NormalizeToUtcTooltip)] = "Normalize all timestamps to UTC+0", [nameof(ParallelLimitLabel)] = "Parallel limit", [nameof(ParallelLimitTooltip)] = "How many channels can be exported at the same time", // Export Setup [nameof(ChannelsSelectedText)] = "channels selected", [nameof(OutputPathLabel)] = "Output path", [nameof(OutputPathTooltip)] = """ Output file or directory path. If a directory is specified, file names will be generated automatically based on the channel names and export parameters. Directory paths must end with a slash to avoid ambiguity. Available template tokens: **%g** — server ID **%G** — server name **%t** — category ID **%T** — category name **%c** — channel ID **%C** — channel name **%p** — channel position **%P** — category position **%a** — after date **%b** — before date **%d** — current date """, [nameof(FormatLabel)] = "Format", [nameof(FormatTooltip)] = "Export format", [nameof(AfterDateLabel)] = "After (date)", [nameof(AfterDateTooltip)] = "Only include messages sent after this date", [nameof(BeforeDateLabel)] = "Before (date)", [nameof(BeforeDateTooltip)] = "Only include messages sent before this date", [nameof(AfterTimeLabel)] = "After (time)", [nameof(AfterTimeTooltip)] = "Only include messages sent after this time", [nameof(BeforeTimeLabel)] = "Before (time)", [nameof(BeforeTimeTooltip)] = "Only include messages sent before this time", [nameof(PartitionLimitLabel)] = "Partition limit", [nameof(PartitionLimitTooltip)] = "Split the output into partitions, each limited to the specified number of messages (e.g. '100') or file size (e.g. '10mb')", [nameof(MessageFilterLabel)] = "Message filter", [nameof(MessageFilterTooltip)] = "Only include messages that satisfy this filter (e.g. 'from:foo#1234' or 'has:image'). See the documentation for more info.", [nameof(ReverseMessageOrderLabel)] = "Reverse messages", [nameof(ReverseMessageOrderTooltip)] = "Export messages in reverse chronological order (newest first)", [nameof(FormatMarkdownLabel)] = "Format markdown", [nameof(FormatMarkdownTooltip)] = "Process markdown, mentions, and other special tokens", [nameof(DownloadAssetsLabel)] = "Download assets", [nameof(DownloadAssetsTooltip)] = "Download assets referenced by the export (user avatars, attached files, embedded images, etc.)", [nameof(ReuseAssetsLabel)] = "Reuse assets", [nameof(ReuseAssetsTooltip)] = "Reuse previously downloaded assets to avoid redundant requests", [nameof(AssetsDirPathLabel)] = "Assets directory path", [nameof(AssetsDirPathTooltip)] = "Download assets to this directory. If not specified, the asset directory path will be derived from the output path.", [nameof(AdvancedOptionsTooltip)] = "Toggle advanced options", [nameof(ExportButton)] = "EXPORT", // Common buttons [nameof(CloseButton)] = "CLOSE", [nameof(CancelButton)] = "CANCEL", // Dialog messages [nameof(UkraineSupportTitle)] = "Thank you for supporting Ukraine!", [nameof(UkraineSupportMessage)] = """ As Russia wages a genocidal war against my country, I'm grateful to everyone who continues to stand with Ukraine in our fight for freedom. Click LEARN MORE to find ways that you can help. """, [nameof(LearnMoreButton)] = "LEARN MORE", [nameof(UnstableBuildTitle)] = "Unstable build warning", [nameof(UnstableBuildMessage)] = """ You're using a development build of {0}. These builds are not thoroughly tested and may contain bugs. Auto-updates are disabled for development builds. Click SEE RELEASES if you want to download a stable release instead. """, [nameof(SeeReleasesButton)] = "SEE RELEASES", [nameof(UpdateDownloadingMessage)] = "Downloading update to {0} v{1}...", [nameof(UpdateReadyMessage)] = "Update has been downloaded and will be installed when you exit", [nameof(UpdateInstallNowButton)] = "INSTALL NOW", [nameof(UpdateFailedMessage)] = "Failed to perform application update", [nameof(ErrorPullingGuildsTitle)] = "Error pulling servers", [nameof(ErrorPullingChannelsTitle)] = "Error pulling channels", [nameof(ErrorExportingTitle)] = "Error exporting channel(s)", [nameof(SuccessfulExportMessage)] = "Successfully exported {0} channel(s)", }; } ================================================ FILE: DiscordChatExporter.Gui/Localization/LocalizationManager.French.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Gui.Localization; public partial class LocalizationManager { private static readonly IReadOnlyDictionary FrenchLocalization = new Dictionary< string, string > { // Dashboard [nameof(PullGuildsTooltip)] = "Charger les serveurs et canaux disponibles (Entrée)", [nameof(SettingsTooltip)] = "Paramètres", [nameof(LastMessageSentTooltip)] = "Dernier message envoyé :", [nameof(TokenWatermark)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Obtenir le token pour votre compte personnel :", [nameof(TokenPersonalTosWarning)] = "* L'automatisation des comptes est techniquement contraire aux CGU — **à vos risques et périls**!", [nameof(TokenPersonalInstructions)] = """ 1. Ouvrez Discord dans votre navigateur web et connectez-vous 2. Ouvrez n'importe quel serveur ou canal de message direct 3. Appuyez sur **Ctrl+Shift+I** pour afficher les outils de développement 4. Naviguez vers l'onglet **Network** 5. Appuyez sur **Ctrl+R** pour recharger 6. Changez de canal pour déclencher des requêtes réseau 7. Cherchez une requête commençant par **messages** 8. Sélectionnez l'onglet **Headers** à droite 9. Faites défiler jusqu'à la section **Request Headers** 10. Copiez la valeur de l'en-tête **authorization** """, // Token instructions (bot) [nameof(TokenBotHeader)] = "Obtenir le token pour votre bot :", [nameof(TokenBotInstructions)] = """ Le token est généré lors de la création du bot. Si vous l'avez perdu, générez-en un nouveau : 1. Ouvrez Discord [portail développeur](https://discord.com/developers/applications) 2. Ouvrez les paramètres de votre application 3. Naviguez vers la section **Bot** à gauche 4. Sous **Token**, cliquez sur **Reset Token** 5. Cliquez sur **Yes, do it!** et confirmez * Les intégrations utilisant l'ancien token cesseront de fonctionner jusqu'à leur mise à jour * Votre bot doit avoir l'option **Message Content Intent** activée pour lire les messages """, [nameof(TokenHelpText)] = "Pour les questions ou problèmes, veuillez consulter la [documentation](https://github.com/Tyrrrz/DiscordChatExporter/tree/prime/.docs)", // Settings [nameof(SettingsTitle)] = "Paramètres", [nameof(ThemeLabel)] = "Thème", [nameof(ThemeTooltip)] = "Thème d'interface préféré", [nameof(LanguageLabel)] = "Langue", [nameof(LanguageTooltip)] = "Langue d'interface préférée", [nameof(AutoUpdateLabel)] = "Mise à jour automatique", [nameof(AutoUpdateTooltip)] = "Effectuer des mises à jour automatiques à chaque lancement", [nameof(PersistTokenLabel)] = "Conserver le token", [nameof(PersistTokenTooltip)] = """ Enregistrer le dernier token utilisé dans un fichier pour le conserver entre les sessions. **Avertissement** : bien que le token soit stocké avec chiffrement, il peut toujours être récupéré par un attaquant ayant accès à votre système. """, [nameof(RateLimitPreferenceLabel)] = "Préférence de limite de débit", [nameof(RateLimitPreferenceTooltip)] = "Indique s'il faut respecter les limites de débit recommandées. Si désactivé, seules les limites strictes (réponses 429) seront respectées.", [nameof(ShowThreadsLabel)] = "Afficher les fils", [nameof(ShowThreadsTooltip)] = "Quels types de fils afficher dans la liste des canaux", [nameof(LocaleLabel)] = "Locale", [nameof(LocaleTooltip)] = "Locale à utiliser pour le formatage des dates et des nombres", [nameof(NormalizeToUtcLabel)] = "Normaliser en UTC", [nameof(NormalizeToUtcTooltip)] = "Normaliser tous les horodatages en UTC+0", [nameof(ParallelLimitLabel)] = "Limite parallèle", [nameof(ParallelLimitTooltip)] = "Combien de canaux peuvent être exportés simultanément", // Export Setup [nameof(ChannelsSelectedText)] = "canaux sélectionnés", [nameof(OutputPathLabel)] = "Chemin de sortie", [nameof(OutputPathTooltip)] = """ Chemin du fichier ou répertoire de sortie. Si un répertoire est spécifié, les noms de fichiers seront générés automatiquement en fonction des noms de canaux et des paramètres d'exportation. Les chemins de répertoire doivent se terminer par un slash pour éviter toute ambiguïté. Jetons de modèle disponibles : **%g** — ID du serveur **%G** — nom du serveur **%t** — ID de la catégorie **%T** — nom de la catégorie **%c** — ID du canal **%C** — nom du canal **%p** — position du canal **%P** — position de la catégorie **%a** — date après **%b** — date avant **%d** — date actuelle """, [nameof(FormatLabel)] = "Format", [nameof(FormatTooltip)] = "Format d'exportation", [nameof(AfterDateLabel)] = "Après (date)", [nameof(AfterDateTooltip)] = "Inclure uniquement les messages envoyés après cette date", [nameof(BeforeDateLabel)] = "Avant (date)", [nameof(BeforeDateTooltip)] = "Inclure uniquement les messages envoyés avant cette date", [nameof(AfterTimeLabel)] = "Après (heure)", [nameof(AfterTimeTooltip)] = "Inclure uniquement les messages envoyés après cette heure", [nameof(BeforeTimeLabel)] = "Avant (heure)", [nameof(BeforeTimeTooltip)] = "Inclure uniquement les messages envoyés avant cette heure", [nameof(PartitionLimitLabel)] = "Limite de partition", [nameof(PartitionLimitTooltip)] = "Diviser la sortie en partitions, chacune limitée au nombre de messages spécifié (ex. '100') ou à la taille de fichier (ex. '10mb')", [nameof(MessageFilterLabel)] = "Filtre de messages", [nameof(MessageFilterTooltip)] = "Inclure uniquement les messages satisfaisant ce filtre (ex. 'from:foo#1234' ou 'has:image'). Voir la documentation pour plus d'informations.", [nameof(ReverseMessageOrderLabel)] = "Inverser l'ordre des messages", [nameof(ReverseMessageOrderTooltip)] = "Exporter les messages en ordre chronologique inversé (les plus récents en premier)", [nameof(FormatMarkdownLabel)] = "Formater le markdown", [nameof(FormatMarkdownTooltip)] = "Traiter le markdown, les mentions et autres tokens spéciaux", [nameof(DownloadAssetsLabel)] = "Télécharger les ressources", [nameof(DownloadAssetsTooltip)] = "Télécharger les ressources référencées par l'export (avatars, fichiers joints, images intégrées, etc.)", [nameof(ReuseAssetsLabel)] = "Réutiliser les ressources", [nameof(ReuseAssetsTooltip)] = "Réutiliser les ressources précédemment téléchargées pour éviter les requêtes redondantes", [nameof(AssetsDirPathLabel)] = "Chemin du dossier des ressources", [nameof(AssetsDirPathTooltip)] = "Télécharger les ressources dans ce dossier. Si non spécifié, le chemin sera dérivé du chemin de sortie.", [nameof(AdvancedOptionsTooltip)] = "Basculer les options avancées", [nameof(ExportButton)] = "EXPORTER", // Common buttons [nameof(CloseButton)] = "FERMER", [nameof(CancelButton)] = "ANNULER", // Dialog messages [nameof(UkraineSupportTitle)] = "Merci de soutenir l'Ukraine !", [nameof(UkraineSupportMessage)] = """ Alors que la Russie mène une guerre génocidaire contre mon pays, je suis reconnaissant envers tous ceux qui continuent à soutenir l'Ukraine dans notre lutte pour la liberté. Cliquez sur EN SAVOIR PLUS pour trouver des moyens d'aider. """, [nameof(LearnMoreButton)] = "EN SAVOIR PLUS", [nameof(UnstableBuildTitle)] = "Avertissement : version instable", [nameof(UnstableBuildMessage)] = """ Vous utilisez une version de développement de {0}. Ces versions ne sont pas rigoureusement testées et peuvent contenir des bugs. Les mises à jour automatiques sont désactivées pour les versions de développement. Cliquez sur VOIR LES VERSIONS pour télécharger une version stable. """, [nameof(SeeReleasesButton)] = "VOIR LES VERSIONS", [nameof(UpdateDownloadingMessage)] = "Téléchargement de la mise à jour vers {0} v{1}...", [nameof(UpdateReadyMessage)] = "La mise à jour a été téléchargée et sera installée à la fermeture", [nameof(UpdateInstallNowButton)] = "INSTALLER MAINTENANT", [nameof(UpdateFailedMessage)] = "Échec de la mise à jour de l'application", [nameof(ErrorPullingGuildsTitle)] = "Erreur lors du chargement des serveurs", [nameof(ErrorPullingChannelsTitle)] = "Erreur lors du chargement des canaux", [nameof(ErrorExportingTitle)] = "Erreur lors de l'exportation des canaux", [nameof(SuccessfulExportMessage)] = "{0} canal(-aux) exporté(s) avec succès", }; } ================================================ FILE: DiscordChatExporter.Gui/Localization/LocalizationManager.German.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Gui.Localization; public partial class LocalizationManager { private static readonly IReadOnlyDictionary GermanLocalization = new Dictionary< string, string > { // Dashboard [nameof(PullGuildsTooltip)] = "Verfügbare Server und Kanäle laden (Enter)", [nameof(SettingsTooltip)] = "Einstellungen", [nameof(LastMessageSentTooltip)] = "Letzte Nachricht gesendet:", [nameof(TokenWatermark)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Token für Ihr persönliches Konto abrufen:", [nameof(TokenPersonalTosWarning)] = "* Das Automatisieren von Benutzerkonten verstößt technisch gegen die AGB — **auf eigene Gefahr**!", [nameof(TokenPersonalInstructions)] = """ 1. Öffnen Sie Discord in Ihrem Webbrowser und melden Sie sich an 2. Öffnen Sie einen Server oder einen direkten Nachrichtenkanal 3. Drücken Sie **Ctrl+Shift+I**, um die Entwicklertools anzuzeigen 4. Navigieren Sie zum Reiter **Network** 5. Drücken Sie **Ctrl+R** zum Neuladen 6. Wechseln Sie zwischen Kanälen, um Netzwerkanfragen auszulösen 7. Suchen Sie nach einer Anfrage, die mit **messages** beginnt 8. Wählen Sie den Reiter **Headers** auf der rechten Seite 9. Scrollen Sie nach unten zum Abschnitt **Request Headers** 10. Kopieren Sie den Wert des Headers **authorization** """, // Token instructions (bot) [nameof(TokenBotHeader)] = "Token für Ihren Bot abrufen:", [nameof(TokenBotInstructions)] = """ Der Token wird bei der Bot-Erstellung generiert. Falls er verloren gegangen ist, generieren Sie einen neuen: 1. Öffnen Sie Discord [Entwicklerportal](https://discord.com/developers/applications) 2. Öffnen Sie die Einstellungen Ihrer Anwendung 3. Navigieren Sie zum Abschnitt **Bot** auf der linken Seite 4. Klicken Sie unter **Token** auf **Reset Token** 5. Klicken Sie auf **Yes, do it!** und bestätigen Sie * Integrationen, die den alten Token verwenden, hören auf zu funktionieren, bis sie aktualisiert werden * Ihr Bot benötigt die aktivierte **Message Content Intent**, um Nachrichten zu lesen """, [nameof(TokenHelpText)] = "Bei Fragen oder Problemen lesen Sie die [Dokumentation](https://github.com/Tyrrrz/DiscordChatExporter/tree/prime/.docs)", // Settings [nameof(SettingsTitle)] = "Einstellungen", [nameof(ThemeLabel)] = "Design", [nameof(ThemeTooltip)] = "Bevorzugtes Oberflächendesign", [nameof(LanguageLabel)] = "Sprache", [nameof(LanguageTooltip)] = "Bevorzugte Sprache der Benutzeroberfläche", [nameof(AutoUpdateLabel)] = "Automatische Updates", [nameof(AutoUpdateTooltip)] = "Automatische Updates bei jedem Start durchführen", [nameof(PersistTokenLabel)] = "Token speichern", [nameof(PersistTokenTooltip)] = """ Den zuletzt verwendeten Token in einer Datei speichern, damit er zwischen Sitzungen erhalten bleibt. **Warnung**: Der Token wird mit Verschlüsselung gespeichert, kann aber dennoch von einem Angreifer mit Zugriff auf Ihr System wiederhergestellt werden. """, [nameof(RateLimitPreferenceLabel)] = "Ratenlimit-Einstellung", [nameof(RateLimitPreferenceTooltip)] = "Ob empfohlene Ratenlimits eingehalten werden sollen. Wenn deaktiviert, werden nur harte Ratenlimits (d. h. 429-Antworten) eingehalten.", [nameof(ShowThreadsLabel)] = "Threads anzeigen", [nameof(ShowThreadsTooltip)] = "Welche Thread-Typen in der Kanalliste angezeigt werden", [nameof(LocaleLabel)] = "Gebietsschema", [nameof(LocaleTooltip)] = "Gebietsschema für die Formatierung von Daten und Zahlen", [nameof(NormalizeToUtcLabel)] = "Auf UTC normalisieren", [nameof(NormalizeToUtcTooltip)] = "Alle Zeitstempel auf UTC+0 normalisieren", [nameof(ParallelLimitLabel)] = "Paralleles Limit", [nameof(ParallelLimitTooltip)] = "Wie viele Kanäle gleichzeitig exportiert werden können", // Export Setup [nameof(ChannelsSelectedText)] = "Kanäle ausgewählt", [nameof(OutputPathLabel)] = "Ausgabepfad", [nameof(OutputPathTooltip)] = """ Ausgabedatei- oder Verzeichnispfad. Wenn ein Verzeichnis angegeben wird, werden Dateinamen automatisch basierend auf den Kanalnamen und Exportparametern generiert. Verzeichnispfade müssen mit einem Schrägstrich enden, um Mehrdeutigkeiten zu vermeiden. Verfügbare Vorlagen-Token: **%g** — Server-ID **%G** — Servername **%t** — Kategorie-ID **%T** — Kategoriename **%c** — Kanal-ID **%C** — Kanalname **%p** — Kanalposition **%P** — Kategorieposition **%a** — Datum ab **%b** — Datum bis **%d** — aktuelles Datum """, [nameof(FormatLabel)] = "Format", [nameof(FormatTooltip)] = "Exportformat", [nameof(AfterDateLabel)] = "Nach (Datum)", [nameof(AfterDateTooltip)] = "Nur Nachrichten einschließen, die nach diesem Datum gesendet wurden", [nameof(BeforeDateLabel)] = "Vor (Datum)", [nameof(BeforeDateTooltip)] = "Nur Nachrichten einschließen, die vor diesem Datum gesendet wurden", [nameof(AfterTimeLabel)] = "Nach (Uhrzeit)", [nameof(AfterTimeTooltip)] = "Nur Nachrichten einschließen, die nach dieser Uhrzeit gesendet wurden", [nameof(BeforeTimeLabel)] = "Vor (Uhrzeit)", [nameof(BeforeTimeTooltip)] = "Nur Nachrichten einschließen, die vor dieser Uhrzeit gesendet wurden", [nameof(PartitionLimitLabel)] = "Partitionslimit", [nameof(PartitionLimitTooltip)] = "Die Ausgabe in Partitionen aufteilen, jede begrenzt auf die angegebene Anzahl von Nachrichten (z. B. '100') oder Dateigröße (z. B. '10mb')", [nameof(MessageFilterLabel)] = "Nachrichtenfilter", [nameof(MessageFilterTooltip)] = "Nur Nachrichten einschließen, die diesem Filter entsprechen (z. B. 'from:foo#1234' oder 'has:image'). Weitere Informationen finden Sie in der Dokumentation.", [nameof(ReverseMessageOrderLabel)] = "Nachrichtenreihenfolge umkehren", [nameof(ReverseMessageOrderTooltip)] = "Nachrichten in umgekehrter chronologischer Reihenfolge exportieren (neueste zuerst)", [nameof(FormatMarkdownLabel)] = "Markdown formatieren", [nameof(FormatMarkdownTooltip)] = "Markdown, Erwähnungen und andere spezielle Token verarbeiten", [nameof(DownloadAssetsLabel)] = "Assets herunterladen", [nameof(DownloadAssetsTooltip)] = "Vom Export referenzierte Assets herunterladen (Benutzeravatare, angehängte Dateien, eingebettete Bilder usw.)", [nameof(ReuseAssetsLabel)] = "Assets wiederverwenden", [nameof(ReuseAssetsTooltip)] = "Zuvor heruntergeladene Assets wiederverwenden, um redundante Anfragen zu vermeiden", [nameof(AssetsDirPathLabel)] = "Asset-Verzeichnispfad", [nameof(AssetsDirPathTooltip)] = "Assets in dieses Verzeichnis herunterladen. Wenn nicht angegeben, wird der Asset-Verzeichnispfad vom Ausgabepfad abgeleitet.", [nameof(AdvancedOptionsTooltip)] = "Erweiterte Optionen umschalten", [nameof(ExportButton)] = "EXPORTIEREN", // Common buttons [nameof(CloseButton)] = "SCHLIESSEN", [nameof(CancelButton)] = "ABBRECHEN", // Dialog messages [nameof(UkraineSupportTitle)] = "Danke für Ihre Unterstützung der Ukraine!", [nameof(UkraineSupportMessage)] = """ Während Russland einen Vernichtungskrieg gegen mein Land führt, bin ich jedem dankbar, der weiterhin an der Seite der Ukraine in unserem Kampf für die Freiheit steht. Klicken Sie auf MEHR ERFAHREN, um Möglichkeiten der Unterstützung zu finden. """, [nameof(LearnMoreButton)] = "MEHR ERFAHREN", [nameof(UnstableBuildTitle)] = "Warnung: Instabile Version", [nameof(UnstableBuildMessage)] = """ Sie verwenden eine Entwicklungsversion von {0}. Diese Versionen wurden nicht gründlich getestet und können Fehler enthalten. Automatische Updates sind für Entwicklungsversionen deaktiviert. Klicken Sie auf RELEASES ANZEIGEN, wenn Sie stattdessen eine stabile Version herunterladen möchten. """, [nameof(SeeReleasesButton)] = "RELEASES ANZEIGEN", [nameof(UpdateDownloadingMessage)] = "Update auf {0} v{1} wird heruntergeladen...", [nameof(UpdateReadyMessage)] = "Update wurde heruntergeladen und wird beim Beenden installiert", [nameof(UpdateInstallNowButton)] = "JETZT INSTALLIEREN", [nameof(UpdateFailedMessage)] = "Anwendungsupdate konnte nicht durchgeführt werden", [nameof(ErrorPullingGuildsTitle)] = "Fehler beim Laden der Server", [nameof(ErrorPullingChannelsTitle)] = "Fehler beim Laden der Kanäle", [nameof(ErrorExportingTitle)] = "Fehler beim Exportieren der Kanäle", [nameof(SuccessfulExportMessage)] = "{0} Kanal/-äle erfolgreich exportiert", }; } ================================================ FILE: DiscordChatExporter.Gui/Localization/LocalizationManager.Spanish.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Gui.Localization; public partial class LocalizationManager { private static readonly IReadOnlyDictionary SpanishLocalization = new Dictionary { // Dashboard [nameof(PullGuildsTooltip)] = "Cargar servidores y canales disponibles (Enter)", [nameof(SettingsTooltip)] = "Ajustes", [nameof(LastMessageSentTooltip)] = "Último mensaje enviado:", [nameof(TokenWatermark)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Cómo obtener el token para tu cuenta personal:", [nameof(TokenPersonalTosWarning)] = "* Automatizar cuentas de usuario técnicamente va en contra de los ToS — **bajo tu propio riesgo**!", [nameof(TokenPersonalInstructions)] = """ 1. Abre Discord en tu navegador web e inicia sesión 2. Abre cualquier servidor o canal de mensaje directo 3. Presiona **Ctrl+Shift+I** para mostrar las herramientas de desarrollo 4. Navega a la pestaña **Network** 5. Presiona **Ctrl+R** para recargar 6. Cambia entre canales para activar solicitudes de red 7. Busca una solicitud que comience con **messages** 8. Selecciona la pestaña **Headers** a la derecha 9. Desplázate hasta la sección **Request Headers** 10. Copia el valor del encabezado **authorization** """, // Token instructions (bot) [nameof(TokenBotHeader)] = "Cómo obtener el token para tu bot:", [nameof(TokenBotInstructions)] = """ El token se genera al crear el bot. Si lo perdiste, genera uno nuevo: 1. Abre Discord [portal de desarrolladores](https://discord.com/developers/applications) 2. Abre la configuración de tu aplicación 3. Navega a la sección **Bot** en el lado izquierdo 4. En **Token**, haz clic en **Reset Token** 5. Haz clic en **Yes, do it!** y autentica para confirmar * Las integraciones que usen el token anterior dejarán de funcionar hasta que se actualicen * Tu bot necesita tener habilitado **Message Content Intent** para leer mensajes """, [nameof(TokenHelpText)] = "Si tienes preguntas o problemas, consulta la [documentación](https://github.com/Tyrrrz/DiscordChatExporter/tree/prime/.docs)", // Settings [nameof(SettingsTitle)] = "Ajustes", [nameof(ThemeLabel)] = "Tema", [nameof(ThemeTooltip)] = "Tema de interfaz preferido", [nameof(LanguageLabel)] = "Idioma", [nameof(LanguageTooltip)] = "Idioma de interfaz preferido", [nameof(AutoUpdateLabel)] = "Actualización automática", [nameof(AutoUpdateTooltip)] = "Realizar actualizaciones automáticas en cada inicio", [nameof(PersistTokenLabel)] = "Guardar token", [nameof(PersistTokenTooltip)] = """ Guardar el último token utilizado en un archivo para conservarlo entre sesiones. **Advertencia**: aunque el token se almacena con cifrado, aún puede ser recuperado por un atacante con acceso a tu sistema. """, [nameof(RateLimitPreferenceLabel)] = "Preferencia de límite de velocidad", [nameof(RateLimitPreferenceTooltip)] = "Si se deben respetar los límites de velocidad recomendados. Si está desactivado, solo se respetarán los límites estrictos (respuestas 429).", [nameof(ShowThreadsLabel)] = "Mostrar hilos", [nameof(ShowThreadsTooltip)] = "Qué tipos de hilos mostrar en la lista de canales", [nameof(LocaleLabel)] = "Configuración regional", [nameof(LocaleTooltip)] = "Configuración regional para el formato de fechas y números", [nameof(NormalizeToUtcLabel)] = "Normalizar a UTC", [nameof(NormalizeToUtcTooltip)] = "Normalizar todas las marcas de tiempo a UTC+0", [nameof(ParallelLimitLabel)] = "Límite paralelo", [nameof(ParallelLimitTooltip)] = "Cuántos canales pueden exportarse al mismo tiempo", // Export Setup [nameof(ChannelsSelectedText)] = "canales seleccionados", [nameof(OutputPathLabel)] = "Ruta de salida", [nameof(OutputPathTooltip)] = """ Ruta del archivo o directorio de salida. Si se especifica un directorio, los nombres de archivo se generarán automáticamente según los nombres de los canales y los parámetros de exportación. Las rutas de directorio deben terminar con una barra diagonal para evitar ambigüedades. Tokens de plantilla disponibles: **%g** — ID del servidor **%G** — nombre del servidor **%t** — ID de categoría **%T** — nombre de categoría **%c** — ID del canal **%C** — nombre del canal **%p** — posición del canal **%P** — posición de la categoría **%a** — fecha desde **%b** — fecha hasta **%d** — fecha actual """, [nameof(FormatLabel)] = "Formato", [nameof(FormatTooltip)] = "Formato de exportación", [nameof(AfterDateLabel)] = "Después (fecha)", [nameof(AfterDateTooltip)] = "Solo incluir mensajes enviados después de esta fecha", [nameof(BeforeDateLabel)] = "Antes (fecha)", [nameof(BeforeDateTooltip)] = "Solo incluir mensajes enviados antes de esta fecha", [nameof(AfterTimeLabel)] = "Después (hora)", [nameof(AfterTimeTooltip)] = "Solo incluir mensajes enviados después de esta hora", [nameof(BeforeTimeLabel)] = "Antes (hora)", [nameof(BeforeTimeTooltip)] = "Solo incluir mensajes enviados antes de esta hora", [nameof(PartitionLimitLabel)] = "Límite de partición", [nameof(PartitionLimitTooltip)] = "Dividir la salida en particiones, cada una limitada al número de mensajes especificado (p. ej. '100') o tamaño de archivo (p. ej. '10mb')", [nameof(MessageFilterLabel)] = "Filtro de mensajes", [nameof(MessageFilterTooltip)] = "Solo incluir mensajes que satisfagan este filtro (p. ej. 'from:foo#1234' o 'has:image'). Consulte la documentación para más información.", [nameof(ReverseMessageOrderLabel)] = "Invertir orden de mensajes", [nameof(ReverseMessageOrderTooltip)] = "Exportar mensajes en orden cronológico inverso (los más recientes primero)", [nameof(FormatMarkdownLabel)] = "Formatear markdown", [nameof(FormatMarkdownTooltip)] = "Procesar markdown, menciones y otros tokens especiales", [nameof(DownloadAssetsLabel)] = "Descargar recursos", [nameof(DownloadAssetsTooltip)] = "Descargar los recursos referenciados por la exportación (avatares, archivos adjuntos, imágenes incrustadas, etc.)", [nameof(ReuseAssetsLabel)] = "Reutilizar recursos", [nameof(ReuseAssetsTooltip)] = "Reutilizar recursos previamente descargados para evitar solicitudes redundantes", [nameof(AssetsDirPathLabel)] = "Ruta del directorio de recursos", [nameof(AssetsDirPathTooltip)] = "Descargar recursos en este directorio. Si no se especifica, la ruta se derivará de la ruta de salida.", [nameof(AdvancedOptionsTooltip)] = "Alternar opciones avanzadas", [nameof(ExportButton)] = "EXPORTAR", // Common buttons [nameof(CloseButton)] = "CERRAR", [nameof(CancelButton)] = "CANCELAR", // Dialog messages [nameof(UkraineSupportTitle)] = "¡Gracias por apoyar a Ucrania!", [nameof(UkraineSupportMessage)] = """ Mientras Rusia libra una guerra genocida contra mi país, estoy agradecido con todos los que continúan apoyando a Ucrania en nuestra lucha por la libertad. Haga clic en MÁS INFORMACIÓN para encontrar formas de ayudar. """, [nameof(LearnMoreButton)] = "MÁS INFORMACIÓN", [nameof(UnstableBuildTitle)] = "Advertencia de versión inestable", [nameof(UnstableBuildMessage)] = """ Está usando una versión de desarrollo de {0}. Estas versiones no han sido probadas exhaustivamente y pueden contener errores. Las actualizaciones automáticas están desactivadas para las versiones de desarrollo. Haga clic en VER VERSIONES si desea descargar una versión estable. """, [nameof(SeeReleasesButton)] = "VER VERSIONES", [nameof(UpdateDownloadingMessage)] = "Descargando actualización a {0} v{1}...", [nameof(UpdateReadyMessage)] = "La actualización se ha descargado y se instalará al salir", [nameof(UpdateInstallNowButton)] = "INSTALAR AHORA", [nameof(UpdateFailedMessage)] = "Error al realizar la actualización de la aplicación", [nameof(ErrorPullingGuildsTitle)] = "Error al cargar servidores", [nameof(ErrorPullingChannelsTitle)] = "Error al cargar canales", [nameof(ErrorExportingTitle)] = "Error al exportar canal(es)", [nameof(SuccessfulExportMessage)] = "{0} canal(es) exportado(s) con éxito", }; } ================================================ FILE: DiscordChatExporter.Gui/Localization/LocalizationManager.Ukrainian.cs ================================================ using System.Collections.Generic; namespace DiscordChatExporter.Gui.Localization; public partial class LocalizationManager { private static readonly IReadOnlyDictionary UkrainianLocalization = new Dictionary { // Dashboard [nameof(PullGuildsTooltip)] = "Завантажити доступні сервери та канали (Enter)", [nameof(SettingsTooltip)] = "Налаштування", [nameof(LastMessageSentTooltip)] = "Останнє повідомлення:", [nameof(TokenWatermark)] = "Токен", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Як отримати токен для персонального акаунту:", [nameof(TokenPersonalTosWarning)] = "* Автоматизація облікових записів технічно порушує Умови обслуговування — **на власний ризик**!", [nameof(TokenPersonalInstructions)] = """ 1. Відкрийте Discord у вашому веб-браузері та увійдіть 2. Відкрийте будь-який сервер або канал особистих повідомлень 3. Натисніть **Ctrl+Shift+I**, щоб відкрити інструменти розробника 4. Перейдіть на вкладку **Network** 5. Натисніть **Ctrl+R** для перезавантаження 6. Перемикайтеся між каналами, щоб викликати мережеві запити 7. Знайдіть запит, що починається з **messages** 8. Виберіть вкладку **Headers** праворуч 9. Прокрутіть до розділу **Request Headers** 10. Скопіюйте значення заголовка **authorization** """, // Token instructions (bot) [nameof(TokenBotHeader)] = "Як отримати токен для бота:", [nameof(TokenBotInstructions)] = """ Токен генерується під час створення бота. Якщо ви його втратили, згенеруйте новий: 1. Відкрийте Discord [портал розробника](https://discord.com/developers/applications) 2. Відкрийте налаштування вашого застосунку 3. Перейдіть до розділу **Bot** ліворуч 4. В розділі **Token** натисніть **Reset Token** 5. Натисніть **Yes, do it!** та підтвердьте * Інтеграції, що використовують попередній токен, перестануть працювати * Ваш бот повинен мати включений **Message Content Intent** для читання повідомлень """, [nameof(TokenHelpText)] = "Якщо у вас є запитання або проблеми, зверніться до [документації](https://github.com/Tyrrrz/DiscordChatExporter/tree/prime/.docs)", // Settings [nameof(SettingsTitle)] = "Налаштування", [nameof(ThemeLabel)] = "Тема", [nameof(ThemeTooltip)] = "Бажана тема інтерфейсу", [nameof(LanguageLabel)] = "Мова", [nameof(LanguageTooltip)] = "Бажана мова інтерфейсу", [nameof(AutoUpdateLabel)] = "Авто-оновлення", [nameof(AutoUpdateTooltip)] = "Виконувати автоматичні оновлення при кожному запуску", [nameof(PersistTokenLabel)] = "Зберігати токен", [nameof(PersistTokenTooltip)] = """ Зберігати останній використаний токен у файлі для збереження між сеансами. **Увага**: хоча токен зберігається із шифруванням, він може бути відновлений зловмисником, який має доступ до вашої системи. """, [nameof(RateLimitPreferenceLabel)] = "Ліміт запитів", [nameof(RateLimitPreferenceTooltip)] = "Чи дотримуватись рекомендованих лімітів запитів. Якщо вимкнено, будуть дотримуватись лише жорсткі ліміти (тобто відповіді 429).", [nameof(ShowThreadsLabel)] = "Показувати гілки", [nameof(ShowThreadsTooltip)] = "Які типи гілок показувати у списку каналів", [nameof(LocaleLabel)] = "Локаль", [nameof(LocaleTooltip)] = "Локаль для форматування дат та чисел", [nameof(NormalizeToUtcLabel)] = "Нормалізувати до UTC", [nameof(NormalizeToUtcTooltip)] = "Нормалізувати всі часові мітки до UTC+0", [nameof(ParallelLimitLabel)] = "Ліміт паралелізації", [nameof(ParallelLimitTooltip)] = "Скільки каналів може експортуватись одночасно", // Export Setup [nameof(ChannelsSelectedText)] = "каналів вибрано", [nameof(OutputPathLabel)] = "Шлях збереження", [nameof(OutputPathTooltip)] = """ Шлях до файлу або директорії виводу. Якщо вказано директорію, імена файлів генеруватимуться автоматично на основі назв каналів та параметрів експорту. Шляхи до директорій повинні закінчуватись слешем для уникнення неоднозначності. Доступні шаблонні токени: **%g** — ID сервера **%G** — назва сервера **%t** — ID категорії **%T** — назва категорії **%c** — ID каналу **%C** — назва каналу **%p** — позиція каналу **%P** — позиція категорії **%a** — дата після **%b** — дата до **%d** — поточна дата """, [nameof(FormatLabel)] = "Формат", [nameof(FormatTooltip)] = "Формат експорту", [nameof(AfterDateLabel)] = "Після (дата)", [nameof(AfterDateTooltip)] = "Включати лише повідомлення, надіслані після цієї дати", [nameof(BeforeDateLabel)] = "До (дата)", [nameof(BeforeDateTooltip)] = "Включати лише повідомлення, надіслані до цієї дати", [nameof(AfterTimeLabel)] = "Після (час)", [nameof(AfterTimeTooltip)] = "Включати лише повідомлення, надіслані після цього часу", [nameof(BeforeTimeLabel)] = "До (час)", [nameof(BeforeTimeTooltip)] = "Включати лише повідомлення, надіслані до цього часу", [nameof(PartitionLimitLabel)] = "Розділяти експорт", [nameof(PartitionLimitTooltip)] = "Розділити вивід на частини, кожна обмежена вказаною кількістю повідомлень (напр. '100') або розміром файлу (напр. '10mb')", [nameof(MessageFilterLabel)] = "Фільтр повідомлень", [nameof(MessageFilterTooltip)] = "Включати лише повідомлення, що відповідають цьому фільтру (напр. 'from:foo#1234' або 'has:image'). Дивіться документацію для більш детальної інформації.", [nameof(ReverseMessageOrderLabel)] = "Зворотній порядок повідомлень", [nameof(ReverseMessageOrderTooltip)] = "Експортувати повідомлення у зворотному хронологічному порядку (найновіші спочатку)", [nameof(FormatMarkdownLabel)] = "Форматувати markdown", [nameof(FormatMarkdownTooltip)] = "Обробляти markdown, згадки та інші спеціальні токени", [nameof(DownloadAssetsLabel)] = "Завантажувати ресурси", [nameof(DownloadAssetsTooltip)] = "Завантажувати ресурси, на які посилається експорт (аватари, вкладені файли, вбудовані зображення тощо)", [nameof(ReuseAssetsLabel)] = "Повторно використовувати ресурси", [nameof(ReuseAssetsTooltip)] = "Повторно використовувати раніше завантажені ресурси, щоб уникнути зайвих запитів", [nameof(AssetsDirPathLabel)] = "Шлях до директорії ресурсів", [nameof(AssetsDirPathTooltip)] = "Завантажувати ресурси до цієї директорії. Якщо не вказано, шлях до директорії ресурсів буде визначено з шляху збереження.", [nameof(AdvancedOptionsTooltip)] = "Перемкнути розширені параметри", [nameof(ExportButton)] = "ЕКСПОРТУВАТИ", // Common buttons [nameof(CloseButton)] = "ЗАКРИТИ", [nameof(CancelButton)] = "СКАСУВАТИ", // Dialog messages [nameof(UkraineSupportTitle)] = "Дякуємо за підтримку України!", [nameof(UkraineSupportMessage)] = """ Поки Росія веде геноцидну війну проти моєї країни, я вдячний кожному, хто продовжує підтримувати Україну у нашій боротьбі за свободу. Натисніть ДІЗНАТИСЬ БІЛЬШЕ, щоб знайти способи допомогти. """, [nameof(LearnMoreButton)] = "ДІЗНАТИСЬ БІЛЬШЕ", [nameof(UnstableBuildTitle)] = "Попередження про нестабільну збірку", [nameof(UnstableBuildMessage)] = """ Ви використовуєте збірку розробки {0}. Ці збірки не пройшли ретельного тестування та можуть містити помилки. Авто-оновлення вимкнено для збірок розробки. Натисніть ПЕРЕГЛЯНУТИ РЕЛІЗИ, щоб завантажити стабільний реліз. """, [nameof(SeeReleasesButton)] = "ПЕРЕГЛЯНУТИ РЕЛІЗИ", [nameof(UpdateDownloadingMessage)] = "Завантаження оновлення {0} v{1}...", [nameof(UpdateReadyMessage)] = "Оновлення завантажено та буде встановлено після виходу", [nameof(UpdateInstallNowButton)] = "ВСТАНОВИТИ ЗАРАЗ", [nameof(UpdateFailedMessage)] = "Не вдалося виконати оновлення програми", [nameof(ErrorPullingGuildsTitle)] = "Помилка завантаження серверів", [nameof(ErrorPullingChannelsTitle)] = "Помилка завантаження каналів", [nameof(ErrorExportingTitle)] = "Помилка експорту каналу(-ів)", [nameof(SuccessfulExportMessage)] = "Успішно експортовано {0} канал(-ів)", }; } ================================================ FILE: DiscordChatExporter.Gui/Localization/LocalizationManager.cs ================================================ using System; using System.Globalization; using System.Runtime.CompilerServices; using CommunityToolkit.Mvvm.ComponentModel; using DiscordChatExporter.Gui.Services; using DiscordChatExporter.Gui.Utils; using DiscordChatExporter.Gui.Utils.Extensions; namespace DiscordChatExporter.Gui.Localization; public partial class LocalizationManager : ObservableObject, IDisposable { private readonly DisposableCollector _eventRoot = new(); public LocalizationManager(SettingsService settingsService) { _eventRoot.Add( settingsService.WatchProperty( o => o.Language, () => Language = settingsService.Language, true ) ); _eventRoot.Add( this.WatchProperty( o => o.Language, () => { foreach (var propertyName in EnglishLocalization.Keys) OnPropertyChanged(propertyName); } ) ); } [ObservableProperty] public partial Language Language { get; set; } = Language.System; private string Get([CallerMemberName] string? key = null) { if (string.IsNullOrWhiteSpace(key)) return string.Empty; var localization = Language switch { Language.System => CultureInfo.CurrentUICulture.ThreeLetterISOLanguageName.ToLowerInvariant() switch { "ukr" => UkrainianLocalization, "deu" => GermanLocalization, "fra" => FrenchLocalization, "spa" => SpanishLocalization, _ => EnglishLocalization, }, Language.Ukrainian => UkrainianLocalization, Language.German => GermanLocalization, Language.French => FrenchLocalization, Language.Spanish => SpanishLocalization, _ => EnglishLocalization, }; if ( localization.TryGetValue(key, out var value) // English is used as a fallback || EnglishLocalization.TryGetValue(key, out value) ) { return value; } return $"Missing localization for '{key}'"; } public void Dispose() => _eventRoot.Dispose(); } public partial class LocalizationManager { // ---- Dashboard ---- public string PullGuildsTooltip => Get(); public string SettingsTooltip => Get(); public string LastMessageSentTooltip => Get(); public string TokenWatermark => Get(); // Token instructions (personal account) public string TokenPersonalHeader => Get(); public string TokenPersonalTosWarning => Get(); public string TokenPersonalInstructions => Get(); // Token instructions (bot) public string TokenBotHeader => Get(); public string TokenBotInstructions => Get(); public string TokenHelpText => Get(); // ---- Settings ---- public string SettingsTitle => Get(); public string ThemeLabel => Get(); public string ThemeTooltip => Get(); public string LanguageLabel => Get(); public string LanguageTooltip => Get(); public string AutoUpdateLabel => Get(); public string AutoUpdateTooltip => Get(); public string PersistTokenLabel => Get(); public string PersistTokenTooltip => Get(); public string RateLimitPreferenceLabel => Get(); public string RateLimitPreferenceTooltip => Get(); public string ShowThreadsLabel => Get(); public string ShowThreadsTooltip => Get(); public string LocaleLabel => Get(); public string LocaleTooltip => Get(); public string NormalizeToUtcLabel => Get(); public string NormalizeToUtcTooltip => Get(); public string ParallelLimitLabel => Get(); public string ParallelLimitTooltip => Get(); // ---- Export Setup ---- public string ChannelsSelectedText => Get(); public string OutputPathLabel => Get(); public string OutputPathTooltip => Get(); public string FormatLabel => Get(); public string FormatTooltip => Get(); public string AfterDateLabel => Get(); public string AfterDateTooltip => Get(); public string BeforeDateLabel => Get(); public string BeforeDateTooltip => Get(); public string AfterTimeLabel => Get(); public string AfterTimeTooltip => Get(); public string BeforeTimeLabel => Get(); public string BeforeTimeTooltip => Get(); public string PartitionLimitLabel => Get(); public string PartitionLimitTooltip => Get(); public string MessageFilterLabel => Get(); public string MessageFilterTooltip => Get(); public string ReverseMessageOrderLabel => Get(); public string ReverseMessageOrderTooltip => Get(); public string FormatMarkdownLabel => Get(); public string FormatMarkdownTooltip => Get(); public string DownloadAssetsLabel => Get(); public string DownloadAssetsTooltip => Get(); public string ReuseAssetsLabel => Get(); public string ReuseAssetsTooltip => Get(); public string AssetsDirPathLabel => Get(); public string AssetsDirPathTooltip => Get(); public string AdvancedOptionsTooltip => Get(); public string ExportButton => Get(); // ---- Common buttons ---- public string CloseButton => Get(); public string CancelButton => Get(); // ---- Dialog messages ---- public string UkraineSupportTitle => Get(); public string UkraineSupportMessage => Get(); public string LearnMoreButton => Get(); public string UnstableBuildTitle => Get(); public string UnstableBuildMessage => Get(); public string SeeReleasesButton => Get(); public string UpdateDownloadingMessage => Get(); public string UpdateReadyMessage => Get(); public string UpdateInstallNowButton => Get(); public string UpdateFailedMessage => Get(); public string ErrorPullingGuildsTitle => Get(); public string ErrorPullingChannelsTitle => Get(); public string ErrorExportingTitle => Get(); public string SuccessfulExportMessage => Get(); } ================================================ FILE: DiscordChatExporter.Gui/Models/ThreadInclusionMode.cs ================================================ namespace DiscordChatExporter.Gui.Models; public enum ThreadInclusionMode { None, Active, All, } ================================================ FILE: DiscordChatExporter.Gui/Program.cs ================================================ using System; using System.Reflection; using Avalonia; using DiscordChatExporter.Gui.Utils; namespace DiscordChatExporter.Gui; public static class Program { private static Assembly Assembly { get; } = Assembly.GetExecutingAssembly(); public static string Name { get; } = Assembly.GetName().Name ?? "DiscordChatExporter"; public static Version Version { get; } = Assembly.GetName().Version ?? new Version(0, 0, 0); public static string VersionString { get; } = Version.ToString(3); public static bool IsDevelopmentBuild { get; } = Version.Major is <= 0 or >= 999; public static string ProjectUrl { get; } = "https://github.com/Tyrrrz/DiscordChatExporter"; public static string ProjectReleasesUrl { get; } = $"{ProjectUrl}/releases"; public static string ProjectDocumentationUrl { get; } = ProjectUrl + "/tree/prime/.docs"; public static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure().UsePlatformDetect().LogToTrace(); [STAThread] public static int Main(string[] args) { // Build and run the app var builder = BuildAvaloniaApp(); try { return builder.StartWithClassicDesktopLifetime(args); } catch (Exception ex) { if (OperatingSystem.IsWindows()) _ = NativeMethods.Windows.MessageBox(0, ex.ToString(), "Fatal Error", 0x10); throw; } finally { // Clean up after application shutdown if (builder.Instance is IDisposable disposableApp) disposableApp.Dispose(); } } } ================================================ FILE: DiscordChatExporter.Gui/Publish-MacOSBundle.ps1 ================================================ param( [Parameter(Mandatory=$true)] [string]$PublishDirPath, [Parameter(Mandatory=$true)] [string]$IconsFilePath, [Parameter(Mandatory=$true)] [string]$FullVersion, [Parameter(Mandatory=$true)] [string]$ShortVersion ) $ErrorActionPreference = "Stop" # Setup paths $tempDirPath = Join-Path $PublishDirPath "../publish-macos-app-temp" $bundleName = "DiscordChatExporter.app" $bundleDirPath = Join-Path $tempDirPath $bundleName $contentsDirPath = Join-Path $bundleDirPath "Contents" $macosDirPath = Join-Path $contentsDirPath "MacOS" $resourcesDirPath = Join-Path $contentsDirPath "Resources" try { # Initialize the bundle's directory structure New-Item -Path $bundleDirPath -ItemType Directory -Force New-Item -Path $contentsDirPath -ItemType Directory -Force New-Item -Path $macosDirPath -ItemType Directory -Force New-Item -Path $resourcesDirPath -ItemType Directory -Force # Copy icons into the .app's Resources folder Copy-Item -Path $IconsFilePath -Destination (Join-Path $resourcesDirPath "AppIcon.icns") -Force # Generate the Info.plist metadata file with the app information $plistContent = @" CFBundleDisplayName DiscordChatExporter CFBundleName DiscordChatExporter CFBundleExecutable DiscordChatExporter NSHumanReadableCopyright © Oleksii Holub CFBundleIdentifier me.Tyrrrz.DiscordChatExporter CFBundleSpokenName Discord Chat Exporter CFBundleIconFile AppIcon CFBundleIconName AppIcon CFBundleVersion $FullVersion CFBundleShortVersionString $ShortVersion NSHighResolutionCapable CFBundlePackageType APPL "@ Set-Content -Path (Join-Path $contentsDirPath "Info.plist") -Value $plistContent # Delete the previous bundle if it exists if (Test-Path (Join-Path $PublishDirPath $bundleName)) { Remove-Item -Path (Join-Path $PublishDirPath $bundleName) -Recurse -Force } # Move all files from the publish directory into the MacOS directory Get-ChildItem -Path $PublishDirPath | ForEach-Object { Move-Item -Path $_.FullName -Destination $macosDirPath -Force } # Move the final bundle into the publish directory for upload Move-Item -Path $bundleDirPath -Destination $PublishDirPath -Force } finally { # Clean up the temporary directory Remove-Item -Path $tempDirPath -Recurse -Force } ================================================ FILE: DiscordChatExporter.Gui/Services/SettingsService.TokenEncryptionConverter.cs ================================================ using System; using System.Security.Cryptography; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using DiscordChatExporter.Gui.Utils.Extensions; namespace DiscordChatExporter.Gui.Services; public partial class SettingsService { private class TokenEncryptionConverter : JsonConverter { private const string Prefix = "enc:"; private static readonly Lazy Key = new(() => Rfc2898DeriveBytes.Pbkdf2( Encoding.UTF8.GetBytes(Environment.TryGetMachineId() ?? string.Empty), Encoding.UTF8.GetBytes(ThisAssembly.Project.EncryptionSalt), 600_000, HashAlgorithmName.SHA256, 16 ) ); public override string? Read( ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options ) { var value = reader.GetString(); // No prefix means the token is stored as plain text, which was the case for older // versions of the application. Load it as is and encrypt it on next save. if ( string.IsNullOrWhiteSpace(value) || !value.StartsWith(Prefix, StringComparison.Ordinal) ) { return value; } try { var encryptedData = Convert.FromHexString(value[Prefix.Length..]); var tokenData = new byte[encryptedData.AsSpan(28).Length]; // Layout: nonce (12 bytes) | tag (16 bytes) | cipher using var aes = new AesGcm(Key.Value, 16); aes.Decrypt( encryptedData.AsSpan(0, 12), encryptedData.AsSpan(28), encryptedData.AsSpan(12, 16), tokenData ); return Encoding.UTF8.GetString(tokenData); } catch (Exception ex) when (ex is FormatException or CryptographicException or ArgumentException or IndexOutOfRangeException ) { return null; } } public override void Write( Utf8JsonWriter writer, string? value, JsonSerializerOptions options ) { if (string.IsNullOrWhiteSpace(value)) { writer.WriteNullValue(); return; } var tokenData = Encoding.UTF8.GetBytes(value); var encryptedData = new byte[28 + tokenData.Length]; // Nonce RandomNumberGenerator.Fill(encryptedData.AsSpan(0, 12)); // Layout: nonce (12 bytes) | tag (16 bytes) | cipher using var aes = new AesGcm(Key.Value, 16); aes.Encrypt( encryptedData.AsSpan(0, 12), tokenData, encryptedData.AsSpan(28), encryptedData.AsSpan(12, 16) ); writer.WriteStringValue(Prefix + Convert.ToHexStringLower(encryptedData)); } } } ================================================ FILE: DiscordChatExporter.Gui/Services/SettingsService.cs ================================================ using System.Text.Json.Serialization; using Cogwheel; using CommunityToolkit.Mvvm.ComponentModel; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.Localization; using DiscordChatExporter.Gui.Models; namespace DiscordChatExporter.Gui.Services; [ObservableObject] public partial class SettingsService() : SettingsBase(StartOptions.Current.SettingsPath, SerializerContext.Default) { [ObservableProperty] public partial bool IsUkraineSupportMessageEnabled { get; set; } = true; [ObservableProperty] public partial ThemeVariant Theme { get; set; } [ObservableProperty] public partial Language Language { get; set; } [ObservableProperty] public partial bool IsAutoUpdateEnabled { get; set; } = true; [ObservableProperty] public partial bool IsTokenPersisted { get; set; } = true; [ObservableProperty] public partial RateLimitPreference RateLimitPreference { get; set; } = RateLimitPreference.RespectAll; [ObservableProperty] public partial ThreadInclusionMode ThreadInclusionMode { get; set; } [ObservableProperty] public partial string? Locale { get; set; } [ObservableProperty] public partial bool IsUtcNormalizationEnabled { get; set; } [ObservableProperty] public partial int ParallelLimit { get; set; } = 1; [ObservableProperty] [JsonConverter(typeof(TokenEncryptionConverter))] public partial string? LastToken { get; set; } [ObservableProperty] public partial ExportFormat LastExportFormat { get; set; } = ExportFormat.HtmlDark; [ObservableProperty] public partial string? LastPartitionLimitValue { get; set; } [ObservableProperty] public partial string? LastMessageFilterValue { get; set; } [ObservableProperty] public partial bool LastIsReverseMessageOrder { get; set; } [ObservableProperty] public partial bool LastShouldFormatMarkdown { get; set; } = true; [ObservableProperty] public partial bool LastShouldDownloadAssets { get; set; } [ObservableProperty] public partial bool LastShouldReuseAssets { get; set; } [ObservableProperty] public partial string? LastAssetsDirPath { get; set; } public override void Save() { // Clear the token if it's not supposed to be persisted var lastToken = LastToken; if (!IsTokenPersisted) LastToken = null; base.Save(); LastToken = lastToken; } } public partial class SettingsService { [JsonSerializable(typeof(SettingsService))] private partial class SerializerContext : JsonSerializerContext; } ================================================ FILE: DiscordChatExporter.Gui/Services/UpdateService.cs ================================================ using System; using System.Runtime.InteropServices; using System.Threading.Tasks; using Onova; using Onova.Exceptions; using Onova.Services; namespace DiscordChatExporter.Gui.Services; public class UpdateService(SettingsService settingsService) : IDisposable { private readonly IUpdateManager? _updateManager = OperatingSystem.IsWindows() ? new UpdateManager( new GithubPackageResolver( "Tyrrrz", "DiscordChatExporter", // Examples: // DiscordChatExporter.win-arm64.zip // DiscordChatExporter.win-x64.zip // DiscordChatExporter.linux-x64.zip $"DiscordChatExporter.{RuntimeInformation.RuntimeIdentifier}.zip" ), new ZipPackageExtractor() ) : null; private Version? _updateVersion; private bool _updatePrepared; private bool _updaterLaunched; public async ValueTask CheckForUpdatesAsync() { if (_updateManager is null) return null; if (!settingsService.IsAutoUpdateEnabled) return null; var check = await _updateManager.CheckForUpdatesAsync(); return check.CanUpdate ? check.LastVersion : null; } public async ValueTask PrepareUpdateAsync(Version version) { if (_updateManager is null) return; if (!settingsService.IsAutoUpdateEnabled) return; try { await _updateManager.PrepareUpdateAsync(_updateVersion = version); _updatePrepared = true; } catch (UpdaterAlreadyLaunchedException) { // Ignore race conditions } catch (LockFileNotAcquiredException) { // Ignore race conditions } } public void FinalizeUpdate(bool needRestart) { if (_updateManager is null) return; if (!settingsService.IsAutoUpdateEnabled) return; if (_updateVersion is null || !_updatePrepared || _updaterLaunched) return; try { _updateManager.LaunchUpdater(_updateVersion, needRestart); _updaterLaunched = true; } catch (UpdaterAlreadyLaunchedException) { // Ignore race conditions } catch (LockFileNotAcquiredException) { // Ignore race conditions } } public void Dispose() => _updateManager?.Dispose(); } ================================================ FILE: DiscordChatExporter.Gui/StartOptions.cs ================================================ using System; using System.IO; namespace DiscordChatExporter.Gui; public partial class StartOptions { public required string SettingsPath { get; init; } } public partial class StartOptions { public static StartOptions Current { get; } = new() { SettingsPath = Environment.GetEnvironmentVariable("DISCORDCHATEXPORTER_SETTINGS_PATH") is { } path && !string.IsNullOrWhiteSpace(path) ? Path.EndsInDirectorySeparator(path) || Directory.Exists(path) ? Path.Combine(path, "Settings.dat") : path : Path.Combine(AppContext.BaseDirectory, "Settings.dat"), }; } ================================================ FILE: DiscordChatExporter.Gui/Utils/Disposable.cs ================================================ using System; namespace DiscordChatExporter.Gui.Utils; internal class Disposable(Action dispose) : IDisposable { public static IDisposable Create(Action dispose) => new Disposable(dispose); public void Dispose() => dispose(); } ================================================ FILE: DiscordChatExporter.Gui/Utils/DisposableCollector.cs ================================================ using System; using System.Collections.Generic; using DiscordChatExporter.Gui.Utils.Extensions; namespace DiscordChatExporter.Gui.Utils; internal class DisposableCollector : IDisposable { private readonly object _lock = new(); private readonly List _items = []; public void Add(IDisposable item) { lock (_lock) { _items.Add(item); } } public void Dispose() { lock (_lock) { _items.DisposeAll(); _items.Clear(); } } } ================================================ FILE: DiscordChatExporter.Gui/Utils/Extensions/AvaloniaExtensions.cs ================================================ using Avalonia.Controls; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.VisualTree; namespace DiscordChatExporter.Gui.Utils.Extensions; internal static class AvaloniaExtensions { extension(IApplicationLifetime lifetime) { public Window? TryGetMainWindow() => lifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime ? desktopLifetime.MainWindow : null; public TopLevel? TryGetTopLevel() => lifetime.TryGetMainWindow() ?? (lifetime as ISingleViewApplicationLifetime)?.MainView?.GetVisualRoot() as TopLevel; public bool TryShutdown(int exitCode = 0) { if (lifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime) { return desktopLifetime.TryShutdown(exitCode); } if (lifetime is IControlledApplicationLifetime controlledLifetime) { controlledLifetime.Shutdown(exitCode); return true; } return false; } } } ================================================ FILE: DiscordChatExporter.Gui/Utils/Extensions/DisposableExtensions.cs ================================================ using System; using System.Collections.Generic; using System.Linq; namespace DiscordChatExporter.Gui.Utils.Extensions; internal static class DisposableExtensions { extension(IEnumerable disposables) { public void DisposeAll() { var exceptions = default(List); foreach (var disposable in disposables) { try { disposable.Dispose(); } catch (Exception ex) { (exceptions ??= []).Add(ex); } } if (exceptions?.Any() == true) throw new AggregateException(exceptions); } } } ================================================ FILE: DiscordChatExporter.Gui/Utils/Extensions/EnvironmentExtensions.cs ================================================ using System; using System.IO; namespace DiscordChatExporter.Gui.Utils.Extensions; internal static class EnvironmentExtensions { extension(Environment) { public static string? TryGetMachineId() { // Windows: stable GUID written during OS installation if (OperatingSystem.IsWindows()) { try { using var regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey( @"SOFTWARE\Microsoft\Cryptography" ); if ( regKey?.GetValue("MachineGuid") is string guid && !string.IsNullOrWhiteSpace(guid) ) return guid; } catch { } } else { // Unix: /etc/machine-id (set once by systemd at first boot) foreach (var path in new[] { "/etc/machine-id", "/var/lib/dbus/machine-id" }) { try { var id = File.ReadAllText(path).Trim(); if (!string.IsNullOrWhiteSpace(id)) return id; } catch { } } } // Last-resort fallback try { return Environment.MachineName; } catch { return null; } } } } ================================================ FILE: DiscordChatExporter.Gui/Utils/Extensions/MarkdigExtensions.cs ================================================ using System.Linq; using Markdig.Syntax.Inlines; namespace DiscordChatExporter.Gui.Utils.Extensions; internal static class MarkdigExtensions { extension(Inline inline) { public string GetInnerText() => inline switch { LiteralInline literal => literal.Content.ToString(), ContainerInline container => string.Concat(container.Select(c => c.GetInnerText())), _ => string.Empty, }; } } ================================================ FILE: DiscordChatExporter.Gui/Utils/Extensions/NotifyPropertyChangedExtensions.cs ================================================ using System; using System.ComponentModel; using System.Linq.Expressions; using System.Reflection; namespace DiscordChatExporter.Gui.Utils.Extensions; internal static class NotifyPropertyChangedExtensions { extension(TOwner owner) where TOwner : INotifyPropertyChanged { public IDisposable WatchProperty( Expression> propertyExpression, Action callback, bool watchInitialValue = false ) { var memberExpression = propertyExpression.Body as MemberExpression; if (memberExpression?.Member is not PropertyInfo property) throw new ArgumentException("Provided expression must reference a property."); void OnPropertyChanged(object? sender, PropertyChangedEventArgs args) { if ( string.IsNullOrWhiteSpace(args.PropertyName) || string.Equals(args.PropertyName, property.Name, StringComparison.Ordinal) ) { callback(); } } owner.PropertyChanged += OnPropertyChanged; if (watchInitialValue) callback(); return Disposable.Create(() => owner.PropertyChanged -= OnPropertyChanged); } public IDisposable WatchAllProperties(Action callback, bool watchInitialValues = false) { void OnPropertyChanged(object? sender, PropertyChangedEventArgs args) => callback(); owner.PropertyChanged += OnPropertyChanged; if (watchInitialValues) callback(); return Disposable.Create(() => owner.PropertyChanged -= OnPropertyChanged); } } } ================================================ FILE: DiscordChatExporter.Gui/Utils/Extensions/ProcessExtensions.cs ================================================ using System.Diagnostics; namespace DiscordChatExporter.Gui.Utils.Extensions; internal static class ProcessExtensions { extension(Process) { public static void StartShellExecute(string path) { using var process = new Process(); process.StartInfo = new ProcessStartInfo(path) { UseShellExecute = true }; process.Start(); } } } ================================================ FILE: DiscordChatExporter.Gui/Utils/Internationalization.cs ================================================ using System.Globalization; namespace DiscordChatExporter.Gui.Utils; internal static class Internationalization { public static bool Is24Hours => string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.AMDesignator) && string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.PMDesignator); public static string AvaloniaClockIdentifier => Is24Hours ? "24HourClock" : "12HourClock"; } ================================================ FILE: DiscordChatExporter.Gui/Utils/NativeMethods.cs ================================================ using System.Runtime.InteropServices; namespace DiscordChatExporter.Gui.Utils; internal static class NativeMethods { public static class Windows { [DllImport("user32.dll", SetLastError = true)] public static extern int MessageBox(nint hWnd, string text, string caption, uint type); } } ================================================ FILE: DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs ================================================ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Exceptions; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Core.Utils.Extensions; using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.Localization; using DiscordChatExporter.Gui.Models; using DiscordChatExporter.Gui.Services; using DiscordChatExporter.Gui.Utils; using DiscordChatExporter.Gui.Utils.Extensions; using Gress; using Gress.Completable; namespace DiscordChatExporter.Gui.ViewModels.Components; public partial class DashboardViewModel : ViewModelBase { private readonly ViewModelManager _viewModelManager; private readonly SnackbarManager _snackbarManager; private readonly DialogManager _dialogManager; private readonly SettingsService _settingsService; private readonly DisposableCollector _eventRoot = new(); private readonly AutoResetProgressMuxer _progressMuxer; private DiscordClient? _discord; public DashboardViewModel( ViewModelManager viewModelManager, DialogManager dialogManager, SnackbarManager snackbarManager, SettingsService settingsService, LocalizationManager localizationManager ) { _viewModelManager = viewModelManager; _dialogManager = dialogManager; _snackbarManager = snackbarManager; _settingsService = settingsService; LocalizationManager = localizationManager; _progressMuxer = Progress.CreateMuxer().WithAutoReset(); _eventRoot.Add( Progress.WatchProperty( o => o.Current, () => OnPropertyChanged(nameof(IsProgressIndeterminate)) ) ); _eventRoot.Add( SelectedChannels.WatchProperty( o => o.Count, () => ExportCommand.NotifyCanExecuteChanged() ) ); } [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsProgressIndeterminate))] [NotifyCanExecuteChangedFor(nameof(PullGuildsCommand))] [NotifyCanExecuteChangedFor(nameof(PullChannelsCommand))] [NotifyCanExecuteChangedFor(nameof(ExportCommand))] public partial bool IsBusy { get; set; } public LocalizationManager LocalizationManager { get; } public ProgressContainer Progress { get; } = new(); public bool IsProgressIndeterminate => IsBusy && Progress.Current.Fraction is <= 0 or >= 1; [ObservableProperty] [NotifyCanExecuteChangedFor(nameof(PullGuildsCommand))] public partial string? Token { get; set; } [ObservableProperty] public partial IReadOnlyList? AvailableGuilds { get; set; } [ObservableProperty] [NotifyCanExecuteChangedFor(nameof(PullChannelsCommand))] [NotifyCanExecuteChangedFor(nameof(ExportCommand))] public partial Guild? SelectedGuild { get; set; } [ObservableProperty] public partial IReadOnlyList? AvailableChannels { get; set; } public ObservableCollection SelectedChannels { get; } = []; [RelayCommand] private void Initialize() { if (!string.IsNullOrWhiteSpace(_settingsService.LastToken)) Token = _settingsService.LastToken; } [RelayCommand] private async Task ShowSettingsAsync() => await _dialogManager.ShowDialogAsync(_viewModelManager.CreateSettingsViewModel()); private bool CanPullGuilds() => !IsBusy && !string.IsNullOrWhiteSpace(Token); [RelayCommand(CanExecute = nameof(CanPullGuilds))] private async Task PullGuildsAsync() { IsBusy = true; var progress = _progressMuxer.CreateInput(); try { var token = Token?.Trim('"', ' '); if (string.IsNullOrWhiteSpace(token)) return; AvailableGuilds = null; SelectedGuild = null; AvailableChannels = null; SelectedChannels.Clear(); _discord = new DiscordClient(token, _settingsService.RateLimitPreference); _settingsService.LastToken = token; var guilds = await _discord.GetUserGuildsAsync(); AvailableGuilds = guilds; SelectedGuild = guilds.FirstOrDefault(); await PullChannelsAsync(); } catch (DiscordChatExporterException ex) when (!ex.IsFatal) { _snackbarManager.Notify(ex.Message.TrimEnd('.')); } catch (Exception ex) { var dialog = _viewModelManager.CreateMessageBoxViewModel( LocalizationManager.ErrorPullingGuildsTitle, ex.ToString() ); await _dialogManager.ShowDialogAsync(dialog); } finally { progress.ReportCompletion(); IsBusy = false; } } private bool CanPullChannels() => !IsBusy && _discord is not null && SelectedGuild is not null; [RelayCommand(CanExecute = nameof(CanPullChannels))] private async Task PullChannelsAsync() { IsBusy = true; var progress = _progressMuxer.CreateInput(); try { if (_discord is null || SelectedGuild is null) return; AvailableChannels = null; SelectedChannels.Clear(); var channels = new List(); // Regular channels await foreach (var channel in _discord.GetGuildChannelsAsync(SelectedGuild.Id)) channels.Add(channel); // Threads if (_settingsService.ThreadInclusionMode != ThreadInclusionMode.None) { await foreach ( var thread in _discord.GetGuildThreadsAsync( SelectedGuild.Id, _settingsService.ThreadInclusionMode == ThreadInclusionMode.All ) ) { channels.Add(thread); } } // Build a hierarchy of channels var channelTree = ChannelConnection.BuildTree( channels .OrderByDescending(c => c.IsDirect ? c.LastMessageId : null) .ThenBy(c => c.Position) .ToArray() ); AvailableChannels = channelTree; SelectedChannels.Clear(); } catch (DiscordChatExporterException ex) when (!ex.IsFatal) { _snackbarManager.Notify(ex.Message.TrimEnd('.')); } catch (Exception ex) { var dialog = _viewModelManager.CreateMessageBoxViewModel( LocalizationManager.ErrorPullingChannelsTitle, ex.ToString() ); await _dialogManager.ShowDialogAsync(dialog); } finally { progress.ReportCompletion(); IsBusy = false; } } private bool CanExport() => !IsBusy && _discord is not null && SelectedGuild is not null && SelectedChannels.Any(); [RelayCommand(CanExecute = nameof(CanExport))] private async Task ExportAsync() { IsBusy = true; try { if (_discord is null || SelectedGuild is null || !SelectedChannels.Any()) return; var dialog = _viewModelManager.CreateExportSetupViewModel( SelectedGuild, SelectedChannels.Select(c => c.Channel).ToArray() ); if (await _dialogManager.ShowDialogAsync(dialog) != true) return; var exporter = new ChannelExporter(_discord); var channelProgressPairs = dialog .Channels!.Select(c => new { Channel = c, Progress = _progressMuxer.CreateInput() }) .ToArray(); var successfulExportCount = 0; await Parallel.ForEachAsync( channelProgressPairs, new ParallelOptions { MaxDegreeOfParallelism = Math.Max(1, _settingsService.ParallelLimit), }, async (pair, cancellationToken) => { var channel = pair.Channel; var progress = pair.Progress; try { var request = new ExportRequest( dialog.Guild!, channel, dialog.OutputPath!, dialog.AssetsDirPath, dialog.SelectedFormat, dialog.After?.Pipe(Snowflake.FromDate), dialog.Before?.Pipe(Snowflake.FromDate), dialog.PartitionLimit, dialog.MessageFilter, dialog.IsReverseMessageOrder, dialog.ShouldFormatMarkdown, dialog.ShouldDownloadAssets, dialog.ShouldReuseAssets, _settingsService.Locale, _settingsService.IsUtcNormalizationEnabled ); await exporter.ExportChannelAsync(request, progress, cancellationToken); Interlocked.Increment(ref successfulExportCount); } catch (ChannelEmptyException ex) { _snackbarManager.Notify(ex.Message.TrimEnd('.')); } catch (DiscordChatExporterException ex) when (!ex.IsFatal) { _snackbarManager.Notify(ex.Message.TrimEnd('.')); } finally { progress.ReportCompletion(); } } ); // Notify of the overall completion if (successfulExportCount > 0) { _snackbarManager.Notify( string.Format( LocalizationManager.SuccessfulExportMessage, successfulExportCount ) ); } } catch (Exception ex) { var dialog = _viewModelManager.CreateMessageBoxViewModel( LocalizationManager.ErrorExportingTitle, ex.ToString() ); await _dialogManager.ShowDialogAsync(dialog); } finally { IsBusy = false; } } protected override void Dispose(bool disposing) { if (disposing) { _eventRoot.Dispose(); } base.Dispose(disposing); } } ================================================ FILE: DiscordChatExporter.Gui/ViewModels/Dialogs/ExportSetupViewModel.cs ================================================ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Avalonia.Platform.Storage; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Core.Exporting; using DiscordChatExporter.Core.Exporting.Filtering; using DiscordChatExporter.Core.Exporting.Partitioning; using DiscordChatExporter.Core.Utils.Extensions; using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.Localization; using DiscordChatExporter.Gui.Services; namespace DiscordChatExporter.Gui.ViewModels.Dialogs; public partial class ExportSetupViewModel( DialogManager dialogManager, SettingsService settingsService, LocalizationManager localizationManager ) : DialogViewModelBase { public LocalizationManager LocalizationManager { get; } = localizationManager; [ObservableProperty] public partial Guild? Guild { get; set; } [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsSingleChannel))] public partial IReadOnlyList? Channels { get; set; } [ObservableProperty] public partial string? OutputPath { get; set; } [ObservableProperty] public partial ExportFormat SelectedFormat { get; set; } [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsAfterDateSet))] [NotifyPropertyChangedFor(nameof(After))] public partial DateTimeOffset? AfterDate { get; set; } [ObservableProperty] public partial TimeSpan? AfterTime { get; set; } [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsBeforeDateSet))] [NotifyPropertyChangedFor(nameof(Before))] public partial DateTimeOffset? BeforeDate { get; set; } [ObservableProperty] public partial TimeSpan? BeforeTime { get; set; } [ObservableProperty] [NotifyPropertyChangedFor(nameof(PartitionLimit))] public partial string? PartitionLimitValue { get; set; } [ObservableProperty] [NotifyPropertyChangedFor(nameof(MessageFilter))] public partial string? MessageFilterValue { get; set; } [ObservableProperty] public partial bool IsReverseMessageOrder { get; set; } [ObservableProperty] public partial bool ShouldFormatMarkdown { get; set; } [ObservableProperty] public partial bool ShouldDownloadAssets { get; set; } [ObservableProperty] public partial bool ShouldReuseAssets { get; set; } [ObservableProperty] public partial string? AssetsDirPath { get; set; } [ObservableProperty] public partial bool IsAdvancedSectionDisplayed { get; set; } public bool IsSingleChannel => Channels?.Count == 1; public IReadOnlyList AvailableFormats { get; } = Enum.GetValues(); public bool IsAfterDateSet => AfterDate is not null; public DateTimeOffset? After => AfterDate?.Add(AfterTime ?? TimeSpan.Zero); public bool IsBeforeDateSet => BeforeDate is not null; public DateTimeOffset? Before => BeforeDate?.Add(BeforeTime ?? TimeSpan.Zero); public PartitionLimit PartitionLimit => !string.IsNullOrWhiteSpace(PartitionLimitValue) ? PartitionLimit.Parse(PartitionLimitValue) : PartitionLimit.Null; public MessageFilter MessageFilter => !string.IsNullOrWhiteSpace(MessageFilterValue) ? MessageFilter.Parse(MessageFilterValue) : MessageFilter.Null; [RelayCommand] private void Initialize() { // Persist preferences SelectedFormat = settingsService.LastExportFormat; PartitionLimitValue = settingsService.LastPartitionLimitValue; MessageFilterValue = settingsService.LastMessageFilterValue; IsReverseMessageOrder = settingsService.LastIsReverseMessageOrder; ShouldFormatMarkdown = settingsService.LastShouldFormatMarkdown; ShouldDownloadAssets = settingsService.LastShouldDownloadAssets; ShouldReuseAssets = settingsService.LastShouldReuseAssets; AssetsDirPath = settingsService.LastAssetsDirPath; // Show the "advanced options" section by default if any // of the advanced options are set to non-default values. IsAdvancedSectionDisplayed = After is not null || Before is not null || !string.IsNullOrWhiteSpace(PartitionLimitValue) || !string.IsNullOrWhiteSpace(MessageFilterValue) || ShouldDownloadAssets || ShouldReuseAssets || !string.IsNullOrWhiteSpace(AssetsDirPath) || IsReverseMessageOrder; } [RelayCommand] private async Task ShowOutputPathPromptAsync() { if (IsSingleChannel) { var defaultFileName = ExportRequest.GetDefaultOutputFileName( Guild!, Channels!.Single(), SelectedFormat, After?.Pipe(Snowflake.FromDate), Before?.Pipe(Snowflake.FromDate) ); var extension = SelectedFormat.GetFileExtension(); var path = await dialogManager.PromptSaveFilePathAsync( [ new FilePickerFileType($"{extension.ToUpperInvariant()} file") { Patterns = [$"*.{extension}"], }, ], defaultFileName ); if (!string.IsNullOrWhiteSpace(path)) OutputPath = path; } else { var path = await dialogManager.PromptDirectoryPathAsync(); if (!string.IsNullOrWhiteSpace(path)) OutputPath = path; } } [RelayCommand] private async Task ShowAssetsDirPathPromptAsync() { var path = await dialogManager.PromptDirectoryPathAsync(); if (!string.IsNullOrWhiteSpace(path)) AssetsDirPath = path; } [RelayCommand] private async Task ConfirmAsync() { // Prompt the output path if it hasn't been set yet if (string.IsNullOrWhiteSpace(OutputPath)) { await ShowOutputPathPromptAsync(); // If the output path is still not set, cancel the export if (string.IsNullOrWhiteSpace(OutputPath)) return; } // Persist preferences settingsService.LastExportFormat = SelectedFormat; settingsService.LastPartitionLimitValue = PartitionLimitValue; settingsService.LastMessageFilterValue = MessageFilterValue; settingsService.LastIsReverseMessageOrder = IsReverseMessageOrder; settingsService.LastShouldFormatMarkdown = ShouldFormatMarkdown; settingsService.LastShouldDownloadAssets = ShouldDownloadAssets; settingsService.LastShouldReuseAssets = ShouldReuseAssets; settingsService.LastAssetsDirPath = AssetsDirPath; Close(true); } } ================================================ FILE: DiscordChatExporter.Gui/ViewModels/Dialogs/MessageBoxViewModel.cs ================================================ using CommunityToolkit.Mvvm.ComponentModel; using DiscordChatExporter.Gui.Framework; namespace DiscordChatExporter.Gui.ViewModels.Dialogs; public partial class MessageBoxViewModel : DialogViewModelBase { [ObservableProperty] public partial string? Title { get; set; } = "Title"; [ObservableProperty] public partial string? Message { get; set; } = "Message"; [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsDefaultButtonVisible))] [NotifyPropertyChangedFor(nameof(ButtonsCount))] public partial string? DefaultButtonText { get; set; } = "OK"; [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsCancelButtonVisible))] [NotifyPropertyChangedFor(nameof(ButtonsCount))] public partial string? CancelButtonText { get; set; } = "Cancel"; public bool IsDefaultButtonVisible => !string.IsNullOrWhiteSpace(DefaultButtonText); public bool IsCancelButtonVisible => !string.IsNullOrWhiteSpace(CancelButtonText); public int ButtonsCount => (IsDefaultButtonVisible ? 1 : 0) + (IsCancelButtonVisible ? 1 : 0); } ================================================ FILE: DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs ================================================ using System; using System.Collections.Generic; using DiscordChatExporter.Core.Discord; using DiscordChatExporter.Core.Utils.Extensions; using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.Localization; using DiscordChatExporter.Gui.Models; using DiscordChatExporter.Gui.Services; using DiscordChatExporter.Gui.Utils; using DiscordChatExporter.Gui.Utils.Extensions; namespace DiscordChatExporter.Gui.ViewModels.Dialogs; public class SettingsViewModel : DialogViewModelBase { private readonly SettingsService _settingsService; private readonly DisposableCollector _eventRoot = new(); public SettingsViewModel( SettingsService settingsService, LocalizationManager localizationManager ) { _settingsService = settingsService; LocalizationManager = localizationManager; _eventRoot.Add(_settingsService.WatchAllProperties(OnAllPropertiesChanged)); } public LocalizationManager LocalizationManager { get; } public IReadOnlyList AvailableThemes { get; } = Enum.GetValues(); public ThemeVariant Theme { get => _settingsService.Theme; set => _settingsService.Theme = value; } public IReadOnlyList AvailableLanguages { get; } = Enum.GetValues(); public Language Language { get => _settingsService.Language; set => _settingsService.Language = value; } public bool IsAutoUpdateEnabled { get => _settingsService.IsAutoUpdateEnabled; set => _settingsService.IsAutoUpdateEnabled = value; } public bool IsTokenPersisted { get => _settingsService.IsTokenPersisted; set => _settingsService.IsTokenPersisted = value; } public IReadOnlyList AvailableRateLimitPreferences { get; } = Enum.GetValues(); public RateLimitPreference RateLimitPreference { get => _settingsService.RateLimitPreference; set => _settingsService.RateLimitPreference = value; } public IReadOnlyList AvailableThreadInclusionModes { get; } = Enum.GetValues(); public ThreadInclusionMode ThreadInclusionMode { get => _settingsService.ThreadInclusionMode; set => _settingsService.ThreadInclusionMode = value; } // These items have to be non-nullable because Avalonia ComboBox doesn't allow a null value to be selected public IReadOnlyList AvailableLocales { get; } = [ // Current locale (maps to null downstream) "", // Locales supported by the Discord app "da-DK", "de-DE", "en-GB", "en-US", "es-ES", "fr-FR", "hr-HR", "it-IT", "lt-LT", "hu-HU", "nl-NL", "no-NO", "pl-PL", "pt-BR", "ro-RO", "fi-FI", "sv-SE", "vi-VN", "tr-TR", "cs-CZ", "el-GR", "bg-BG", "ru-RU", "uk-UA", "th-TH", "zh-CN", "ja-JP", "zh-TW", "ko-KR", ]; // This has to be non-nullable because Avalonia ComboBox doesn't allow a null value to be selected public string Locale { get => _settingsService.Locale ?? ""; // Important to reduce empty strings to nulls, because empty strings don't correspond to valid cultures set => _settingsService.Locale = value.NullIfWhiteSpace(); } public bool IsUtcNormalizationEnabled { get => _settingsService.IsUtcNormalizationEnabled; set => _settingsService.IsUtcNormalizationEnabled = value; } public int ParallelLimit { get => _settingsService.ParallelLimit; set => _settingsService.ParallelLimit = Math.Clamp(value, 1, 10); } protected override void Dispose(bool disposing) { if (disposing) { _eventRoot.Dispose(); } base.Dispose(disposing); } } ================================================ FILE: DiscordChatExporter.Gui/ViewModels/MainViewModel.cs ================================================ using System; using System.Diagnostics; using System.Threading.Tasks; using Avalonia; using CommunityToolkit.Mvvm.Input; using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.Localization; using DiscordChatExporter.Gui.Services; using DiscordChatExporter.Gui.Utils.Extensions; using DiscordChatExporter.Gui.ViewModels.Components; namespace DiscordChatExporter.Gui.ViewModels; public partial class MainViewModel( ViewModelManager viewModelManager, DialogManager dialogManager, SnackbarManager snackbarManager, SettingsService settingsService, UpdateService updateService, LocalizationManager localizationManager ) : ViewModelBase { public string Title { get; } = $"{Program.Name} v{Program.VersionString}"; public DashboardViewModel Dashboard { get; } = viewModelManager.CreateDashboardViewModel(); private async Task ShowUkraineSupportMessageAsync() { if (!settingsService.IsUkraineSupportMessageEnabled) return; var dialog = viewModelManager.CreateMessageBoxViewModel( localizationManager.UkraineSupportTitle, localizationManager.UkraineSupportMessage, localizationManager.LearnMoreButton, localizationManager.CloseButton ); // Disable this message in the future settingsService.IsUkraineSupportMessageEnabled = false; settingsService.Save(); if (await dialogManager.ShowDialogAsync(dialog) == true) Process.StartShellExecute("https://tyrrrz.me/ukraine?source=discordchatexporter"); } private async Task ShowDevelopmentBuildMessageAsync() { if (!Program.IsDevelopmentBuild) return; // If debugging, the user is likely a developer if (Debugger.IsAttached) return; var dialog = viewModelManager.CreateMessageBoxViewModel( localizationManager.UnstableBuildTitle, string.Format(localizationManager.UnstableBuildMessage, Program.Name), localizationManager.SeeReleasesButton, localizationManager.CloseButton ); if (await dialogManager.ShowDialogAsync(dialog) == true) Process.StartShellExecute(Program.ProjectReleasesUrl); } private async Task CheckForUpdatesAsync() { try { var updateVersion = await updateService.CheckForUpdatesAsync(); if (updateVersion is null) return; snackbarManager.Notify( string.Format( localizationManager.UpdateDownloadingMessage, Program.Name, updateVersion ) ); await updateService.PrepareUpdateAsync(updateVersion); snackbarManager.Notify( localizationManager.UpdateReadyMessage, localizationManager.UpdateInstallNowButton, () => { updateService.FinalizeUpdate(true); if (Application.Current?.ApplicationLifetime?.TryShutdown(2) != true) Environment.Exit(2); } ); } catch { // Failure to update shouldn't crash the application snackbarManager.Notify(localizationManager.UpdateFailedMessage); } } [RelayCommand] private async Task InitializeAsync() { await ShowUkraineSupportMessageAsync(); await ShowDevelopmentBuildMessageAsync(); await CheckForUpdatesAsync(); } protected override void Dispose(bool disposing) { if (disposing) { // Save settings settingsService.Save(); // Finalize pending updates updateService.FinalizeUpdate(false); } base.Dispose(disposing); } } ================================================ FILE: DiscordChatExporter.Gui/Views/Components/DashboardView.axaml ================================================  ================================================ FILE: DiscordChatExporter.Gui/Views/Components/DashboardView.axaml.cs ================================================ using System.Linq; using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; using DiscordChatExporter.Core.Discord.Data; using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.ViewModels.Components; namespace DiscordChatExporter.Gui.Views.Components; public partial class DashboardView : UserControl { public DashboardView() => InitializeComponent(); private void UserControl_OnLoaded(object? sender, RoutedEventArgs args) { DataContext.InitializeCommand.Execute(null); TokenValueTextBox.Focus(); } private void AvailableGuildsListBox_OnSelectionChanged( object? sender, SelectionChangedEventArgs args ) => DataContext.PullChannelsCommand.Execute(null); private void AvailableChannelsTreeView_OnSelectionChanged( object? sender, SelectionChangedEventArgs args ) { // Hack: unselect categories because they cannot be exported foreach ( var item in args.AddedItems.OfType().Where(x => x.Channel.IsCategory) ) { if (AvailableChannelsTreeView.TreeContainerFromItem(item) is TreeViewItem container) container.IsSelected = false; } } private void ChannelGrid_OnDoubleTapped(object? sender, TappedEventArgs args) { if (DataContext.SelectedChannels.Count != 1) return; DataContext.ExportCommand.Execute(null); } } ================================================ FILE: DiscordChatExporter.Gui/Views/Controls/HyperLink.axaml ================================================  ================================================ FILE: DiscordChatExporter.Gui/Views/Controls/HyperLink.axaml.cs ================================================ using System.Diagnostics; using System.Windows.Input; using Avalonia; using Avalonia.Controls; using Avalonia.Input; using DiscordChatExporter.Gui.Utils.Extensions; namespace DiscordChatExporter.Gui.Views.Controls; public partial class HyperLink : UserControl { public static readonly StyledProperty TextProperty = TextBlock.TextProperty.AddOwner(); public static readonly StyledProperty CommandProperty = Button.CommandProperty.AddOwner(); public static readonly StyledProperty CommandParameterProperty = Button.CommandParameterProperty.AddOwner(); // If Url is set and Command is not set, clicking will open this URL in the default browser. public static readonly StyledProperty UrlProperty = AvaloniaProperty.Register< HyperLink, string? >(nameof(Url)); public HyperLink() => InitializeComponent(); public string? Text { get => GetValue(TextProperty); set => SetValue(TextProperty, value); } public ICommand? Command { get => GetValue(CommandProperty); set => SetValue(CommandProperty, value); } public object? CommandParameter { get => GetValue(CommandParameterProperty); set => SetValue(CommandParameterProperty, value); } public string? Url { get => GetValue(UrlProperty); set => SetValue(UrlProperty, value); } private void TextBlock_OnPointerReleased(object? sender, PointerReleasedEventArgs args) { if (Command is not null) { if (Command.CanExecute(CommandParameter)) Command.Execute(CommandParameter); } else if (!string.IsNullOrWhiteSpace(Url)) { Process.StartShellExecute(Url); } } } ================================================ FILE: DiscordChatExporter.Gui/Views/Dialogs/ExportSetupView.axaml ================================================  ================================================ FILE: DiscordChatExporter.Gui/Views/Dialogs/MessageBoxView.axaml.cs ================================================ using DiscordChatExporter.Gui.Framework; using DiscordChatExporter.Gui.ViewModels.Dialogs; namespace DiscordChatExporter.Gui.Views.Dialogs; public partial class MessageBoxView : UserControl { public MessageBoxView() => InitializeComponent(); } ================================================ FILE: DiscordChatExporter.Gui/Views/Dialogs/SettingsView.axaml ================================================