Skip to content

Discord integration

Tommaso Ornato edited this page Sep 7, 2023 · 2 revisions

This feature is built for instances with restricted applications. That is, instances that require potential users to fill out a questionnaire and only allow access once an administrator has reviewed the users' answers and approved their application.

Examples of instances with such a sign up process include:

In order to expedite the process and quickly notify the instance's admin team, the AutoMod is capable of sending a Discord notification through a webhook.

As specified in the Installation page, this feature will only be active if a DISCORD_WEBHOOK_URL environment variable has been set during the installation process.

Configuration

Discord

Move to a server where you'd like to enable the integration and where you have administration permissions. Open the server's settings.

immagine

Click on "Integrations" > "Webhooks"

immagine

Create a new webhook and copy its URL by pressing the button. If you want to, you can customize the webhook's image.

immagine

AutoMod

Set the webhook's URL as the DISCORD_WEBHOOK_URL environment variable. If this has been done on an existing installation remember to restart the container or restart the Node process.

Result

The resulting messages will look like this. The bot will change its name to that of the applying user, the embed's message will be the user's answer to the application questionnaire.

immagine