Browse Source

Revert CommandService.Modules change

tags/1.0-rc
james7132 8 years ago
parent
commit
2c768c413a
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

@@ -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()) { }


Loading…
Cancel
Save