$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
!!exec $ban[123456789123456789;Spamming;7]
Unsucessful ban
Unsuccessful ban with error message
!!exec $ban[$ownerID;Just a test;0]
❌ bot is missing enough permissions at line 1
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 $isBanned $getBanReason
Function difficulty: Easy
Tags: Ban Punish Member Moderation Moderator
Function Cooldown
This function has built-in cooldown. Why? Read more about cooldowns here.
- Cooldown: 3 minutes
- Tracked By: User
- Type:
memberuser
Functions with the same type share cooldowns based on the same Tracked By value.