Merge pull request #558 from Joe4evr/patch-1
ConnectAsync -> StartAsync
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user