Summary

Running into a JavaScript error on Discord makes you unable to use the app.

Here are the possible solutions to your issue.

you’ve got the option to fix that byrunning the app with administrator rights on your Windows PC.

Discord visible on a PC screen.

Hannah Stryker / How-To Geek

To do that, find Discord on your desktop or in Start Menu.

Right-nudge the app, and from the open menu, select “Run as Administrator.”

In the User Account Control prompt, select “Yes.”

‘Run as Administrator’ highlighted for Discord in Start Menu.

If this method fixes the issue, make Windows always launch Discord as an admin.

Do that by first right-clicking Discords desktop shortcut and choosing “Properties.”

fire up the “Shortcut” tab and choose “Advanced.”

‘Properties’ highlighted for Discord’s desktop shortcut.

Delete Discords AppData Files

Discords AppData file corruption can cause a JavaScript error.

To do that, pop kick open the Run dialog box by pressing Windows+R.

Right-click a selected file and choose “Delete” (a trash can icon).

‘Run as Administrator’ and ‘OK’ highlighted for Discord.

To verify and fix that, temporarily disable your antivirus protection.

How you do this depends on the program youre using.

If youre using Microsoft Defender Antivirus,turn it offby first opening the Windows Security app.

‘Manage Settings’ highlighted in Windows Security.

Then, turn off “Real-Time Protection” and choose “Yes” in the prompt.

Unlike other apps, you wont find BetterDiscord in Windows installed apps list.

Instead, youll have to launch the apps installer and choose an option to uninstall the app.

‘Real-Time Protection’ highlighted in Windows Security.

To do that, run your downloaded BetterDiscord installer file.

If you dont have the file, go to theBetterDiscordsite and download the file.

When it launches, accept the license agreement.

‘Uninstall BetterDiscord’ and ‘Next’ highlighted BetterDiscord installer.

Then, select “Uninstall BetterDiscord” and choose “Next.”

Select your current Discord app and choose “Uninstall.”

When BetterDiscord is uninstalled, click “Close” to wrap up the open window.

The current Discord app and ‘Uninstall’ highlighted in BetterDiscord installer.

Deleting the app doesnt delete your account data; Discord re-syncs your data when you sign back in.

To remove Discord from a Windows 11 PC, go to tweaks > Apps > Installed Apps.

Next to Discord, smack the three dots and choose “Uninstall” followed by “Uninstall.”

‘Uninstall’ highlighted for Discord in Windows 11 Settings.

To delete Discord on a Windows 10 PC, visit configs > Apps.

Select Discord on the list, click “Uninstall,” and choose “Uninstall.”

Head to theDiscord Downloadsite and download and implement the app on your rig.

‘Uninstall’ highlighted for Discord in Windows 10 Settings.

Your issue should now be fixed.