# Realtime chat ban description and timeout

**URL:** <https://forum.heroiclabs.com/t/realtime-chat-ban-description-and-timeout/2390>\
**Category:** Game Design\
**Created:** [February 22, 2022, 5:22pm UTC](https://forum.heroiclabs.com/t/realtime-chat-ban-description-and-timeout/2390 "2022-02-22T17:22:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![formatCvt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/formatcvt/32/1127_2.png) [@formatCvt](https://forum.heroiclabs.com/u/formatCvt)\
**Post date:** [February 22, 2022, 5:22pm UTC](https://forum.heroiclabs.com/t/realtime-chat-ban-description-and-timeout/2390/1 "2022-02-22T17:22:44Z")

</div>

Hi everyone!

Is there a way to set user ban text reason (text field with an explanation why user banned in this chat) and user ban timeout (for example auto-unban user after 3 hours)

---

<div class="post-metadata">

**Author:** ![aDu](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@aDu](https://forum.heroiclabs.com/u/aDu)\
**Post date:** [July 27, 2025, 5:26pm UTC](https://forum.heroiclabs.com/t/realtime-chat-ban-description-and-timeout/2390/2 "2025-07-27T17:26:43Z")

</div>

Maybe one has to implement it using user metadata and a chat hook?

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [July 29, 2025, 4:59pm UTC](https://forum.heroiclabs.com/t/realtime-chat-ban-description-and-timeout/2390/3 "2025-07-29T16:59:07Z")

</div>

Hey @formatCvt,

There’s no way to set a custom ban message, currently a built-in notification is sent with code `-8`, I suppose you’d have to implement a custom notification if you’d like to give a specific reason.

There’s also no built in auto-unban, but it should be easy enough to implement with a background worker and by storing a timestamp of when the ban should expire.

Best.

---

<div class="post-metadata">

**Author:** ![formatCvt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/formatcvt/32/1127_2.png) [@formatCvt](https://forum.heroiclabs.com/u/formatCvt)\
**Post date:** [October 9, 2025, 9:46am UTC](https://forum.heroiclabs.com/t/realtime-chat-ban-description-and-timeout/2390/4 "2025-10-09T09:46:40Z")

</div>

@sesposito thanks)
