service.bat: add support for clearing Discord Canary and Development cache (#16169)

This commit is contained in:
[ + ] Zaza
2026-08-09 12:48:50 +03:00
committed by GitHub
parent cbbd7dd610
commit 3b6023ce0d
+10 -2
View File
@@ -678,7 +678,7 @@ if !found_any_conflict!==1 (
:: Discord cache clearing :: Discord cache clearing
set "CHOICE=" set "CHOICE="
set /p "CHOICE=Do you want to clear the Discord and Discord PTB cache? (Y/N) (default: Y) " set /p "CHOICE=Do you want to clear the Discord cache (Stable, PTB, Canary, Development)? (Y/N) (default: Y) "
if "!CHOICE!"=="" set "CHOICE=Y" if "!CHOICE!"=="" set "CHOICE=Y"
if "!CHOICE!"=="y" set "CHOICE=Y" if "!CHOICE!"=="y" set "CHOICE=Y"
@@ -692,7 +692,15 @@ if /i "!CHOICE!"=="Y" (
set "discordFound=1" set "discordFound=1"
call :clear_discord_cache "DiscordPTB.exe" "Discord PTB" "%APPDATA%\discordptb" call :clear_discord_cache "DiscordPTB.exe" "Discord PTB" "%APPDATA%\discordptb"
) )
if !discordFound! equ 0 call :PrintRed "Discord and Discord PTB were not found" if exist "%APPDATA%\discordcanary\" (
set "discordFound=1"
call :clear_discord_cache "DiscordCanary.exe" "Discord Canary" "%APPDATA%\discordcanary"
)
if exist "%APPDATA%\discorddevelopment\" (
set "discordFound=1"
call :clear_discord_cache "DiscordDevelopment.exe" "Discord Development" "%APPDATA%\discorddevelopment"
)
if !discordFound! equ 0 call :PrintRed "Discord installations were not found"
set "discordFound=" set "discordFound="
) )
echo: echo: