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. Only users registered as channel operators may use the following code.

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