Disable message caching

This will potentially fix the memory leaking issues.
This commit is contained in:
Ske 2019-07-20 23:10:26 +02:00
parent d5c0856abf
commit 4f33ed84ac

View File

@ -81,7 +81,10 @@ namespace PluralKit.Bot
.AddTransient(svc => new DbConnectionFactory(svc.GetRequiredService<CoreConfig>().Database)) .AddTransient(svc => new DbConnectionFactory(svc.GetRequiredService<CoreConfig>().Database))
.AddSingleton<IDiscordClient, DiscordShardedClient>() .AddSingleton<IDiscordClient, DiscordShardedClient>(_ => new DiscordShardedClient(new DiscordSocketConfig
{
MessageCacheSize = 0
}))
.AddSingleton<Bot>() .AddSingleton<Bot>()
.AddTransient<CommandService>(_ => new CommandService(new CommandServiceConfig .AddTransient<CommandService>(_ => new CommandService(new CommandServiceConfig