A plugin for Allow Listing on Discord when Authenticating with the Athena Framework's Discord Login compatible with 4.0.0
of the Athena Framework.
- Ensures a user is in your Discord.
- Ensures a user has an allow list role.
A user who is not in your Discord Server is considered banned.
- Open a command prompt in your main Athena Directory.
- Navigate to the plugins folder.
cd src/core/plugins
- Copy the command below.
SSH
git clone git@github.com:Athena-Roleplay-Framework/athena-plugin-discord-allow-list.git
HTTPS
git clone https://github.com/Athena-Roleplay-Framework/athena-plugin-discord-allow-list
- Navigate into
src/core/plugins/athena-plugin-discord-allow-list/src
- Open the
config.ts
file. - Fill in the information in the configuration including IDs for roles to allow list.
All the information can be obtained from https://discord.com/developers/applications
- You need to create a bot.
- You need to copy the bot's token and put it into the configuration.
- You need to copy the Discord Guild Identifier. Which can be obtained in developer mode on Discord. Google it.
- Turn off public bot, Turn on
SERVER MEMBERS INTENT
andPRESENCE INTENT
in the bot settings. - Ensure the bot is in your Discord Server
- Start the server, watch for any warnings.
- If no warnings then the plugin was configured successfully.