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

PropTypeDescription
user
string
The user to ban (mention or ID)
reason?
string
The reason for the ban
delete_messages_days?
number
Whether to delete the user's recent messages day wise
delete_message_seconds?
boolean
hether to delete the user's recent messages seconds wise

Steps to ban a user

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