Remove duplicates of CheckSystem/CheckOwnMember

This commit is contained in:
spiral
2020-11-22 16:15:26 -05:00
parent 05f1ee92ea
commit 837b0a457d
2 changed files with 20 additions and 29 deletions

View File

@@ -20,8 +20,7 @@ namespace PluralKit.Bot
public async Task Proxy(Context ctx, PKMember target)
{
if (ctx.System == null) throw Errors.NoSystemError;
if (target.System != ctx.System.Id) throw Errors.NotOwnMemberError;
ctx.CheckSystem().CheckOwnMember(target);
ProxyTag ParseProxyTags(string exampleProxy)
{