Skip command don't return when there's no prefix

This commit is contained in:
barelyprofessional
2026-01-13 23:36:06 -06:00
parent eb4bb8dc47
commit 9bee1188e5

View File

@@ -51,7 +51,7 @@ internal class BotCommands
foreach (var command in Commands)
{
var noPrefixCommand = HasAttribute<NoPrefixRequired>(command);
if (!noPrefixCommand && !message.MessageRaw.StartsWith(CommandPrefix)) return;
if (!noPrefixCommand && !message.MessageRaw.StartsWith(CommandPrefix)) continue;
foreach (var regex in command.Patterns)
{
var match = regex.Match(messageTrimmed);