Skip to main content
Chatbot

Ban

A ban removes a user from a chat, server or group and prevents them from rejoining until they are unbanned, usually as part of moderation.

Oct 6, 2026
5 min read
Conferbot Team

Key Takeaways

  • A ban removes a member and blocks them from rejoining; a kick only removes them.
  • Bots can ban through the platform API if they hold the right permission and sit above the target in the role order.
  • Discord returns error 40007 when a banned user is added back; Telegram uses banChatMember and unbanChatMember.
  • Use bans for clear abuse and pair them with logs, appeals and softer tools like timeouts.

What Is a Ban?

A ban removes a user from a chat community - a Discord server, a Telegram group, a Slack workspace - and stops them from coming back until someone lifts it. It differs from a kick, which removes a member who can rejoin straight away, and from a timeout or mute, which keeps them in but silences them for a while.

How Bans Work on Each Platform

PlatformHow a bot bansNotes
DiscordCreate a guild ban for the userNeeds the Ban Members permission and a role above the target. Adding a banned user back fails with error 40007.
TelegrambanChatMember, reversed with unbanChatMemberThe bot must be an administrator with the right to ban users.
SlackWorkspace admins deactivate accountsBots usually remove people from channels rather than ban them.
WhatsAppUsers block numbersA business cannot ban customers; it can stop replying or end the conversation.

On Discord, moderation actions such as bans can also require two-factor authentication on the bot owner's account when the server enforces it. The Discord permissions calculator shows which permissions a bot was invited with.

Good Moderation Practice

  • Reserve bans for clear abuse, spam and raids; use timeouts for heat-of-the-moment problems.
  • Log every ban with who issued it and why, so mistakes can be reviewed.
  • Offer an appeal route outside the banned space.
  • Let an automated bot flag and act on obvious spam, but keep a human in the loop for judgement calls.

More on running a healthy server with bots is in our guide to Discord community bots.

Frequently Asked Questions

What does it mean to be banned in a chat?
It means a moderator or bot removed you from that server, group or workspace and blocked you from rejoining. You usually cannot see its messages or invite links work for you until a moderator unbans you. A ban applies only to that community, not to your account on the platform as a whole.
What is the difference between a ban, a kick and a timeout?
A kick removes someone who can rejoin immediately, a timeout or mute keeps them in the chat but stops them talking for a set time, and a ban removes them and prevents them from coming back until it is lifted. Most communities escalate from timeout to kick to ban.
What does 'the user is banned from this guild' mean?
It is Discord error 40007, returned when a bot or app tries to add a member to a server they are banned from. Unban the user first with the guild ban endpoint, or ask a moderator to lift the ban in Server Settings, then try adding them again.
How does a Telegram bot ban a user?
Make the bot an administrator with permission to ban users, then call banChatMember with the chat id and user id. To let them back, call unbanChatMember. Bots cannot ban in private chats, only in groups, supergroups and channels where they have admin rights.
Can a chatbot ban people automatically?
Yes, a moderation bot can ban automatically on clear signals such as spam links or raid patterns, provided it has the permission. Keep automatic bans for unambiguous cases, log them, and route borderline cases to a human moderator to avoid banning legitimate members.
🚀See Ban in a Real Chatbot

Build it yourself - free plan, no credit card required.

See Telegram chatbots on Conferbot →

Omnichannel Platform

One Chatbot,
Every Channel

Your chatbot works seamlessly across WhatsApp, Messenger, Slack, and 6 more platforms. Build once, deploy everywhere.

View All Channels
Conferbot
online
Hi! How can I help you today?
I need pricing info
Conferbot
Active now
Welcome! What are you looking for?
Book a demo
Sure! Pick a time slot:
#support
Conferbot
New ticket from Sarah: "Can't access dashboard"
Auto-resolved. Password reset link sent.
Free Chatbot Templates

Ready to Build Your
Chatbot?

Browse free templates for every industry and deploy in minutes. No coding required.

100% Free
No Code
2-Min Setup
Lead Generation
Capture & qualify leads
Customer Support
24/7 automated help
E-commerce
Boost online sales