Skip to content

Commit

Permalink
#34 Temporary disabled login code
Browse files Browse the repository at this point in the history
  • Loading branch information
Serraniel committed Jul 27, 2020
1 parent 123a2e6 commit 80cab1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DML.Client/DMLClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 80cab1e

Please sign in to comment.