Browse Source

Resolution for #937 because it's literally 4 lines of code

pull/934/head
Joe4evr 7 years ago
parent
commit
f623d19c68
3 changed files with 4 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net.Commands/Builders/ModuleBuilder.cs
  2. +1
    -0
      src/Discord.Net.Commands/Builders/ModuleClassBuilder.cs
  3. +2
    -0
      src/Discord.Net.Commands/Info/ModuleInfo.cs

+ 1
- 0
src/Discord.Net.Commands/Builders/ModuleBuilder.cs View File

@@ -19,6 +19,7 @@ namespace Discord.Commands.Builders
public string Name { get; set; }
public string Summary { get; set; }
public string Remarks { get; set; }
public string Group { get; set; }

public IReadOnlyList<CommandBuilder> Commands => _commands;
public IReadOnlyList<ModuleBuilder> Modules => _submodules;


+ 1
- 0
src/Discord.Net.Commands/Builders/ModuleClassBuilder.cs View File

@@ -118,6 +118,7 @@ namespace Discord.Commands
break;
case GroupAttribute group:
builder.Name = builder.Name ?? group.Prefix;
builder.Group = group.Prefix;
builder.AddAliases(group.Prefix);
break;
case PreconditionAttribute precondition:


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

@@ -13,6 +13,7 @@ namespace Discord.Commands
public string Name { get; }
public string Summary { get; }
public string Remarks { get; }
public string Group { get; set; }

public IReadOnlyList<string> Aliases { get; }
public IReadOnlyList<CommandInfo> Commands { get; }
@@ -31,6 +32,7 @@ namespace Discord.Commands
Name = builder.Name;
Summary = builder.Summary;
Remarks = builder.Remarks;
Group = builder.Group;
Parent = parent;

//TypeInfo = builder.TypeInfo;


Loading…
Cancel
Save