Chat / JavaScript
Chat JavaScript v4
Chat JavaScript
Chat
JavaScript
Home
/
Chat
/
JavaScript
/
User
This is the new Docs for Chat SDK v4 for JavaScript. To see the previous Docs, click here.

Retrieve a list of banned users

You can create a query to get a list of banned users in both open and group channels. This query is only available for users who are registered as channel operators.

const query = channel.createBannedUserListQuery();
const bannedUsers = await query.next();