Browse Source

We all do it now and then <3

tags/1.0-rc
Khionu Terabite GitHub 9 years ago
parent
commit
3ad3912606
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/CommandService.cs

+ 1
- 1
src/Discord.Net.Commands/CommandService.cs 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);


Loading…
Cancel
Save