mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 17:20:14 +00:00
fix(bot): add cv2 separator between proxy tags & groups
This commit is contained in:
parent
35e5fa4800
commit
64d05fbb4e
1 changed files with 12 additions and 6 deletions
|
|
@ -352,11 +352,18 @@ public class EmbedService
|
||||||
|
|
||||||
List<MessageComponent> extraData = [];
|
List<MessageComponent> extraData = [];
|
||||||
if (member.HasProxyTags && member.ProxyPrivacy.CanAccess(ctx))
|
if (member.HasProxyTags && member.ProxyPrivacy.CanAccess(ctx))
|
||||||
|
{
|
||||||
|
extraData.Add(new MessageComponent
|
||||||
|
{
|
||||||
|
Type = ComponentType.Separator,
|
||||||
|
});
|
||||||
|
|
||||||
extraData.Add(new MessageComponent
|
extraData.Add(new MessageComponent
|
||||||
{
|
{
|
||||||
Type = ComponentType.Text,
|
Type = ComponentType.Text,
|
||||||
Content = $"**Proxy tags:**\n{member.ProxyTagsString("\n").Truncate(1024)}",
|
Content = $"**Proxy tags:**\n{member.ProxyTagsString("\n").Truncate(1024)}",
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (groups.Count > 0)
|
if (groups.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -365,6 +372,11 @@ public class EmbedService
|
||||||
? string.Join(", ", groups.Select(g => g.DisplayName ?? g.Name))
|
? string.Join(", ", groups.Select(g => g.DisplayName ?? g.Name))
|
||||||
: string.Join("\n", groups.Select(g => $"[`{g.DisplayHid(ccfg, isList: true)}`] **{g.DisplayName ?? g.Name}**"));
|
: string.Join("\n", groups.Select(g => $"[`{g.DisplayHid(ccfg, isList: true)}`] **{g.DisplayName ?? g.Name}**"));
|
||||||
|
|
||||||
|
extraData.Add(new MessageComponent
|
||||||
|
{
|
||||||
|
Type = ComponentType.Separator,
|
||||||
|
});
|
||||||
|
|
||||||
extraData.Add(new MessageComponent
|
extraData.Add(new MessageComponent
|
||||||
{
|
{
|
||||||
Type = ComponentType.Text,
|
Type = ComponentType.Text,
|
||||||
|
|
@ -372,12 +384,6 @@ public class EmbedService
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extraData.Count > 0)
|
|
||||||
extraData.Insert(0, new MessageComponent
|
|
||||||
{
|
|
||||||
Type = ComponentType.Separator,
|
|
||||||
});
|
|
||||||
|
|
||||||
List<MessageComponent> descComponents = [];
|
List<MessageComponent> descComponents = [];
|
||||||
if (member.DescriptionFor(ctx) is { } desc)
|
if (member.DescriptionFor(ctx) is { } desc)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue