diff --git a/VPLink.Common/Extensions/UserExtensions.cs b/VPLink.Common/Extensions/UserExtensions.cs index fcb5977..868beb0 100644 --- a/VPLink.Common/Extensions/UserExtensions.cs +++ b/VPLink.Common/Extensions/UserExtensions.cs @@ -15,11 +15,13 @@ public static class UserExtensions /// is null. public static string GetDisplayName(this IUser user) { - return user switch + string displayName = user switch { null => throw new ArgumentNullException(nameof(user)), IGuildUser member => member.Nickname ?? member.GlobalName ?? member.Username, _ => user.GlobalName ?? user.Username }; + + return user.IsBot ? $"[{displayName}]" : displayName; } }