From 0651925a690907a8a7bc201a5f49f30dcda95487 Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Sat, 30 Sep 2017 11:53:52 +0800 Subject: [PATCH] Fix missing method for Command Handler --- docs/guides/commands/samples/command_handler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/commands/samples/command_handler.cs b/docs/guides/commands/samples/command_handler.cs index 5f0473228..b0c1888c6 100644 --- a/docs/guides/commands/samples/command_handler.cs +++ b/docs/guides/commands/samples/command_handler.cs @@ -12,14 +12,14 @@ public class Program private DiscordSocketClient _client; private IServiceProvider _services; - static void Main(string[] args) => new Program().Start().GetAwaiter().GetResult(); + private static void Main(string[] args) => new Program().StartAsync().GetAwaiter().GetResult(); public async Task StartAsync() { _client = new DiscordSocketClient(); _commands = new CommandService(); - // Avoid hard coding your token. Use an external source instead in your code. + // Avoid hard coding your token. Use an external source instead in your code. string token = "bot token here"; _services = new ServiceCollection()