| @@ -19,6 +19,7 @@ namespace Discord.Commands.Builders | |||||
| public string Name { get; set; } | public string Name { get; set; } | ||||
| public string Summary { get; set; } | public string Summary { get; set; } | ||||
| public string Remarks { get; set; } | public string Remarks { get; set; } | ||||
| public string Group { get; set; } | |||||
| public IReadOnlyList<CommandBuilder> Commands => _commands; | public IReadOnlyList<CommandBuilder> Commands => _commands; | ||||
| public IReadOnlyList<ModuleBuilder> Modules => _submodules; | public IReadOnlyList<ModuleBuilder> Modules => _submodules; | ||||
| @@ -118,6 +118,7 @@ namespace Discord.Commands | |||||
| break; | break; | ||||
| case GroupAttribute group: | case GroupAttribute group: | ||||
| builder.Name = builder.Name ?? group.Prefix; | builder.Name = builder.Name ?? group.Prefix; | ||||
| builder.Group = group.Prefix; | |||||
| builder.AddAliases(group.Prefix); | builder.AddAliases(group.Prefix); | ||||
| break; | break; | ||||
| case PreconditionAttribute precondition: | case PreconditionAttribute precondition: | ||||
| @@ -13,6 +13,7 @@ namespace Discord.Commands | |||||
| public string Name { get; } | public string Name { get; } | ||||
| public string Summary { get; } | public string Summary { get; } | ||||
| public string Remarks { get; } | public string Remarks { get; } | ||||
| public string Group { get; set; } | |||||
| public IReadOnlyList<string> Aliases { get; } | public IReadOnlyList<string> Aliases { get; } | ||||
| public IReadOnlyList<CommandInfo> Commands { get; } | public IReadOnlyList<CommandInfo> Commands { get; } | ||||
| @@ -31,6 +32,7 @@ namespace Discord.Commands | |||||
| Name = builder.Name; | Name = builder.Name; | ||||
| Summary = builder.Summary; | Summary = builder.Summary; | ||||
| Remarks = builder.Remarks; | Remarks = builder.Remarks; | ||||
| Group = builder.Group; | |||||
| Parent = parent; | Parent = parent; | ||||
| //TypeInfo = builder.TypeInfo; | //TypeInfo = builder.TypeInfo; | ||||