From 7475980bd345bc86b20b5fdaef096e8f5eb37eb3 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 15 Jul 2019 17:23:27 +0200 Subject: [PATCH] Fix sharding issue hopefully for good --- PluralKit.Bot/Bot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 3805c4fd..8bfb9607 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -38,7 +38,7 @@ namespace PluralKit.Bot await Schema.CreateTables(conn); Console.WriteLine("- Connecting to Discord..."); - var client = services.GetRequiredService() as DiscordSocketClient; + var client = services.GetRequiredService() as DiscordShardedClient; await client.LoginAsync(TokenType.Bot, services.GetRequiredService().Token); await client.StartAsync();