Resolve #251
This commit is contained in:
@@ -150,6 +150,8 @@ namespace Discord.Commands
|
|||||||
for (int i = argList.Count; i < command.Parameters.Count; i++)
|
for (int i = argList.Count; i < command.Parameters.Count; i++)
|
||||||
{
|
{
|
||||||
var param = command.Parameters[i];
|
var param = command.Parameters[i];
|
||||||
|
if (param.IsMultiple)
|
||||||
|
continue;
|
||||||
if (!param.IsOptional)
|
if (!param.IsOptional)
|
||||||
return ParseResult.FromError(CommandError.BadArgCount, "The input text has too few parameters.");
|
return ParseResult.FromError(CommandError.BadArgCount, "The input text has too few parameters.");
|
||||||
argList.Add(TypeReaderResult.FromSuccess(param.DefaultValue));
|
argList.Add(TypeReaderResult.FromSuccess(param.DefaultValue));
|
||||||
|
|||||||
Reference in New Issue
Block a user