-
Notifications
You must be signed in to change notification settings - Fork 1
Bot setup
Cyrusbye720 edited this page Jun 6, 2026
·
3 revisions
This page walks you through creating a Discord application and getting a token.
- Go to https://discord.com/developers/applications and click New Application.
- Give it a name and accept the terms.
- Open the Bot tab on the left.
- Click Add Bot and confirm.
- Under Token, click Reset Token and copy the value. This is your
bot.token. - Enable the following intents:
- Server Members Intent
- Message Content Intent
- Open the OAuth2 → URL Generator tab.
- Under Scopes, tick
botandapplications.commands. - Under Bot Permissions, tick:
- Send Messages
- Embed Links
- Attach Files
- Read Message History
- Manage Webhooks
- Manage Channels
- Manage Roles
- Use Slash Commands
- Copy the generated URL, open it in your browser, and add the bot to your server.
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.
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.