Added GetArg(name) to CommandEventArgs

This commit is contained in:
RogueException
2015-11-22 20:28:51 -04:00
parent 3f9e9040a5
commit 64e6ea4173
3 changed files with 10 additions and 13 deletions

View File

@@ -35,8 +35,6 @@ namespace Discord.Commands
public string Category { get; internal set; }
public bool IsHidden { get; internal set; }
public string Description { get; internal set; }
//public int? MinArgs { get; private set; }
//public int? MaxArgs { get; private set; }
public IEnumerable<string> Aliases => _aliases;
private string[] _aliases;
@@ -46,7 +44,7 @@ namespace Discord.Commands
private IPermissionChecker[] _checks;
private Func<CommandEventArgs, Task> _runFunc;
private Dictionary<string, CommandParameter> _parametersByName;
internal readonly Dictionary<string, CommandParameter> _parametersByName;
internal Command(string text)
{