fix(webhooks): CheckSystem before trying to set a webhook URL
This commit is contained in:
parent
7b9d2a4e5e
commit
75c35b7f85
@ -94,7 +94,7 @@ namespace PluralKit.Bot
|
|||||||
|
|
||||||
public async Task SystemWebhook(Context ctx)
|
public async Task SystemWebhook(Context ctx)
|
||||||
{
|
{
|
||||||
ctx.CheckDMContext();
|
ctx.CheckSystem().CheckDMContext();
|
||||||
|
|
||||||
if (!ctx.HasNext(false))
|
if (!ctx.HasNext(false))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user