mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
13 lines
347 B
C#
13 lines
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;
|
|||
|
|
}
|
|||
|
|
}
|