Skip to content

Bot setup

Cyrusbye720 edited this page Jun 6, 2026 · 3 revisions

Bot setup

This page walks you through creating a Discord application and getting a token.

Create the application

  1. Go to https://discord.com/developers/applications and click New Application.
  2. Give it a name and accept the terms.
  3. Open the Bot tab on the left.
  4. Click Add Bot and confirm.
  5. Under Token, click Reset Token and copy the value. This is your bot.token.
  6. Enable the following intents:
    • Server Members Intent
    • Message Content Intent

Invite the bot

  1. Open the OAuth2 → URL Generator tab.
  2. Under Scopes, tick bot and applications.commands.
  3. Under Bot Permissions, tick:
    • Send Messages
    • Embed Links
    • Attach Files
    • Read Message History
    • Manage Webhooks
    • Manage Channels
    • Manage Roles
    • Use Slash Commands
  4. Copy the generated URL, open it in your browser, and add the bot to your server.

Find your IDs

You need two IDs to put in config.yml:

  • Guild ID: right-click your server icon in Discord (with developer mode on) and choose Copy Server ID.
  • Channel ID: right-click a channel and choose Copy Channel ID.

To enable developer mode: User Settings → Advanced → Developer Mode.

Slash command propagation

After setting bot.guild-id and restarting the server, ZDiscord registers its slash commands with that guild. The change is immediate and does not require Discord's global propagation delay.

To force a re-registration (for example after upgrading the plugin), run /zdiscord reload in-game.


ZDiscord v1.1.0 · Home · Issues · Source

Clone this wiki locally