Browse Source

Merge pull request #558 from Joe4evr/patch-1

ConnectAsync -> StartAsync
tags/1.0-rc
Christopher F GitHub 8 years ago
parent
commit
1e0ae66f52
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      docs/guides/samples/first-steps.cs

+ 3
- 2
docs/guides/samples/first-steps.cs 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);
}
}
}
}

Loading…
Cancel
Save