Early 1.0 REST Preview

This commit is contained in:
RogueException
2016-04-04 20:15:16 -03:00
parent b888ea23dc
commit 5bdd6a7ff3
470 changed files with 6804 additions and 14042 deletions

View File

@@ -2,13 +2,10 @@ class Program
{
static void Main(string[] args)
{
var client = new DiscordClient(x =>
{
LogLevel = LogSeverity.Info
});
var client = new DiscordClient();
//Display all log messages in the console
client.Log.Message += (s, e) => Console.WriteLine($"[{e.Severity}] {e.Source}: {e.Message}");
client.LogMessage += (s, e) => Console.WriteLine($"[{e.Severity}] {e.Source}: {e.Message}");
//Echo back any message received, provided it didn't come from the bot itself
client.MessageReceived += async (s, e) =>
@@ -25,7 +22,7 @@ class Program
//If we are not a member of any server, use our invite code (made beforehand in the official Discord Client)
if (!client.Servers.Any())
await (client.GetInvite("aaabbbcccdddeee")).Accept();
await client.AcceptInvite(client.GetInvite("aaabbbcccdddeee"));
});
}
}