mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Add different text for systems with no members
This commit is contained in:
parent
565d166c68
commit
3ce1078dc6
1 changed files with 7 additions and 2 deletions
|
|
@ -46,7 +46,12 @@ namespace PluralKit.Bot {
|
|||
eb.AddField("Linked accounts", string.Join(", ", users).Truncate(1000), true);
|
||||
|
||||
if (system.MemberListPrivacy.CanAccess(ctx))
|
||||
{
|
||||
if (memberCount > 0)
|
||||
eb.AddField($"Members ({memberCount})", $"(see `pk;system {system.Hid} list` or `pk;system {system.Hid} list full`)", true);
|
||||
else
|
||||
eb.AddField($"Members ({memberCount})", "Add one with `pk;member new`!", true);
|
||||
}
|
||||
|
||||
if (system.Description != null && system.DescriptionPrivacy.CanAccess(ctx))
|
||||
eb.AddField("Description", system.Description.Truncate(1024), false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue