From 11a491bd247be24e9fe0d4462b9cc74961fb2779 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Sun, 23 Jun 2024 14:49:45 -0400 Subject: [PATCH] add country flag to /VM --- EmperorPalpatine/DiscordCommands.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/EmperorPalpatine/DiscordCommands.cs b/EmperorPalpatine/DiscordCommands.cs index 00370d6..20ae9dc 100644 --- a/EmperorPalpatine/DiscordCommands.cs +++ b/EmperorPalpatine/DiscordCommands.cs @@ -35,6 +35,8 @@ public class DiscordCommands : ApplicationCommandModule b.Append(":green_circle: "); break; } + if (!string.IsNullOrEmpty(user.CountryCode)) + b.Append($":flag_{user.CountryCode.ToLower()}: "); b.Append(user.Username + "\n"); }