@@ -65,7 +65,9 @@ namespace Discord.Commands
|
|||||||
return ParseResult.FromError(CommandError.ParseFailed, "There must be at least one character of whitespace between arguments.");
|
return ParseResult.FromError(CommandError.ParseFailed, "There must be at least one character of whitespace between arguments.");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
curParam = command.Parameters.Count > argList.Count ? command.Parameters[argList.Count] : null;
|
if (curParam == null)
|
||||||
|
curParam = command.Parameters.Count > argList.Count ? command.Parameters[argList.Count] : null;
|
||||||
|
|
||||||
if (curParam != null && curParam.IsRemainder)
|
if (curParam != null && curParam.IsRemainder)
|
||||||
{
|
{
|
||||||
argBuilder.Append(c);
|
argBuilder.Append(c);
|
||||||
@@ -116,11 +118,7 @@ namespace Discord.Commands
|
|||||||
{
|
{
|
||||||
paramList.Add(typeReaderResult);
|
paramList.Add(typeReaderResult);
|
||||||
|
|
||||||
if (curPos == endPos)
|
curPart = ParserPart.None;
|
||||||
{
|
|
||||||
curParam = null;
|
|
||||||
curPart = ParserPart.None;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user