mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
Sort groups on the member card alphabetically
This commit is contained in:
parent
20addea986
commit
a1da3e1386
1 changed files with 1 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ namespace PluralKit.Bot {
|
||||||
|
|
||||||
var groups = await _repo.GetMemberGroups(conn, member.Id)
|
var groups = await _repo.GetMemberGroups(conn, member.Id)
|
||||||
.Where(g => g.Visibility.CanAccess(ctx))
|
.Where(g => g.Visibility.CanAccess(ctx))
|
||||||
|
.OrderBy(g => g.Name, StringComparer.InvariantCultureIgnoreCase)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
var eb = new DiscordEmbedBuilder()
|
var eb = new DiscordEmbedBuilder()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue