Self-hosted Discord integration
In order to connect Discord, you will need to create a Discord bot and install it in your guild.
- To create a box, head to the Discord developer portal and click on New Application, in the top-right corner.
- Enter the name for your application, such as crowd.dev - {your-community}.
- On the left-side panel, click on Bot, and then Add Bot. It will warn you that the action is irreversible; this only means that your application will not be able to exist without a bot anymore. Please ignore this warning to continue.
- If the token is not shown, please click on Reset Token to get a new one.

- Copy the token and add it as your
DISCORD_TOKEN
token in your environment variables. - Head to OAuth2 -> General on the left-side panel, and click on Add Redirect to configure your Redirect URL.

- Add two URLs here:
https://{YOUR-FRONTEND-URL}/integrations?source=discord
(optional)https://localhost/integrations?source=discord
- Click Save Changes on the bottom before leaving the page.
- Head to OAuth2 -> URL Generator on the left-side panel.
- For local deployment, select the
localhost
URL from the dropdown of available URLs, and copy the following settings:

- Once done, copy the generated URL and paste it into your
frontend/.env.override.local -> VUE_APP_DISCORD_INSTALLATION_URL
environment variable.
To get a production URL, repeat steps 10 and 11, selecting your production URL and making sure that the environment variable is available when services start.
Now you can set up your Discord integration through crowd.dev! For more information on how to set up the integration, see Discord integration.
Updated 4 months ago