Browse Source

Fix order of iteration in ExecuteAsync

pull/534/head
FiniteReality 8 years ago
parent
commit
3bcec5ffe5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/CommandService.cs

+ 1
- 1
src/Discord.Net.Commands/CommandService.cs View File

@@ -247,7 +247,7 @@ namespace Discord.Commands
return searchResult; return searchResult;


var commands = searchResult.Commands; 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); var preconditionResult = await commands[i].CheckPreconditionsAsync(context, dependencyMap).ConfigureAwait(false);
if (!preconditionResult.IsSuccess) if (!preconditionResult.IsSuccess)


Loading…
Cancel
Save