Skip to content

Commit 14244fa

Browse files
committed
add delete_messages to submit_action(ban)&ban_user
1 parent 3a7f732 commit 14244fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@ export type BanUserOptions<StreamChatGenerics extends ExtendableGenerics = Defau
970970
ip_ban?: boolean;
971971
reason?: string;
972972
timeout?: number;
973+
delete_messages?: DeleteMessagesOptions;
973974
};
974975

975976
export type ChannelOptions = {
@@ -3508,11 +3509,14 @@ export type CustomCheckFlag = {
35083509
reason?: string;
35093510
};
35103511

3512+
export type DeleteMessagesOptions = 'soft' | 'hard';
3513+
35113514
export type SubmitActionOptions = {
35123515
ban?: {
35133516
channel_ban_only?: boolean;
35143517
reason?: string;
35153518
timeout?: number;
3519+
delete_messages?: DeleteMessagesOptions;
35163520
};
35173521
delete_message?: {
35183522
hard_delete?: boolean;

0 commit comments

Comments
 (0)