Added support for unparsed parameters, more cleanup

This commit is contained in:
RogueException
2015-10-30 10:35:53 -03:00
parent faae530ae1
commit c6a81a14b6
4 changed files with 61 additions and 53 deletions

View File

@@ -32,7 +32,7 @@ namespace Discord.Commands
public string Text { get; }
public int? MinArgs { get; private set; }
public int? MaxArgs { get; private set; }
public int MinPerms { get; internal set; }
public int MinPermissions { get; internal set; }
public bool IsHidden { get; internal set; }
public string Description { get; internal set; }
@@ -40,7 +40,7 @@ namespace Discord.Commands
private string[] _aliases;
public IEnumerable<CommandParameter> Parameters => _parameters;
private CommandParameter[] _parameters;
internal CommandParameter[] _parameters;
private Func<CommandEventArgs, Task> _handler;