fix: fix missing CompiledCommands check
This commit is contained in:
parent
b7d814936f
commit
e58aca5af7
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ internal static class DisCatSharpExtensionsLoader
|
|||
DebugStartup = true
|
||||
});
|
||||
|
||||
if (bot.status.CurrentAppHash != bot.status.LoadedConfig.DontModify.LastKnownHash)
|
||||
if (bot.status.CurrentAppHash != bot.status.LoadedConfig.DontModify.LastKnownHash && Directory.Exists("CompiledCommands"))
|
||||
{
|
||||
Log.Debug("Clearing cached Commands..");
|
||||
await FileExtensions.CleanupFilesAndDirectories(new(), Directory.GetFiles("CompiledCommands").ToList());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue