From 3ad3912606337d28ef25ba629299929598833960 Mon Sep 17 00:00:00 2001 From: Khionu Terabite Date: Thu, 7 Jul 2016 20:35:46 -0400 Subject: [PATCH] We all do it now and then <3 --- src/Discord.Net.Commands/CommandService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 794ab0863..a3400a465 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -144,7 +144,7 @@ namespace Discord.Commands var typeInfo = moduleInstance.GetType().GetTypeInfo(); var moduleAttr = typeInfo.GetCustomAttribute(); - if (moduleAttr != null) + if (moduleAttr == null) throw new ArgumentException($"Modules must be marked with ModuleAttribute."); return LoadInternal(moduleInstance, moduleAttr, typeInfo);