We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263cfc0 commit 982dc81Copy full SHA for 982dc81
DiscordBot.cs
@@ -158,7 +158,7 @@ public void InitAndRun(string[] args)
158
ConfigFile = FDSUtility.ReadFile(CONFIG_FILE);
159
}
160
161
- Cache = new DiscordMessageCache(this, ConfigFile.GetInt("discord_cache_size", ClientConfig.CacheSize).Value);
+ Cache = new DiscordMessageCache(this, ConfigFile?.GetInt("discord_cache_size") ?? ClientConfig.CacheSize);
162
Console.WriteLine("Loading Discord...");
163
DiscordSocketConfig config = new()
164
{
0 commit comments