Slash commandModeration
ban
Ban a member permanently or for a selected duration and record the action as a case.
Usage
/ban <user> <reason> [delete_messages] [file] [duration] [custom-duration]<angle brackets> are required; [square brackets] are optional.
Arguments
The user to ban.
Why the member is being banned. Maximum 512 characters.
How much recent message history Discord should remove.
Default: Don't delete any
Choices:
Don't delete anyPrevious 24 hoursPrevious 48 hoursPrevious 7 daysProof or supporting context for the case.
A predefined temporary-ban duration.
Default: Permanent
Choices:
10 seconds30 minutes1 hour3 hours12 hours1–3 days1 week1 month6 monthsA custom duration such as 1d12h. Overrides the preset when supplied.
Examples
Ban a member permanently and remove one day of messages.
/ban user:@Spammer reason:"Advertising" delete_messages:"Previous 24 hours"Temporarily ban a member for two weeks.
/ban user:@Member reason:"Repeated raids" custom-duration:2w