Browse Source

Fix order of iteration in ExecuteAsync (#534)

tags/1.0-rc
Finite Reality RogueException 8 years ago
parent
commit
3ddb01a5a2
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;

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)


Loading…
Cancel
Save