/ SDKs / JavaScript
Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
Version 4

Retrieve a list of banned users

Copy link

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();