#34 Temporary disabled login code

This commit is contained in:
Serraniel 2020-07-27 11:26:01 +02:00
parent 123a2e6965
commit 80cab1ea44
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

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);