Discord Whitelist

Whitelisting users through Discord.

An important note before doing this... it may take upwards of 24 hours for Discord to recognize your Presence Intent and Server Members Intent toggles. This is normal. Please be patient if your Whitelist doesn't immediately start working. This is completely out of our control.

This covers the simplest way to to setup a whitelist service for your server. This is done through using the built-in Discord Bot that comes with this server framework.

What you are going to need to do is create your very own Discord bot. Visit https://discord.com/developers/applications and then create a New Application.

Click on Bot then select Add Bot.

After creating the bot. Scroll down and turn off Public Bot.

Then turn on Presence Intent as well ass Server Members Intent

You are going to need to get the secret of the bot after creating it.

Then you can import this secret into your .env file.

Create a parameter called DISCORD_BOT and post your Discord Bot Secret inside of it.

Then you need to add the bot to your server.

Select OAuth2 and then tick bot.

Then select the following settings under the scopes group.

Copy and past the URL with permissions and paste it into your browser bar.

This will allow you to add the bot to your server.

After adding the bot to your server you will need to create a single role called whitelist. It can actually be named whatever you want but it just makes it easier to understand what is going on.

I've created the role in the roles section of Discord.

Now I can copy the ID of the role and add it to the parameter in my .env file called WHITELIST_ROLE.

Your last step is to turn on the Discord Bot and Whitelist in the Athena configuration. This can be done inside ./src/core/server/athena/main.ts

These two settings need to be set to true:

Add Two Options to .env

DISCORD_BOT=NzU5MjM4...
WHITELIST_ROLE=80486922...
DISCORD_SERVER_ID=790039623...