Tickets
1. Configure Settings
Inside BB’s library you will see settings.js.
Update the ticketAccess array with the role IDs that should
have access to support tickets.
How to get a Role ID
- Right-click your server on the left-hand side
- Click Server Settings
Right-click your server → Open Server Settings
- Click Roles
Navigate to the Roles section
- Select the role you want to allow ticket access
Select the appropriate support/mod role
- Click the three dots (…)
- Select Copy Role ID
Copy the Role ID (Developer Mode must be enabled)
2. Paste the Role IDs
Inside settings.js add your copied role IDs into the array:
settings.js — ticketAccess
let ticketAccess = [ '123456789012345678', '987654321098765432' ];
Add as many roles as needed.
3. Link & Run
Import and initialise the ticket system in your bot:
JavaScript
const { discordTickets } = require('./node_modules/bb-dbotbits/discordTickets.js');
discordTickets();
Needed Permissions
It is recommended that the bot has an Admin or appropriate Moderator role to properly manage channels, permissions, and user access.
Continue to XP System.