LogoAntiRaid

Ban Command

Guide on how to ban users from your Discord server

Introduction

The ban command allows moderators to permanently ban users from the server. Banned users will not be able to rejoin the server unless they are unbanned.

Usage

This command can be used by users with the "moderation.ban" permission by running /moderation ban

Image

Response

When a ban is successfully applied, you'll receive confirmation with the following information:

FieldDescription
TargetThe user who was banned
ReasonThe reason provided for the ban
ModeratorWho issued the ban

Customization options

PropTypeDefault
user
string
-
reason?
string
No reason provided
delete_messages_days?
number
-
delete_message_seconds?
boolean

Steps to ban a user

Identify the user

Make sure you have the correct user you want to ban

Run the ban command

Use /moderation ban user:@username with any desired options

Provide a reason

It's recommended to always provide a reason for moderation actions

Verify the ban

Check that the user has been successfully banned

Important Notes

  • Bans are logged in the server's moderation logs
  • Users can be banned even if they're not currently in the server
  • Banned users will see a "You are banned" message when trying to join
  • Server owners cannot be banned

Last updated on