Browse Source

Fix IsSubmodule property's correctness

tags/1.0-rc
james7132 8 years ago
parent
commit
6865318071
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Info/ModuleInfo.cs

+ 1
- 1
src/Discord.Net.Commands/Info/ModuleInfo.cs View File

@@ -19,7 +19,7 @@ namespace Discord.Commands
public IReadOnlyList<PreconditionAttribute> Preconditions { get; }
public IReadOnlyList<ModuleInfo> Submodules { get; }
public ModuleInfo Parent { get; }
public bool IsSubmodule => Parent == null;
public bool IsSubmodule => Parent != null;

internal ModuleInfo(ModuleBuilder builder, CommandService service, ModuleInfo parent = null)
{


Loading…
Cancel
Save