File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3694,15 +3694,15 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
3694
3694
* updateFlags - reviews/unflags flagged message
3695
3695
*
3696
3696
* @param {string[] } message_ids list of message IDs
3697
- * @param {string } user_id user ID is set to review all the flagged messages by the user
3697
+ * @param {string } options Option object in case user ID is set to review all the flagged messages by the user
3698
3698
* @param {string } reviewed_by user ID who reviewed the flagged message
3699
3699
* @returns {APIResponse }
3700
3700
*/
3701
- async updateFlags ( message_ids : string [ ] , user_id : string , reviewed_by : string ) {
3701
+ async updateFlags ( message_ids : string [ ] , reviewed_by : string , options : { user_id ?: string } = { } ) {
3702
3702
return await this . post < APIResponse > ( this . baseURL + '/automod/v1/moderation/update_flags' , {
3703
3703
message_ids,
3704
- user_id,
3705
3704
reviewed_by,
3705
+ ...options
3706
3706
} ) ;
3707
3707
}
3708
3708
}
You can’t perform that action at this time.
0 commit comments