feat: dynamically show primary command prefix

This commit is contained in:
rladenson 2024-12-31 08:09:18 -07:00 committed by Petal Ladenson
parent 1d50022d6d
commit edfc6714d6
30 changed files with 202 additions and 197 deletions

View file

@ -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);