Add different text for systems with no members
This commit is contained in:
parent
565d166c68
commit
3ce1078dc6
@ -46,7 +46,12 @@ namespace PluralKit.Bot {
|
|||||||
eb.AddField("Linked accounts", string.Join(", ", users).Truncate(1000), true);
|
eb.AddField("Linked accounts", string.Join(", ", users).Truncate(1000), true);
|
||||||
|
|
||||||
if (system.MemberListPrivacy.CanAccess(ctx))
|
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);
|
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))
|
if (system.Description != null && system.DescriptionPrivacy.CanAccess(ctx))
|
||||||
eb.AddField("Description", system.Description.Truncate(1024), false);
|
eb.AddField("Description", system.Description.Truncate(1024), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user