From 2c768c413a4e342a695dd6e3213e3c99380c3fb4 Mon Sep 17 00:00:00 2001 From: james7132 Date: Wed, 30 Nov 2016 19:52:58 +0000 Subject: [PATCH] Revert CommandService.Modules change --- 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 3bac40634..b6659fea3 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -22,7 +22,7 @@ namespace Discord.Commands internal readonly bool _caseSensitive; internal readonly RunMode _defaultRunMode; - public IEnumerable Modules => _moduleDefs.Where(x => !x.IsSubmodule); + public IEnumerable Modules => _moduleDefs.Select(x => x); public IEnumerable Commands => _moduleDefs.SelectMany(x => x.Commands); public CommandService() : this(new CommandServiceConfig()) { }