Skip to content

Discord Module Configuration

This guide covers all configuration options for the Discord Module, including bot settings, channel configuration, and permission management.

The Discord Module uses two main configuration files:

  • modules/discord/discord-bot.yml - Bot settings and permissions
  • modules/discord/channels.yml - Channel logging configuration
modules/discord/discord-bot.yml
enabled: true
bot:
# Bot Token (keep this secret!)
token: "BOT_TOKEN"
# Bot Status
status: "dnd" # online, idle, dnd, invisible
# Bot Activity
activity:
enabled: true
type: "WATCHING" # PLAYING, STREAMING, LISTENING, WATCHING
text: "Zenith-Mod Server"
StatusDescription
onlineGreen online status
idleYellow idle status
dndRed do not disturb status
invisibleGray invisible status
TypeDescriptionExample
PLAYINGPlaying a game”Playing Minecraft”
STREAMINGStreaming content”Streaming on Twitch”
LISTENINGListening to music”Listening to music”
WATCHINGWatching something”Watching Zenith-Mod Server”
modules/discord/channels.yml
enabled: true
channels:
# Channel for kick logs
kick_log: "CHANNEL_ID"
# Channel for ban logs
ban_log: "CHANNEL_ID"
# Channel for unban logs
unban_log: "CHANNEL_ID"
# Channel for mute logs
mute_log: "CHANNEL_ID"
# Channel for unmute logs
unmute_log: "CHANNEL_ID"
# Channel for warn logs
warn_log: "CHANNEL_ID"
  1. Enable Developer Mode in Discord:
    • User Settings → Advanced → Developer Mode
  2. Right-click on the channel
  3. Select “Copy ID”
  4. Paste the ID into your configuration
modules/discord/channels.yml
embed:
# Show Discord-specific information in embeds
show_discord_info: true
# Show staff avatar in footer for Discord commands
show_discord_staff_avatar: true
# Show target player avatar as thumbnail
show_target_avatar: true
modules/discord/discord-bot.yml
Permissions:
# Basic commands
GetInfo: ["ROLE_ID_1", "ROLE_ID_2"]
Alts: ["ROLE_ID_1", "ROLE_ID_2"]
Case: ["ROLE_ID_1", "ROLE_ID_2"]
# Notes management
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"]
# Alt limit management
AltLimit:
Check: ["ROLE_ID_1", "ROLE_ID_2"]
Set: ["ROLE_ID_1"]
Remove: ["ROLE_ID_1"]
# Moderation commands
Kick: ["ROLE_ID_1", "ROLE_ID_2"]
Warn: ["ROLE_ID_1", "ROLE_ID_2"]
Mute: ["ROLE_ID_1", "ROLE_ID_2"]
Ban: ["ROLE_ID_1", "ROLE_ID_2"]
Unban: ["ROLE_ID_1", "ROLE_ID_2"]
Unmute: ["ROLE_ID_1", "ROLE_ID_2"]
  • Full access to all commands
  • Bot management commands
  • Configuration changes
  • Player information commands
  • Basic moderation commands
  • Notes management
  • Case viewing
  • Read-only commands
  • Basic player information
  • Limited moderation
  1. Enable Developer Mode in Discord
  2. Right-click on the role in the server member list
  3. Select “Copy ID”
  4. Use the ID in your configuration
modules/discord/discord-bot.yml
server:
# Guild ID (optional, for specific server)
guild_id: "GUILD_ID"
# Channel IDs
channels:
general: "CHANNEL_ID"
staff: "CHANNEL_ID"
logs: "CHANNEL_ID"
console: "CHANNEL_ID"
# Role IDs
roles:
staff: "ROLE_ID"
admin: "ROLE_ID"
player: "ROLE_ID"
modules/discord/discord-bot.yml
behavior:
# Auto-register commands on startup
auto_register_commands: true
# Command cooldown (seconds)
command_cooldown: 3
# Maximum command history
max_command_history: 100
# Enable debug logging
debug_mode: false

You can reload the Discord Module configuration without restarting the server:

Terminal window
# In-game command
/dcbot reload
# Or reload entire plugin
/zenith reload

The module validates configuration on startup:

  • Bot token - Must be valid Discord bot token
  • Channel IDs - Must be valid Discord channel IDs
  • Role IDs - Must be valid Discord role IDs
  • Permission structure - Must follow correct format
modules/discord/discord-bot.yml
enabled: true
bot:
token: "YOUR_BOT_TOKEN"
status: "online"
activity:
enabled: true
type: "WATCHING"
text: "Zenith-Mod Server"
Permissions:
GetInfo: ["123456789012345678"]
Notes:
List: ["123456789012345678"]
Add: ["123456789012345678"]
Kick: ["123456789012345678"]
Ban: ["123456789012345678"]
modules/discord/discord-bot.yml
enabled: true
bot:
token: "YOUR_BOT_TOKEN"
status: "dnd"
activity:
enabled: true
type: "PLAYING"
text: "Minecraft with Zenith-Mod"
server:
guild_id: "123456789012345678"
channels:
general: "123456789012345678"
staff: "123456789012345678"
logs: "123456789012345678"
roles:
staff: "123456789012345678"
admin: "123456789012345678"
Permissions:
GetInfo: ["123456789012345678", "123456789012345679"]
Notes:
List: ["123456789012345678", "123456789012345679"]
Add: ["123456789012345678"]
Remove: ["123456789012345678"]
Clear: ["123456789012345678"]
Search: ["123456789012345678", "123456789012345679"]
Alts: ["123456789012345678", "123456789012345679"]
AltLimit:
Check: ["123456789012345678", "123456789012345679"]
Set: ["123456789012345678"]
Remove: ["123456789012345678"]
Kick: ["123456789012345678", "123456789012345679"]
Warn: ["123456789012345678", "123456789012345679"]
Mute: ["123456789012345678", "123456789012345679"]
Ban: ["123456789012345678", "123456789012345679"]
Unban: ["123456789012345678", "123456789012345679"]
Unmute: ["123456789012345678", "123456789012345679"]
Case: ["123456789012345678", "123456789012345679"]
behavior:
auto_register_commands: true
command_cooldown: 2
max_command_history: 50
debug_mode: false

Issue: Bot not starting

  • Check if bot token is valid
  • Verify enabled: true is set
  • Check server console for errors

Issue: Commands not working

  • Verify role IDs are correct
  • Check permission configuration
  • Run /dcbot register to register commands

Issue: Logs not appearing

  • Check channel IDs are correct
  • Verify bot has permission to send messages
  • Check if logging is enabled

Use the in-game command to validate configuration:

Terminal window
/dcbot status

This will show:

  • Bot connection status
  • Configuration validity
  • Permission setup
  • Channel accessibility

Next Steps: Learn about Discord Permissions to secure your bot!