feat: sort by display name in short list

This commit is contained in:
spiral 2021-11-08 10:49:50 -05:00
parent 2a7d4ff97d
commit 6da1bbd267
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -123,6 +123,12 @@ namespace PluralKit.Bot
ret += $"(birthday: {m.BirthdayString})"; ret += $"(birthday: {m.BirthdayString})";
break; break;
} }
case SortProperty.DisplayName:
{
if (m.DisplayName != null)
ret += $"({m.DisplayName})";
break;
}
case SortProperty.MessageCount: case SortProperty.MessageCount:
{ {
if (m.MessageCountFor(lookupCtx) is { } count) if (m.MessageCountFor(lookupCtx) is { } count)