fix: add missing return in pk;debug proxy
This commit is contained in:
parent
aad9f04b6f
commit
e42002b754
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user