Skip to content

Discord Module Installation

This guide will walk you through setting up the Discord Module for Zenith-Mod, from creating a Discord application to configuring the bot.

  • Zenith-Mod plugin installed and configured
  • Discord server with appropriate permissions
  • Access to Discord Developer Portal
  • Basic understanding of Discord bot setup
  1. Go to Discord Developer Portal
  2. Log in with your Discord account
  3. Click “New Application”
  1. Application Name: Enter a name for your bot (e.g., “Zenith-Mod Bot”)
  2. Description: Optional description
  3. Click “Create”
  1. Navigate to the “Bot” section in the left sidebar
  2. Click “Add Bot”
  3. Confirm by clicking “Yes, do it!”
  1. In the “Bot” section, find “Token”
  2. Click “Copy” to copy the bot token
  3. ⚠️ Keep this token secret! Never share it publicly
  1. Scroll down to “Privileged Gateway Intents”
  2. Enable the following intents:
    • Server Members Intent (Required for role checking)
    • Message Content Intent (Required for slash commands)
    • Guild Members Intent (Required for member information)

⚠️ Important: These intents are REQUIRED for the Discord Module to function properly:

IntentRequiredPurpose
Server Members Intent✅ YesCheck user roles and permissions
Message Content Intent✅ YesProcess slash commands
Guild Members Intent✅ YesAccess member information

How to enable:

  1. Go to “Bot” section in Discord Developer Portal
  2. Scroll down to “Privileged Gateway Intents”
  3. Toggle ON all three intents listed above
  4. Click “Save Changes”
  1. Username: Set a custom bot username
  2. Avatar: Upload a custom bot avatar
  3. Description: Add a bot description
  1. Navigate to “OAuth2”“URL Generator”
  2. Select “bot” in the “Scopes” section
  3. Select the following “Bot Permissions”:
    • Adminstrator
  1. Copy the generated URL at the bottom
  2. Open the URL in your browser
  3. Select your Discord server
  4. Click “Authorize”
  5. Complete any CAPTCHA if prompted
modules/discord/discord-bot.yml
enabled: true
modules/discord/discord-bot.yml
bot:
token: "YOUR_BOT_TOKEN_HERE"
modules/discord/discord-bot.yml
bot:
status: "online" # online, idle, dnd, invisible
activity:
enabled: true
type: "WATCHING" # PLAYING, STREAMING, LISTENING, WATCHING
text: "Zenith-Mod Server"
modules/discord/channels.yml
enabled: true
channels:
kick_log: "CHANNEL_ID"
ban_log: "CHANNEL_ID"
unban_log: "CHANNEL_ID"
mute_log: "CHANNEL_ID"
unmute_log: "CHANNEL_ID"
warn_log: "CHANNEL_ID"
  1. Restart your Minecraft server
  2. Or use the in-game command: /dcbot start
  1. Run: /dcbot register
  2. Wait for confirmation message
  3. Commands should appear in Discord within a few minutes
  1. Check Discord for the bot’s online status
  2. Try using a slash command (e.g., /getinfo)
  3. Check server console for any error messages
modules/discord/discord-bot.yml
Permissions:
GetInfo: ["ROLE_ID_1", "ROLE_ID_2"]
Notes:
List: ["ROLE_ID_1", "ROLE_ID_2"]
Add: ["ROLE_ID_1"]
Remove: ["ROLE_ID_1"]
Clear: ["ROLE_ID_1"]
Search: ["ROLE_ID_1", "ROLE_ID_2"]
# ... more permissions
  1. Enable Developer Mode in Discord:
    • User Settings → Advanced → Developer Mode
  2. Right-click on a role → “Copy ID”
  3. Use these IDs in the configuration
  • Discord application created
  • Bot added to server
  • Bot token configured
  • Required permissions granted
  • Log channels configured
  • Bot started successfully
  • Slash commands registered
  • Role permissions set up
  • Test command works
  • Check if bot token is correct
  • Verify bot has proper permissions
  • Check server console for errors
  • Run /dcbot register to register commands
  • Wait a few minutes for Discord to update
  • Check role permissions
  • Verify role IDs are correct
  • Check if user has required roles
  • Ensure role IDs are not role names

Next Steps: Learn about Discord Commands to start using the bot!