Fix IsSubmodule property's correctness

This commit is contained in:
james7132
2016-11-27 01:32:15 -08:00
parent 0771fcce63
commit 6865318071

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)
{