stream-chat-js icon indicating copy to clipboard operation
stream-chat-js copied to clipboard

feat: moderation v2 endpoints under client.moderation

Open vishalnarkhede opened this issue 1 year ago • 1 comments

CLA

  • [ ] I have signed the Stream CLA (required).
  • [ ] Code changes are tested

Description of the changes, What, Why and How?

  • https://stream-io.atlassian.net/browse/PBE-5101
  • https://getstream.slack.com/archives/CE5N802GP/p1719839445504719

Changelog

All the moderation v2 endpoints have been moved to client.moderation umbrella. Basically if you want to use moderation v2 flagging:

await client.moderation.flagUser(...)
await client.moderation.flagMessage(...)
await client.moderation.muteUser(...)
await client.moderation.queryReviewQueue(...)

vishalnarkhede avatar Jul 04 '24 19:07 vishalnarkhede