Browse Source

Merge 7d01713b43 into 30e867a183

pull/805/merge
Hsu Still GitHub 8 years ago
parent
commit
f2d25473cb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/guides/commands/samples/command_handler.cs

+ 1
- 1
docs/guides/commands/samples/command_handler.cs View File

@@ -53,7 +53,7 @@ public class Program
var context = new CommandContext(client, message);
// Execute the command. (result does not indicate a return value,
// rather an object stating if the command executed successfully)
var result = await commands.ExecuteAsync(context, argPos, service);
var result = await commands.ExecuteAsync(context, argPos, services);
if (!result.IsSuccess)
await context.Channel.SendMessageAsync(result.ErrorReason);
}


Loading…
Cancel
Save