ConnectAsync -> StartAsync

This commit is contained in:
Joe4evr
2017-03-07 17:19:51 +01:00
committed by GitHub
parent 1b0e47be42
commit 4b4506f243

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);
}
}
}
}