Create a custom Discord bot for RestoreCord verification
Every RestoreCord server runs on a bot you own. Setting one up takes a few minutes in the Discord Developer Portal, and the dashboard checks each step as you go.
Short answer
Create an application in the Discord Developer Portal, copy the bot token and client secret, add https://restorecord.com/api/callback as an OAuth2 redirect, enable the Server Members and Message Content intents, then paste everything into Add New Bot in the RestoreCord dashboard.
Before you start
Decide which Discord account will own the application. Whoever owns it controls the bot, so RestoreCord recommends a brand-new account made only for this purpose, with two-factor authentication switched on. That way the bot keeps running even if something happens to your main account.
The easiest route is the wizard inside RestoreCord: open Bots in the dashboard and choose Add New Bot. It moves through four stages and validates your token and secret against Discord in real time. Here is what each stage asks for:
| Wizard stage | What you do |
|---|---|
| Intro | Confirm you made a separate account, enabled 2FA and will follow Discord's rules |
| Create | Make the application in the Developer Portal, with the guide open beside you |
| Info | Paste the bot token, client ID and client secret |
| Review | Check the details RestoreCord fetched from Discord and finish |
1. Create the application
In the Discord Developer Portal, click New Application. The name you choose becomes the name members see when they verify, so use your server's name or something close to it. Upload an avatar while you're here, and leave the Public Bot switch on so the bot can be invited to your server.
2. Get the bot token
Open the Bot page, create the bot user if Discord asks, then copy or reset the token. Treat it exactly like a password: anyone holding it can act as your bot. Never share it publicly or commit it to a code repository.
Turn on the intents
On the same page, enable Server Members Intent and Message Content Intent. Without them Discord rejects the bot's gateway intents and it runs without member events, which is the single most common reason a fresh bot misbehaves.
3. Copy the client secret
Go to OAuth2 and copy the client secret. RestoreCord uses it for the OAuth2 step of verification, which is what lets members be restored later.
4. Add the redirect URL
Still under OAuth2, add this redirect and save:
https://restorecord.com/api/callbackIf you add a custom domain later, the callback becomes your domain plus /api/callback. The branding guide explains how to switch without breaking live links.
5. Connect it to RestoreCord
Paste the token and secret into the wizard. A green ring means Discord accepted them. Finish the wizard, invite the bot when it shows up in your bot list, and add your server. Slash commands load automatically, so there's nothing to register by hand.
Bot Credentials
Sensitive information used to authenticate your bot
Valid Redirect URL
The wizard asks you to acknowledge one thing plainly: if Discord disables or deletes your bot, the members it holds go with it. That's why the separate owner account matters more than any other step.
Test it like a new member
Before you announce anything, ask a staff member who hasn't verified yet, or use a second account, to go through the flow once. Check that the verify page loads, the authorization screen shows your bot's name, and the verified role arrives. If the role doesn't appear, the bot role almost always sits below the verify role in your server settings.
How many bots you can run
- Free: 1 custom bot
- Premium: 5 custom bots
- Business: 25 custom bots
- Enterprise: 50 custom bots
Something already red on the bot card? Jump to fixing token, intent and redirect errors. Otherwise, lock things down with the bot security guide, or head back to RestoreCord Bot.
The Developer Portal in four steps
Create the application
Open the Discord Developer Portal, click New Application and give it a recognisable name and avatar.
Copy the credentials
Reset or copy the bot token on the Bot page and the client secret on the OAuth2 page.
Register the callback
Under OAuth2, add https://restorecord.com/api/callback and save the change.
Finish the wizard
Paste everything into Add New Bot in RestoreCord, then invite the bot when it appears in your bot list.
Custom bot setup questions
Your bot is a few clicks away
Start the Add New Bot wizard in RestoreCord and verify your first member under your own name.