Paste into Terminal:
curl -fsSL https://getpillar.dev/mac.sh | bash
iPhone. Your file never leaves this device. Pillar adds one file, Prism.dylib, and tells the app to load it. It lets the Files app see Pillar's folder, removes the old signature (SideStore or AltStore signs the app again as yours), and removes the purchase record that names the Apple ID that downloaded it. An App Store download is encrypted and won't work. Remove the App Store Discord before installing.
Prefer a computer? Use the patch script.
Mac. The script quits Discord, adds one line to a small loader file Discord keeps in your user folder, and opens Discord again. The Discord app itself isn't modified. A small background job puts that line back when Discord updates itself; it never downloads anything. To remove Pillar, run the same line ending in bash -s uninstall. Read the script.