diff --git a/src/Discord.Net.Commands/Info/ModuleInfo.cs b/src/Discord.Net.Commands/Info/ModuleInfo.cs index 7b9959efe..436c8b9ec 100644 --- a/src/Discord.Net.Commands/Info/ModuleInfo.cs +++ b/src/Discord.Net.Commands/Info/ModuleInfo.cs @@ -57,6 +57,10 @@ namespace Discord.Commands /// public ModuleInfo Parent { get; } /// + /// The Type of the module represented by this instance. + /// + public Type ModuleType { get; } + /// /// Gets a value that indicates whether this module is a submodule or not. /// public bool IsSubmodule => Parent != null; @@ -70,6 +74,7 @@ namespace Discord.Commands Remarks = builder.Remarks; Group = builder.Group; Parent = parent; + ModuleType = builder.TypeInfo.AsType(); Aliases = BuildAliases(builder, service).ToImmutableArray(); Commands = builder.Commands.Select(x => x.Build(this, service)).ToImmutableArray();