# Banning Users ## Normal Ban Use the `-ban` command to ban a user, regardless if they are in the server or not. ##### Legacy Command ``` -ban [-d=DAYS] [Reason] ``` **Options**: - `-d`: Specify the how many days old messages to delete. Must be in range of 0-7. Default is - "Don't delete any". ##### Slash Command ``` /ban [days] [reason] ``` ##### Examples ``` -ban @Someone -ban @Someone Spamming a lot -ban @Someone -d 5 Spamming a lot -ban 45643846466843 -ban 45643846466843 Spamming a lot -ban 45643846466843 -d 7 Spamming a lot ``` ## Mass Ban Use the `-massban` command to massban users. ##### Legacy Command ``` -massban <...UserIDs|UserMentions> [Reason] ``` ##### Slash Command ``` /massban <...UserIDs> [days] [reason] ``` !!! note While using slash command, the IDs must be separated with spaces. ##### Examples ``` -massban 23626825621964 217216291276407 -massban 23626825621964 217216291276407 63876523582826865 Raiding the Server -massban 23626825621964 217216291276407 @Someone 36362742746674467 ``` ## Unbanning Use the `-unban` command to unban users. ##### Legacy Command ``` -unban ``` ##### Slash Command ``` /unban ``` ##### Examples ``` -unban 7485692162169 ```