1. Create the application & bot
- Go to discord.com/developers/applications.
- Click New Application, name it (e.g. MyServer Queue), accept terms.
- In the left sidebar open Bot.
- Set a profile picture and username for the bot if you want.
- Click Reset Token → Yes, do it → Copy.
- This is your
DiscordBotToken. Paste it somewhere safe immediately — Discord will only show it once.
- This is your
2. Enable the right intents
Still on the Bot page, scroll down to Privileged Gateway Intents and turn on:- ✅ Server Members Intent — required (the bot reads role membership)
- ✅ Presence Intent — optional, only useful for the live-feed online count
If you skip Server Members Intent, the bot will see every player as a non-member of every role — meaning no priority, no tier, and if whitelist is on, no one can join. This is the #1 cause of “everyone is getting kicked” tickets.
3. Invite the bot to your guild
- In the sidebar, open OAuth2 → URL Generator.
- Under Scopes, check
bot. - Under Bot Permissions, check at minimum:
- View Channels
- Send Messages
- Manage Messages (only needed if you use the live feed)
- Read Message History (only needed if you use the live feed)
- Copy the generated URL at the bottom, open it in a browser, pick your guild, Authorize.
4. Turn on Developer Mode (in your own Discord)
You need this to grab IDs from your guild.- Discord → User Settings → Advanced → Developer Mode ON.
5. Collect the IDs you’ll paste into config.lua
You’ll need:
| ID | How to grab it | Goes into |
|---|---|---|
| Guild (server) ID | Right-click your server name → Copy Server ID | Config.Server.DiscordServerID |
| Bot token | From step 1 | Config.Server.DiscordBotToken |
| Channel ID (optional) | Right-click the channel for the live feed → Copy Channel ID | Config.Server.LiveFeedChannelID |
| Role IDs | Server Settings → Roles → right-click each role → Copy Role ID | Config.Tiers, Config.Permissions.PriorityLevels, Config.Permissions.BypassRoles, Config.Whitelist.Roles |
Role IDs are also visible in Server Settings → Roles — hover the ⋯ menu next to a role. Both work.
6. (Optional) Live waitlist channel
If you want the auto-updating queue embed:- Make a channel like
#queue-statusand lock writing to the bot only (so players can’t spam it). - Make sure the bot has View Channel, Send Messages, and Manage Messages there.
- Copy the channel ID and put it in
Config.Server.LiveFeedChannelID. - In
Config.Server, leaveEnableLiveFeed = true.
7. Done
Head back to Installation — Step 4 to paste these intoconfig.lua. The full mapping of every config key lives in Configuration.
Security checklist
- ❗ Never commit
config.luato a public GitHub repo with the token in it. - ❗ Never paste the token in a Discord ticket or screenshot. Treat it like a password.
- If you ever think the token leaked, return to Discord Developer Portal → Bot → Reset Token and update
config.lua. - The token is server-side only — it is never sent to FiveM clients.

