mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
Fix sharding issue hopefully for good
This commit is contained in:
parent
4198a493e4
commit
7475980bd3
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ namespace PluralKit.Bot
|
||||||
await Schema.CreateTables(conn);
|
await Schema.CreateTables(conn);
|
||||||
|
|
||||||
Console.WriteLine("- Connecting to Discord...");
|
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.LoginAsync(TokenType.Bot, services.GetRequiredService<BotConfig>().Token);
|
||||||
await client.StartAsync();
|
await client.StartAsync();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue