We all do it now and then <3

This commit is contained in:
Khionu Terabite
2016-07-07 20:35:46 -04:00
committed by GitHub
parent 2dea7ff7a9
commit 3ad3912606

View File

@@ -144,7 +144,7 @@ namespace Discord.Commands
var typeInfo = moduleInstance.GetType().GetTypeInfo();
var moduleAttr = typeInfo.GetCustomAttribute<ModuleAttribute>();
if (moduleAttr != null)
if (moduleAttr == null)
throw new ArgumentException($"Modules must be marked with ModuleAttribute.");
return LoadInternal(moduleInstance, moduleAttr, typeInfo);