diff --git a/PluginManager/Bot/CommandHandler.cs b/PluginManager/Bot/CommandHandler.cs index 4f1b727..8cb7ca1 100644 --- a/PluginManager/Bot/CommandHandler.cs +++ b/PluginManager/Bot/CommandHandler.cs @@ -124,10 +124,9 @@ internal class CommandHandler .Substring(botPrefix.Length)))); cleanMessage = message.Content.Substring(botPrefix.Length); } - + if (plugin is null) - throw new Exception("Failed to run command ! " + message.CleanContent + " (user: " + - context.Message.Author.Username + " - " + context.Message.Author.Id + ")"); + return; if (plugin.requireAdmin && !context.Message.Author.isAdmin()) return;