Small patcher that installs the BetterDiscord loader into Discord's desktop core.
Small cross-platform patcher for BetterDiscord on macOS and Windows.
macOS:
curl -fsSL https://raw.githubusercontent.com/ctrlcmdshft/BetterDiscordPatcher/main/install.sh | shWindows:
irm https://raw.githubusercontent.com/ctrlcmdshft/BetterDiscordPatcher/main/install.ps1 | iexThe Windows installer places the script under %LOCALAPPDATA%\BetterDiscordPatcher,
creates betterdiscord.cmd, and adds that directory to the user PATH.
betterdiscord
betterdiscord --version
betterdiscord --check-update
betterdiscord --ptb
betterdiscord --canary
betterdiscord --all
betterdiscord --dry-run
betterdiscord --edit-config
betterdiscord --format-config
betterdiscord --cleanup-old --dry-run
betterdiscord --unpatch
betterdiscord --update
betterdiscord --uninstallauto detects installed Discord apps in /Applications. Explicit release flags
target that release's app name, data folder, updater state, and reopen behavior.
Config paths:
~/.config/betterdiscord-patcher/config.json
%APPDATA%\BetterDiscordPatcher\config.json
Command-line options override config values. Reformat an existing config with:
betterdiscord --format-configGenerated config:
{
"discord_data": "~/Library/Application Support/discord",
"bd_asar": "~/Library/Application Support/BetterDiscord/data/betterdiscord.asar",
"download": true,
"wait_update": true,
"cleanup_before_install": true,
"keep_versions": 1,
"keep_open": false,
"reopen": true,
"notify": false
}The example above shows macOS paths. Windows uses %LOCALAPPDATA% for Discord
data and %APPDATA% for BetterDiscord/config paths.
Release flags choose which Discord install to target without changing the saved config path:
betterdiscord --stable
betterdiscord --ptb
betterdiscord --canary
betterdiscord --all
betterdiscord --autoCheck the installed script version with:
betterdiscord --versionCheck for a newer script version with:
betterdiscord --check-updateThe script also warns during normal runs when a newer version is available.
Interactive runs can offer to update immediately and then continue the original command.
Use betterdiscord --update to refresh the installed script from GitHub.
| Key | Meaning |
|---|---|
discord_data |
Discord data folder to patch. |
bd_asar |
Destination for betterdiscord.asar. |
download |
Download or refresh betterdiscord.asar. |
wait_update |
Wait for Discord's updater to finish before patching. |
cleanup_before_install |
Remove old Discord app-* folders before patching. |
keep_versions |
Number of Discord app-* versions to keep when cleaning. |
keep_open |
Patch without quitting Discord first. |
reopen |
Reopen Discord only if it was running before patching. |
notify |
Show macOS notifications. |
Cleanup only removes old app-* folders and keeps the newest app version folder.
betterdiscord --cleanup-old --dry-run
betterdiscord --cleanup-oldbetterdiscord --unpatch
betterdiscord --uninstall--unpatch removes the BetterDiscord loader from Discord. --uninstall removes
the script command, removes its Windows PATH entry, and keeps config unless
you confirm removal or pass --remove-config.