Skip to content

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.

  1. New Application Create Application

  2. Installation Tab

    Only allow Guild Installs and set Intsall link to none

    Installation Tab

  3. Oauth Tab

    Oauth URL

    • Update the Redirect URL to your WEB_DOMAIN URL, which can be found in INSTALL_DIR/base/properties/api-config.env.
    • Update the INSTALL_DIR/base/secrets/discord-secrets.env, you need to update both the DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET.
  4. Bot Tab

    1. You will need to reset the bot token to get a new one.

    Reset Token

    In the file INSTALL_DIR/base/secrets/discord-secrets.env, you need to update the DISCORD_BOT_TOKEN.

    1. Disable Public Bot

    Public Bot

  5. Update the Panel

See Update Guide for instructions on updating the panel.

  1. 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.