From 75c35b7f8592650a2dd5d0a10ab9643c09cd65dc Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 19 Nov 2021 15:53:48 -0500 Subject: [PATCH] fix(webhooks): CheckSystem before trying to set a webhook URL --- PluralKit.Bot/Commands/Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/Api.cs b/PluralKit.Bot/Commands/Api.cs index 75ef3f5d..6c5a88a6 100644 --- a/PluralKit.Bot/Commands/Api.cs +++ b/PluralKit.Bot/Commands/Api.cs @@ -94,7 +94,7 @@ namespace PluralKit.Bot public async Task SystemWebhook(Context ctx) { - ctx.CheckDMContext(); + ctx.CheckSystem().CheckDMContext(); if (!ctx.HasNext(false)) {