The /ban command is a server moderation tool used to permanently remove a user from the server. This command is restricted to members with the Manage Server permission to prevent abuse.

Usage:

/ban user:<@user> reason:<text> (optional)

Parameters:

  • user (required) – The member to be banned.

  • reason (optional) – A short explanation for the ban (logged if moderation logs are enabled)

Functionality:

  • 🚫 Bans the specified user from the server.

  • 📝 If a reason is provided, it will be included in logs and audit trails.

  • 🔕 Usernames and IDs are handled securely and may be hidden in responses depending on server privacy settings.

  • 🛡️ Cannot be used on members with equal or higher roles than the executor.

Permissions:

  • 🔐 Only users with the Manage Server permission can use this command.

  • ❌ All others will receive a permission error if they attempt to invoke it.

/ban user:@Troublemaker reason:Spamming and ignoring warnings

➡️ The bot confirms the ban, optionally logs it, and notifies the moderator.

We don't have cooldown system to prevent rapid misuse. but soon we will add functionality.