The next phase is to find out the particular cause of the error. You can do this by checking out the Discord API documentation. You will see a complete list of error emails. It is also feasible to see the method of the API endpoint where error happened. This will help to you locate where the issue originated.
Once you have found the cause of the problem, you may clean your personal computer of any kind of files that may be stored on your own system. Typically, these data can be found in the %LocalAppData% folder. After deleting these data files, you can reinstall Discord. In order to your Discord settings, you can also uninstall the app completely.