$ban
Bans a user from the server.
Usage
$ban[userID;reason;messages to delete]
- userID - The ID of the user to ban.
- reason - The reason for the ban.
- messages to delete - The number of days to delete messages from this user. Maximum is 7 days, limited by Discord.
Examples
Sucessful ban
Successful ban with no response
Unsucessful ban
Unsuccessful ban with error message
Permissions
Make sure that the bot does have sufficient permission. The bot also needs to be higher in role hierarchy then the user.
Important Note
If any member who can execute the command with this function, they will be able to ban any member below the bot's highest role. Do not place the bot's role above Admin or Head Moderator roles to avoid banning important member.
Related functions: $kick $unban
Function difficulty: Easy
Tags: ban punish member moderation moderator
⏱️ Function Cooldown
This function has a built-in cooldown to help prevent excessive usage.
| Property | Value |
|---|---|
| ⏱️ Duration | 3 minutes |
| 🆔 Tracked By | User |
| 🌐 Scope | Memberuser |
Functions with the same Scope share cooldowns based on the same
Tracked Byvalue.
💎 Tier 3+ servers bypass this cooldown. See Premium Perks.
