> ## Documentation Index
> Fetch the complete documentation index at: https://restorecord.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Invalid OAuth2 Secret

> Step-by-step guide to update your Application/Bot's OAuth2 secret.

# Updating OAuth2 Secret for RestoreCord

If you're facing issues with your bot's integration or need to reset your OAuth2 secret, this guide will assist you through the process. Resetting your OAuth2 secret is often necessary to fix connection and permission issues.

<Steps>
  <Step title="Verifying the Correct Bot on Discord Developer Portal">
    Begin by confirming you're updating the correct bot:

    1. Open your web browser and navigate to [Discord Developer Portal](https://discord.com/developers/applications).
    2. Log in with your Discord credentials.
    3. Click on "Applications" and select your Application/Bot.
    4. Verify that the "Client ID" in Discord matches the one in RestoreCord's settings.

    Ensuring the Client ID matches confirms you're editing the correct bot.
  </Step>

  <Step title="Resetting the OAuth2 Secret">
    The OAuth2 secret is essential for secure communication between your bot and Discord. To reset it:

    1. In your Application's dashboard, click on "OAuth2" in the sidebar.
    2. Navigate to the "Client Secret" section.
    3. Click "Reset Secret" and confirm if prompted.

    <Frame>
      <img src="https://mintlify.s3-us-west-1.amazonaws.com/restorecord/images/reset-oauth2-secret.png" />
    </Frame>

    Note: Resetting the secret immediately revokes the old one.
  </Step>

  <Step title="Updating Secret on RestoreCord">
    Next, update the secret in RestoreCord:

    1. Copy the new secret from the Discord Developer Portal.
    2. Go to the [RestoreCord Bot Dashboard](https://restr.co/bots).
    3. Access your bot's settings.
    4. Paste the new secret and save the changes.

    This step reconnects your bot with updated credentials.
  </Step>
</Steps>

<Tip>Remember, it may take up to an hour for the changes to fully update. If you still encounter issues after this period, please contact us on [**Discord**](https://restr.co/discord) or visit the [RestoreCord Community Forum](https://community.restorecord.com) for further assistance.</Tip>
