mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
8 lines
No EOL
262 B
C#
8 lines
No EOL
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;
|
|
}
|
|
} |