mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 17:50:13 +00:00
Fix markdown formatting for privacy subject errors
This commit is contained in:
parent
7179e2dd1b
commit
0e7bcb993e
1 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ namespace PluralKit.Bot
|
||||||
public static MemberPrivacySubject PopMemberPrivacySubject(this Context ctx)
|
public static MemberPrivacySubject PopMemberPrivacySubject(this Context ctx)
|
||||||
{
|
{
|
||||||
if (!MemberPrivacyUtils.TryParseMemberPrivacy(ctx.PeekArgument(), out var subject))
|
if (!MemberPrivacyUtils.TryParseMemberPrivacy(ctx.PeekArgument(), out var subject))
|
||||||
throw new PKSyntaxError($"Invalid privacy subject {ctx.PopArgument().AsCode()} (must be `name`, `description`, `avatar`, `birthday`, `pronouns`, `metadata`, `visibility`, or `all).");
|
throw new PKSyntaxError($"Invalid privacy subject {ctx.PopArgument().AsCode()} (must be `name`, `description`, `avatar`, `birthday`, `pronouns`, `metadata`, `visibility`, or `all`).");
|
||||||
|
|
||||||
ctx.PopArgument();
|
ctx.PopArgument();
|
||||||
return subject;
|
return subject;
|
||||||
|
|
@ -39,7 +39,7 @@ namespace PluralKit.Bot
|
||||||
public static GroupPrivacySubject PopGroupPrivacySubject(this Context ctx)
|
public static GroupPrivacySubject PopGroupPrivacySubject(this Context ctx)
|
||||||
{
|
{
|
||||||
if (!GroupPrivacyUtils.TryParseGroupPrivacy(ctx.PeekArgument(), out var subject))
|
if (!GroupPrivacyUtils.TryParseGroupPrivacy(ctx.PeekArgument(), out var subject))
|
||||||
throw new PKSyntaxError($"Invalid privacy subject {ctx.PopArgument().AsCode()} (must be `description`, `icon`, `visibility`, or `all).");
|
throw new PKSyntaxError($"Invalid privacy subject {ctx.PopArgument().AsCode()} (must be `description`, `icon`, `visibility`, or `all`).");
|
||||||
|
|
||||||
ctx.PopArgument();
|
ctx.PopArgument();
|
||||||
return subject;
|
return subject;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue