mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
feat: dynamically show primary command prefix
This commit is contained in:
parent
2b5fab9689
commit
a7978671c5
30 changed files with 202 additions and 197 deletions
|
|
@ -18,7 +18,7 @@ public class Random
|
|||
public async Task Member(Context ctx, PKSystem target)
|
||||
{
|
||||
if (target == null)
|
||||
throw Errors.NoSystemError;
|
||||
throw Errors.NoSystemError(ctx.DefaultPrefix);
|
||||
|
||||
ctx.CheckSystemPrivacy(target.Id, target.MemberListPrivacy);
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ public class Random
|
|||
public async Task Group(Context ctx, PKSystem target)
|
||||
{
|
||||
if (target == null)
|
||||
throw Errors.NoSystemError;
|
||||
throw Errors.NoSystemError(ctx.DefaultPrefix);
|
||||
|
||||
ctx.CheckSystemPrivacy(target.Id, target.GroupListPrivacy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue