January 19, 2026
Auto Role System for Discord Bot (Users & Bots) | discord.js
This Auto Role System automatically assigns roles to new members when they join your Discord server.
✨ Features:
Automatically gives a role to normal users
Automatically gives a different role to bots
Clean and beginner-friendly code
Built using discord.js
Easy to configure (just change role IDs)
Perfect for moderation & server management
📌 How it works:
When a member joins the server, the bot checks:
If the member is a bot → assigns the bot role
If the member is a user → assigns the user role
Errors are safely handled to avoid crashes
🛠️ Use Cases:
Auto-verify users
Separate bot & user permissions
Clean role management for large servers
🎁 Available for free Patreon members
Just copy, paste, set your role IDs, and you’re good to go 🚀
Source Code:
