Added new getting started guide

Thanks @MinnDevelopment for his awesome work on
the JDA guide that had no influence here at all.
This commit is contained in:
Christopher F
2017-03-11 15:32:14 -05:00
parent bea5e37db8
commit d111214bff
13 changed files with 326 additions and 42 deletions

View File

@@ -0,0 +1,16 @@
// Program.cs
using Discord.WebSocket;
// ...
public async Task MainAsync()
{
var client = new DiscordSocketClient();
client.Log += Log;
string token = "abcdefg..."; // Remember to keep this private!
await client.LoginAsync(TokenType.Bot, token);
await client.StartAsync();
// Block this task until the program is closed.
await Task.Delay(-1);
}