Skip to content

Commit

Permalink
User flags are always on their own line
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed May 6, 2024
1 parent 8438d99 commit 65cda0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/Common/InfoCommand/InfoCommand.User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static async Task UserInfoAsync(CommandContext context, DiscordUser? user
embedBuilder.AddField("User Mention", user.Mention, true);

List<string> userFlags = [];
if (!user.Flags.HasValue)
if (!user.Flags.HasValue || user.Flags.Value == DiscordUserFlags.None)
{
userFlags.Add("None");
}
Expand Down Expand Up @@ -69,7 +69,7 @@ public static async Task UserInfoAsync(CommandContext context, DiscordUser? user
}
}

embedBuilder.AddField("User Flags", userFlags.DefaultIfEmpty($"Unknown flags: {user.Flags}").Humanize(), true);
embedBuilder.AddField("User Flags", $"{userFlags.DefaultIfEmpty($"Unknown flags: {user.Flags}").Humanize()}.", false);
embedBuilder.AddField("Joined Discord", Formatter.Timestamp(user.CreationTimestamp, TimestampFormat.RelativeTime), true);

// This means they're not in the server and they've never joined previously.
Expand Down

0 comments on commit 65cda0b

Please sign in to comment.