Invite the Bot
Learn how to invite Trexz to your Discord server and configure the required permissions.
To ensure Trexz can protect your server and execute moderation actions without interference, follow this setup walkthrough.
Quick Invite Links
Step-by-Step Authorization
Open the Official OAuth2 Invite Link
Click the authorization link above. Select the Discord server you own or have Manage Server / Administrator permissions in.
Verify Bot Permissions
We recommend granting the Administrator permission for seamless operation of the Antinuke and Moderation systems. If you prefer granular permissions, ensure the following are enabled:
- Manage Roles (Required to assign rewards, mute users, and quarantine malicious accounts)
- Manage Channels (Required for ticket creation, channel lockdown, and J2C voice lobbies)
- Kick & Ban Members (Required for Antinuke auto-punishments and moderation commands)
- View Audit Log (Required for Antinuke to trace malicious actions to specific culprits)
- Send Messages & Embed Links (Required to send command responses, embeds, and buttons)
Complete the Discord Verification
Solve the Discord CAPTCHA. Trexz will join your server within seconds and automatically generate default database records.
Configure Role Hierarchy (Critical)
In your Discord Server Settings → Roles:
- Locate the Trexz integration role.
- Drag the Trexz role as high as possible in the role list (directly below Server Owner / Administrator roles).
Role Hierarchy Rule: Discord does not permit any bot to moderate, ban, or modify roles of members whose highest role is equal to or higher than the bot's highest role. If Trexz is below a moderator role, it cannot ban or quarantine that moderator if their account gets compromised.
Permission Summary Table
| Permission | Category | Why It's Needed |
|---|---|---|
Administrator | Full Access | Ensures 100% features work without channel overrides blocking actions. |
View Audit Log | Security | Essential for Antinuke to detect who deleted a channel, banned a member, or added a bot. |
Manage Roles | Moderation & Roles | Needed to revoke roles, apply quarantine, assign self-roles, and reward level roles. |
Manage Channels | Utility & J2C | Needed to create temporary Join to Create channels and support ticket rooms. |
Kick & Ban Members | Moderation | Needed to execute ?ban, ?kick, ?softban, and auto-punish nukers. |
Manage Messages | AutoMod | Needed for ?purge, deleting spam links, and mass-mention suppression. |