mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
Disable message caching
This will potentially fix the memory leaking issues.
This commit is contained in:
parent
d5c0856abf
commit
4f33ed84ac
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue