Revert CommandService.Modules change

This commit is contained in:
james7132
2016-11-30 19:52:58 +00:00
parent 790ca10d17
commit 2c768c413a

View File

@@ -22,7 +22,7 @@ namespace Discord.Commands
internal readonly bool _caseSensitive;
internal readonly RunMode _defaultRunMode;
public IEnumerable<ModuleInfo> Modules => _moduleDefs.Where(x => !x.IsSubmodule);
public IEnumerable<ModuleInfo> Modules => _moduleDefs.Select(x => x);
public IEnumerable<CommandInfo> Commands => _moduleDefs.SelectMany(x => x.Commands);
public CommandService() : this(new CommandServiceConfig()) { }