Merge pull request #558 from Joe4evr/patch-1

ConnectAsync -> StartAsync
This commit is contained in:
Christopher F
2017-03-10 19:37:07 -05:00
committed by GitHub

View File

@@ -77,7 +77,8 @@ class Program
// Login and connect.
await _client.LoginAsync(TokenType.Bot, /* <DON'T HARDCODE YOUR TOKEN> */);
await _client.ConnectAsync();
// Prior to rc-00608 this was ConnectAsync();
await _client.StartAsync();
// Wait infinitely so your bot actually stays connected.
await Task.Delay(-1);
@@ -125,4 +126,4 @@ class Program
// await msg.Channel.SendMessageAsync(result.ErrorReason);
}
}
}
}