Fix order of iteration in ExecuteAsync (#534)
This commit is contained in:
committed by
RogueException
parent
efbd3cb681
commit
3ddb01a5a2
@@ -247,7 +247,7 @@ namespace Discord.Commands
|
||||
return searchResult;
|
||||
|
||||
var commands = searchResult.Commands;
|
||||
for (int i = commands.Count - 1; i >= 0; i--)
|
||||
for (int i = 0; i < commands.Count; i++)
|
||||
{
|
||||
var preconditionResult = await commands[i].CheckPreconditionsAsync(context, dependencyMap).ConfigureAwait(false);
|
||||
if (!preconditionResult.IsSuccess)
|
||||
|
||||
Reference in New Issue
Block a user