Feature/#34 discord api migration #35
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue