mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
Add color to all lists
This commit is contained in:
parent
8da5c94b1c
commit
2898b3989a
6 changed files with 10 additions and 6 deletions
|
|
@ -311,7 +311,7 @@ namespace PluralKit.Bot
|
|||
}
|
||||
|
||||
var title = system.Name != null ? $"Groups of {system.Name} (`{system.Hid}`)" : $"Groups of `{system.Hid}`";
|
||||
await ctx.Paginate(groups.ToAsyncEnumerable(), groups.Count, 25, title, Renderer);
|
||||
await ctx.Paginate(groups.ToAsyncEnumerable(), groups.Count, 25, title, ctx.System.Color, Renderer);
|
||||
|
||||
Task Renderer(EmbedBuilder eb, IEnumerable<ListedGroup> page)
|
||||
{
|
||||
|
|
@ -390,7 +390,7 @@ namespace PluralKit.Bot
|
|||
if (opts.Search != null)
|
||||
title.Append($" matching **{opts.Search}**");
|
||||
|
||||
await ctx.RenderMemberList(ctx.LookupContextFor(target.System), _db, target.System, title.ToString(), opts);
|
||||
await ctx.RenderMemberList(ctx.LookupContextFor(target.System), _db, target.System, title.ToString(), target.Color, opts);
|
||||
}
|
||||
|
||||
public enum AddRemoveOperation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue