removed error when invalid plugin. It was called even when a typo was made
This commit is contained in:
@@ -126,8 +126,7 @@ internal class CommandHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (plugin is null)
|
if (plugin is null)
|
||||||
throw new Exception("Failed to run command ! " + message.CleanContent + " (user: " +
|
return;
|
||||||
context.Message.Author.Username + " - " + context.Message.Author.Id + ")");
|
|
||||||
|
|
||||||
if (plugin.requireAdmin && !context.Message.Author.isAdmin())
|
if (plugin.requireAdmin && !context.Message.Author.isAdmin())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user