Browse Source

Fix typo in command setup example

pull/805/head
Hsu Still GitHub 8 years ago
parent
commit
7d01713b43
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); var context = new CommandContext(client, message);
// Execute the command. (result does not indicate a return value, // Execute the command. (result does not indicate a return value,
// rather an object stating if the command executed successfully) // 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) if (!result.IsSuccess)
await context.Channel.SendMessageAsync(result.ErrorReason); await context.Channel.SendMessageAsync(result.ErrorReason);
} }


Loading…
Cancel
Save