PluralKit/PluralKit.Core/Models/ModelExtensions.cs

8 lines
262 B
C#

namespace PluralKit.Core
{
public static class ModelExtensions
{
public static string NameFor(this PKMember member, LookupContext ctx) =>
member.NamePrivacy.CanAccess(ctx) ? member.Name : member.DisplayName ?? member.Name;
}
}