Fix sharding issue hopefully for good

This commit is contained in:
Ske 2019-07-15 17:23:27 +02:00
parent 4198a493e4
commit 7475980bd3

View File

@ -38,7 +38,7 @@ namespace PluralKit.Bot
await Schema.CreateTables(conn);
Console.WriteLine("- Connecting to Discord...");
var client = services.GetRequiredService<IDiscordClient>() as DiscordSocketClient;
var client = services.GetRequiredService<IDiscordClient>() as DiscordShardedClient;
await client.LoginAsync(TokenType.Bot, services.GetRequiredService<BotConfig>().Token);
await client.StartAsync();