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.
/ban user:<@user> reason:<text> (optional)
user
(required) – The member to be banned.
reason
(optional) – A short explanation for the ban (logged if moderation logs are enabled)
🚫 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.
🔐 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.