Disable message caching
This will potentially fix the memory leaking issues.
This commit is contained in:
parent
d5c0856abf
commit
4f33ed84ac
@ -81,7 +81,10 @@ namespace PluralKit.Bot
|
||||
|
||||
.AddTransient(svc => new DbConnectionFactory(svc.GetRequiredService<CoreConfig>().Database))
|
||||
|
||||
.AddSingleton<IDiscordClient, DiscordShardedClient>()
|
||||
.AddSingleton<IDiscordClient, DiscordShardedClient>(_ => new DiscordShardedClient(new DiscordSocketConfig
|
||||
{
|
||||
MessageCacheSize = 0
|
||||
}))
|
||||
.AddSingleton<Bot>()
|
||||
|
||||
.AddTransient<CommandService>(_ => new CommandService(new CommandServiceConfig
|
||||
|
Loading…
Reference in New Issue
Block a user