Skip to content

Commit

Permalink
content -> entity
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyPettersson85 committed Jun 13, 2024
1 parent 5e69c6f commit 934c8b8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1581,20 +1581,16 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
async flag(
userID: string,
flaggedUserID: string,
contentType: string,
contentID: string,
entityType: string,
entityID: string,
reason: string,
content: Record<string, unknown> = {},
options: Record<string, unknown> = {},
) {
return await this.post<{ item_id: string } & APIResponse>(this.baseURL + '/api/v2/moderation/flag', {
user_id: userID,
flagged_user_id: flaggedUserID,
content_type: contentType,
content_id: contentID,
entity_type: entityType,
entity_id: entityID,
reason,
content,
options,
});
}

Expand Down

0 comments on commit 934c8b8

Please sign in to comment.