I’ve written (and now well-tested) a Discord installer for Linux that takes the very nicely packaged tar download and places it in a sensible directory (/opt/Discord), extracts it and then adds app icons into the app launcher. This mainly targets Gnome and I’ve run this on RPM/EL based distros such as Fedora, CentOS and Rocky.
View the Installer Gist
Simply download the script and run it through bash (or simply make it executable); it will install Discord to /opt/Discord, it should also update discord for you if you re-run the script when an update is avaialble. This does expect to be run as root (or with sudo).