fix: add missing return in pk;debug proxy

This commit is contained in:
spiral 2022-01-21 00:00:26 -05:00
parent aad9f04b6f
commit e42002b754
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -233,7 +233,10 @@ public class Checks
throw new PKError(failedToGetMessage);
if ((_botConfig.Prefixes ?? BotConfig.DefaultPrefixes).Any(p => msg.Content.StartsWith(p)))
{
await ctx.Reply("This message starts with the bot's prefix, and was parsed as a command.");
return;
}
if (msg.Author.Bot)
throw new PKError("You cannot check messages sent by a bot.");
if (msg.WebhookId != null)