Skip to content

Commit

Permalink
feat: extend SendMessage to server-side moderation API (GetStream#1094)
Browse files Browse the repository at this point in the history
Add force_moderation option field on sendMessage() request

Add changelog and params
  • Loading branch information
viktorapo808 committed Feb 9, 2023
1 parent b7936ed commit f93d8bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@ export class Channel<StreamChatGenerics extends ExtendableGenerics = DefaultGene
* @param {boolean} [options.skip_push] Skip sending push notifications
* @param {boolean} [options.is_pending_message] Make this message pending
* @param {Record<string,string>} [options.pending_message_metadata] Metadata for the pending message
* @param {boolean} [options.force_moderation] Apply force moderation for server-side requests
*
* @return {Promise<SendMessageAPIResponse<StreamChatGenerics>>} The Server Response
*/
async sendMessage(
message: Message<StreamChatGenerics>,
options?: {
force_moderation?: boolean;
is_pending_message?: boolean;
pending_message_metadata?: Record<string, string>;
skip_enrich_url?: boolean;
Expand Down

0 comments on commit f93d8bf

Please sign in to comment.