AuthRestore
iHorizon includes in its public version the AuthRestore feature, a homemade alternative to popular tools like RestoreCord or VaultCord.
AuthRestore allows you to restore your former members in case of mass bans or any other situation causing significant member loss on your server. iHorizon uses the "Join servers for you" permission to add these members to your server.
AuthRestore uses a unique 24-character key composed of numbers and uppercase and lowercase letters to protect your AuthRestore data. Keep it secret: whoever holds it can add your verified members to any server where iHorizon is.
Full guide
What members agree to, how the key changes, and how AuthRestore and a backup bring a nuked server back: AuthRestore in the Disaster recovery guide.
For more information on AuthRestore commands, please consult our command search engine available at: https://www.ihorizon.org/search
AuthRestore does not restore your members without their consent
AuthRestore can only restore your members with their consent. You must run the /authrestore set command, which will add a button to an existing embed of your choice. Your members will need to click this button to link their account to iHorizon.
/authrestore
Do the same thing as authrestore with link verification button under iHorizon message
Subcommands
/authrestore set— Set the current message for AuthRestore button/authrestore delete— Delete the AuthRestore module button/authrestore get— Get all informations about the AuthRestore module of the guild/authrestore force-join— Force all members of your AuthRestore module to join the guild/authrestore roles— Set new roles for the AuthRestore module
/authrestore set <channel> <message_id> <role>
Set the current message for AuthRestore button
| Option | Type | Required | Description | Choices |
|---|---|---|---|---|
channel |
Channel | Yes | The channel where is the message | - |
message_id |
String | Yes | Please copy the identifiant of the message you want to configure | - |
role |
Role | No | The role you want to configure | - |
Requires the Administrator permission
Only members with the Administrator permission can use this command.
This command allows you to inject an AuthRestore verification button into an existing message sent by iHorizon, so that your members can verify themselves with AuthRestore. The role is required: members get it when they verify, so it must be below iHorizon's role, otherwise the verification fails. You receive the key in the reply (only visible to you) and by DM. While the button is up, running the command again is refused ("This server already has an AuthRestore key…"): to get a new key, which replaces the old one, run /authrestore delete first, then /authrestore set. Members already verified are kept.
The embed must be created by you
The AuthRestore verification embed must be created in advance using the built-in Embed creation tool.
You cannot specify a user message ID
Due to Discord API limitations, bots can only add buttons under their own messages. If you specify the ID of a message not from iHorizon, the bot will notify you with an error message:

Example of an AuthRestore verification embed

/authrestore delete
Delete the AuthRestore module button
Requires the Administrator permission
Only members with the Administrator permission can use this command.
This command removes the AuthRestore verification button from your server. iHorizon edits the message the button was attached to, strips the button off it, and forgets which message it was on, so members can no longer verify from it. Your AuthRestore key and the members already verified under it stay intact: they are stored separately from the button, so you can place a new button later with /authrestore set (which gives a new key) or recover those members with /authrestore force-join. If the message or its channel was deleted, the command still forgets it.
/authrestore get <key>
Get all informations about the AuthRestore module of the guild
| Option | Type | Required | Description | Choices |
|---|---|---|---|---|
key |
String | Yes | The private key of your AuthRestore config | - |
Requires the Administrator permission
Only members with the Administrator permission can use this command.
This command allows you to display detailed information about an AuthRestore key: the server, the role, the author, how many times the key was used, the verified members and statistics. The key must be active (the current one) for the bot to return its information. The reply lists your members, so it is only visible to you.

/authrestore force-join <key>
Force all members of your AuthRestore module to join the guild
| Option | Type | Required | Description | Choices |
|---|---|---|---|---|
key |
String | Yes | The private key of your AuthRestore config | - |
Requires the Administrator permission
Only members with the Administrator permission can use this command.
This command allows you to automatically recover and add verified members to your server using your AuthRestore key. Run it on the server the members should join: the key works on any server where iHorizon is, so you can also bring them to a new server if the old one was deleted. Members already on the server are skipped, banned members can't be added, and nobody gets a role back. Large lists are added in batches of 500.
Full guide
Each member added this way is an ordinary arrival for iHorizon: welcome message, join roles, and the captcha and too-new account check too. Switch those gates off for the duration: Invites on arrival.
Your AuthRestore key will be destroyed!
After executing the command, the bot will ask you to confirm the action. By clicking the "Confirm" button, the members linked to the key will be added to the server, and the key will be deleted. The bot will then provide you with a new AuthRestore key (only visible to you, and by DM). If every verified member is already on the server, nothing happens and the key is kept.

/authrestore roles <key> <roles>
Set new roles for the AuthRestore module
| Option | Type | Required | Description | Choices |
|---|---|---|---|---|
key |
String | Yes | The private key of your AuthRestore config | - |
roles |
Role | Yes | The new roles for your AuthRestore config | - |
Requires the Administrator permission
Only members with the Administrator permission can use this command.
This command allows you to set an automatic role to assign to members who verify through AuthRestore (via the button attached to a message). The key must be the one of the server you run it on.