Feature/#34 discord api migration #35

Merged
Serraniel merged 13 commits from feature/#34-discord-api-migration into master 2020-07-27 13:02:36 +02:00
Showing only changes of commit 80cab1ea44 - Show all commits

View file

@ -6,11 +6,12 @@ namespace DML.Client
{
public static class DMLClient
{
public static DiscordSocketClient Client { get; set; } = new DiscordSocketClient(new DiscordSocketConfig(){DefaultRetryMode = RetryMode.RetryRatelimit|RetryMode.RetryTimeouts});
public static DiscordSocketClient Client { get; set; } = new DiscordSocketClient(new DiscordSocketConfig() { DefaultRetryMode = RetryMode.RetryRatelimit | RetryMode.RetryTimeouts });
public static async Task<bool> Login(string token)
{
await Client.LoginAsync(TokenType.User, token);
// TODO: Fix Login with usertoken
//await Client.LoginAsync(TokenType.User, token);
await Client.StartAsync();
await Task.Delay(1000);