Skip to main content
When someone crosses a line that can’t be walked back, /ban is your final word. Banning removes a member permanently and prevents them from ever rejoining your server — and you can clean up their message history at the same time.

Description

The /ban command permanently bans a member from your server, blocking them from rejoining via any invite link. In addition to removing the member, you can optionally instruct Discord to delete up to 7 days of their message history across all channels — handy for cleaning up spam, harassment, or other content you want wiped quickly. The ban and reason are logged in Burger Bot’s records. Banned users can be reinstated at any time using /unban.

Usage

/ban @username Repeated hate speech after warnings and timeout

Parameters

user
@mention
required
The server member you want to ban. Must be an @mention of a current member of your server.
reason
string
A clear explanation for the ban. This is logged in Burger Bot’s moderation records and displayed to other administrators. Given the severity of a ban, providing a reason is strongly recommended.
delete_messages
number
The number of days of message history to delete for the banned member, across all channels. Accepts a value between 0 and 7.
ValueBehaviour
0No messages deleted (default)
1Delete last 1 day of messages
7Delete last 7 days of messages

Permissions Required

RoleAccess
Administrator or configured Admin role✅ Can ban members
Moderator❌ No access
Regular members❌ No access

Example Usage

Ban a member with a reason:
/ban @ChaosGremlin Repeated hate speech after multiple warnings and a timeout
Ban a member and delete 7 days of messages:
/ban @ChaosGremlin Coordinated spam campaign 7
Ban a member with no message deletion:
/ban @ChaosGremlin Doxxing another member 0
Message deletion via delete_messages is permanent and irreversible. Discord removes those messages from all channels simultaneously. If you’re unsure whether you need to delete messages, start with 0 — you can always use /purge to clean up specific channels afterward.
Need to ban someone who has already left your server? You can ban users by their Discord User ID directly from your server’s ban list in Discord’s Server Settings — Burger Bot’s /unban command also accepts User IDs, so you can add and remove bans for users who aren’t currently in your server.