mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: add missing return in pk;debug proxy
This commit is contained in:
parent
aad9f04b6f
commit
e42002b754
1 changed files with 3 additions and 0 deletions
|
|
@ -233,7 +233,10 @@ public class Checks
|
||||||
throw new PKError(failedToGetMessage);
|
throw new PKError(failedToGetMessage);
|
||||||
|
|
||||||
if ((_botConfig.Prefixes ?? BotConfig.DefaultPrefixes).Any(p => msg.Content.StartsWith(p)))
|
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.");
|
await ctx.Reply("This message starts with the bot's prefix, and was parsed as a command.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (msg.Author.Bot)
|
if (msg.Author.Bot)
|
||||||
throw new PKError("You cannot check messages sent by a bot.");
|
throw new PKError("You cannot check messages sent by a bot.");
|
||||||
if (msg.WebhookId != null)
|
if (msg.WebhookId != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue