mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
13 lines
No EOL
347 B
C#
13 lines
No EOL
347 B
C#
using PluralKit.Core;
|
|
|
|
namespace PluralKit.Bot
|
|
{
|
|
public static class ModelUtils
|
|
{
|
|
public static string NameFor(this PKMember member, Context ctx) =>
|
|
member.NameFor(ctx.LookupContextFor(member));
|
|
|
|
public static string DisplayName(this PKMember member) =>
|
|
member.DisplayName ?? member.Name;
|
|
}
|
|
} |