From 5ce609c3237006ea0648f20c5c0197ac849f5237 Mon Sep 17 00:00:00 2001 From: Finite Reality Date: Sat, 30 Jul 2016 21:39:07 +0100 Subject: [PATCH] Fix small typo --- src/Discord.Net.Commands/Command.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Commands/Command.cs b/src/Discord.Net.Commands/Command.cs index 3ae2c5597..90985ef85 100644 --- a/src/Discord.Net.Commands/Command.cs +++ b/src/Discord.Net.Commands/Command.cs @@ -100,7 +100,7 @@ namespace Discord.Commands if (reader == null && underlyingTypeInfo.IsEnum) { - reader = EnumTypeReader.GetReader(type); + reader = EnumTypeReader.GetReader(underlyingType); Module.Service.AddTypeReader(type, reader); }