This error is due to conflicts between files within the program folder, it is very likely that you will face this problem after updates to your Java driver or Discord itself, in this the activities that we develop in Discord such as voice chat or even autostart (you can prevent Discord from starting with Windows)
All this is due to the fact that many of these actions are executed through “scripts” or commands that are executed automatically when certain parameters are met, over time some of these scripts are stored in the root folder of the program, leading to annoying Discord startup problems.
Another possible cause of problems is that several processes of the program run together creating errors, so it will be necessary to close them and restart the program so that the correct operation of the program is restored, then we will see how to fix this problem in different ways.
- Hover over the taskbar and right-click, then select ‘Open Task Manager’
- Find the process ‘Discord.exe’ and right click on it, then choose ‘End process tree’
Once this is done, you should be able to start the program again without any problem, in case it does not work you can uninstall Discord from Windows to be able to reinstall it after that, but first you can try the solution below.
- Go to the control panel and in the search bar enter ‘% appdata%’ (without the quotes)
- Click on the folder with that name and in the new tab that will open select the ‘Discord’ portfolio, right click and select ‘Delete’
- Once the folder is deleted, reopen the Windows file browser and type ‘% localappdata%’ (without the quotes) and in that folder look for the ‘Discord’ directory again and delete it
- Then go to the Windows Recycle Bin and right-click on its icon select ‘Empty Trash’
This step should cause the scripts to be created again in their default values the next time you start the program, allowing you to play music on Discord, share your screen, use voice chat and any other type of functions without this resulting in a mistake.
Although it is not a direct solution, the problem may be occurring because your antivirus is preventing Discord from working properly and for this you will have to add it to a ‘White List’ or safe of programs, also known as ‘Exceptions’ in other antivirus, for this:
- Open the start menu and select the search bar, there type ‘Windows Defender Firewall’ and select the option of that name
- Go to the option ‘Allow an application or feature to run through Windows Defender Firewall’ in this new tab that will open select the ‘Discord’ box
- In case you cannot find it you will have to select the option ‘Allow another application’ and look for the Discord install path, then select your executable file and finally the Discord box in the menu above.
Some antiviruses have options to add programs to an exception list from their own menus, however, this method makes Windows Firewall allow it to be run Discord correctlyLikewise, most antivirus programs add the programs found in the Windows Defender list to their own exception lists.
It is possible that, by default, when installing the program automatically you have been given admin privileges for Discord, which can cause problems in its execution since the operating system can, like Windows Defender, block certain actions or processes as a protection measure.
To solve this we will have to remove discord administrator privileges, simply:
- Go to the Discord shortcut icon on your desktop if there is one and select it with right click, then choose ‘Open file location’
- There right click on the executable file that lit up and select ‘Properties’
- In the last menu click on ‘Compatibility’ and there uncheck the box ‘Run this program as administrator’