Realtime chat ban description and timeout

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)

1 Like

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

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.