fix(webhooks): CheckSystem before trying to set a webhook URL

This commit is contained in:
spiral
2021-11-19 15:53:48 -05:00
parent 7b9d2a4e5e
commit 75c35b7f85

View File

@@ -94,7 +94,7 @@ namespace PluralKit.Bot
public async Task SystemWebhook(Context ctx)
{
ctx.CheckDMContext();
ctx.CheckSystem().CheckDMContext();
if (!ctx.HasNext(false))
{