Skip to main content

Legacy Migration

Bring the legacy bot's config.json into the selected server through Backup's import wizard, then review any feature that the current checks keep off.

Why Migrate?

  1. Brings your existing rules across in one step, so you don't retype 19 features by hand.
  2. Moves webhook URLs, signing secrets, and the Bot Token out of a plain file and into encrypted storage.
  3. Checks each feature's settings before anything turns on, so a feature with broken settings stays off instead of failing in Discord.

Before You Import

  • Back up first — Keep a copy of config.json, and back up the appliance as described in Storage and Backups, because the wizard replaces settings.
  • Discover the server — Start the bot and add it to the server, so the server appears in the server menu, because the import works on the selected server.
  • Match the server — When the file has settings.discord.guild.guild-id, it has to match the selected server, or the import stops with "This config.json belongs to another Discord server. Switch to that server first."
  • Check the token — The import replaces the Bot Token whenever the file has settings.discord.token, so remove an old token from the file first if you don't want it.

How config.json Is Staged

The wizard checks each recognized section with the same settings and real secret values that a feature save uses. A valid, supported feature follows Turn on features that pass checks, while every other recognized feature is still imported but stays off until you fix it on its feature page.

The untouched v3.4.3 config-sample.json imports successfully. Its five incomplete sample sections stay off, for these reasons.

SectionWhy it stays off
anti-raidauto-ban.channel has no alert channel.
broadcast-alertsThe sample event rules have no destination channels.
sync-rolesReusing the same placeholder Role ID makes the sample dependency graph cyclic.
toggle-permsThe legacy user-or-role-id entries do not say whether their target is a member or role.
web-applicationsThe reCAPTCHA values are empty, webhook signing secrets are absent, and paths such as path.to[0].sample-text do not match the supported dot format.

Other incomplete legacy settings behave the same way: they don't reject the whole import, but they can't run until they pass the current checks. Malformed JSON, a mismatched Server ID, and files over 750,000 characters still reject the source.

Run the Import

Only the Owner and Administrators can open Backup and run the import from a browser session.

  1. Select the server in the server menu.
  2. Open Backup under Settings, then select Import….
  3. In Source, choose An older config.json, then select your file of up to 750,000 characters.
  4. Optionally select Turn on features that pass checks, so valid, supported features go on during the import. Leave it clear to review every feature first.
  5. In Settings, compare In the file with Here. Needs attention after import lists features that are imported switched off until you fix them, and Not brought over lists the older data this import leaves out.
  6. Check Review, select Import, and complete Confirm it’s you with your password and authenticator code, when enabled, or a passkey.
  7. Wait for Importing to finish, then select Done.

Export and Import shows the complete wizard and its security model.

Review and Importing

  • Settings — Shows whether the file includes the connection, how many features it brings to the selected server, and what is already here. Imported features that need repairs are listed by display name under Needs attention after import.
  • Needs attention after import — Lists each feature that was imported switched off, and says to fix its settings on the Features page before turning it on.
  • Not brought over — Lists unsupported sections and skipped legacy values with specific labels. Records that always stay local are covered by a note on Review instead.
  • Review — Separately counts features that turn on and features that stay off until fixed. When Turn on features that pass checks is clear, a note confirms that imported features stay off until you turn them on.
  • Importing — Applies the connection and features together, then shows each section as imported.

The database keeps the detailed legacy report, including imported, enabled, invalid, and skipped feature names and the compatibility warnings.

What the Import Replaces

danger

A successful import replaces every feature for the selected server and clears the features the file doesn't contain. It also deletes every secret stored for that server, including secrets you entered on feature pages, and it replaces the Bot Token for the whole appliance when the file contains one.

These writes share one PostgreSQL transaction. If any database write fails, the previous features, secrets, report, and Bot Token remain unchanged.

What Is Dropped

  • Market data — The api-fetch section and its API keys.
  • Twitter and X — The twitter-feeds and x-feeds sections, the settings.twitter credentials, and twitter-account copier destinations.
  • Copier rules without destinations — A copier rule left with no destination after Twitter destinations are removed.
  • Unknown sections — Top-level sections that don't match a feature, which the report lists under Sections skipped.
  • Unknown keys — Keys a feature doesn't use, which stay in the stored settings but don't appear in the form, where they do nothing.
  • Legacy settings — settings.log-level is dropped, while prefix command settings such as base-commands stay in the stored settings, hidden from the form, and do nothing.

Secrets

The import moves these values into encrypted secrets for the selected server.

The Invite Page

The import doesn't read invites.ejs any more, so a customized template doesn't carry over. The invite path, the invite limits, and the reCAPTCHA keys from web-applications do import.

To bring a customized page across, open Features, select Web applications, and set the invite page's title, description, button, footer, colors, logo, and banner, as described in Web Applications.

After Importing

  1. Open each feature listed under Needs attention and fix the fields its page marks.
  2. Enter any secret that was empty in the file.
  3. Turn the features on one at a time, if you left Turn on features that pass checks off.
  4. Check the configuration issues on the Overview page after each change, and the Web log for web applications.

Twitter and X

The rewrite has no Twitter or X integration. The import skips those sections and credentials without storing them, and the Feature Matrix lists every other change.