5Stack Discord Bot
5Stack includes a Discord bot that can be used to manage your server and provide additional functionality.
Guide
First, you need to create a new application in the Discord Developer Portal.
New Application
Installation Tab
Only allow Guild Installs and set Intsall link to
none
Oauth Tab
- Update the Redirect URL to your
WEB_DOMAIN
URL, which can be found inINSTALL_DIR/base/properties/api-config.env
. - Update the
INSTALL_DIR/base/secrets/discord-secrets.env
, you need to update both theDISCORD_CLIENT_ID
andDISCORD_CLIENT_SECRET
.
- Update the Redirect URL to your
Bot Tab
- You will need to reset the bot token to get a new one.
In the file
INSTALL_DIR/base/secrets/discord-secrets.env
, you need to update theDISCORD_BOT_TOKEN
.- Disable Public Bot
Update the Panel
See Update Guide for instructions on updating the panel.
- Invite the Bot to your Server
The Discord Bot can only be invited to a server by an administrator, and it can be accessed at the WEB_DOMAIN
URL: https://<WEB_DOMAIN>/discord-bot
.