From d4a4020dc6ae291dd7e3fdb8da294c4e6675164a Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Sat, 30 Sep 2017 11:47:46 +0800 Subject: [PATCH] Revert async Main sample --- docs/guides/commands/samples/command_handler.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/guides/commands/samples/command_handler.cs b/docs/guides/commands/samples/command_handler.cs index 1237cf9d5..cc1421991 100644 --- a/docs/guides/commands/samples/command_handler.cs +++ b/docs/guides/commands/samples/command_handler.cs @@ -12,9 +12,7 @@ public class Program private DiscordSocketClient _client; private IServiceProvider _services; - // Async Main is a C#7.1 feature. - // Use "static void Main(string[] args) => new Program().StartAsync().GetAwaiter().GetResult();" for C#7 and prior. - static Task Main(string[] args) => new Program().StartAsync(); + static void Main(string[] args) => new Program().Start().GetAwaiter().GetResult(); public async Task StartAsync() {