|
|
@@ -11,6 +11,7 @@ namespace Discord.Commands |
|
|
|
public TypeInfo Source { get; } |
|
|
|
public CommandService Service { get; } |
|
|
|
public string Name { get; } |
|
|
|
public string Prefix { get; } |
|
|
|
public string Summary { get; } |
|
|
|
public string Description { get; } |
|
|
|
public IEnumerable<Command> Commands { get; } |
|
|
@@ -23,6 +24,7 @@ namespace Discord.Commands |
|
|
|
Source = source; |
|
|
|
Service = service; |
|
|
|
Name = source.Name; |
|
|
|
Prefix = moduleAttr.Prefix ?? ""; |
|
|
|
Instance = instance; |
|
|
|
|
|
|
|
var summaryAttr = source.GetCustomAttribute<SummaryAttribute>(); |
|
|
@@ -34,7 +36,7 @@ namespace Discord.Commands |
|
|
|
Description = descriptionAttr.Text; |
|
|
|
|
|
|
|
List<Command> commands = new List<Command>(); |
|
|
|
SearchClass(source, instance, commands, moduleAttr.Prefix ?? ""); |
|
|
|
SearchClass(source, instance, commands, Prefix); |
|
|
|
Commands = commands; |
|
|
|
|
|
|
|
Preconditions = BuildPreconditions(); |
|
|
|