Skip to content

Commit d04fade

Browse files
authored
feat: support members_template property for campaigns (#1647)
## CLA - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required). - [ ] Code changes are tested ## Description of the changes, What, Why and How? The campaign API recently added support for a new property members_template that can be used as an alternative to members. Its benefit is that the client is also able to define the channel role and custom data for members that are added to newly created channels for campaigns. ## Changelog - feat: support members_template property for campaigns
1 parent 3c75c12 commit d04fade

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,6 +3155,11 @@ export type CampaignData = {
31553155
custom?: {};
31563156
id?: string;
31573157
members?: string[];
3158+
members_template?: Array<{
3159+
user_id: string;
3160+
channel_role?: string;
3161+
custom?: Record<string, unknown>;
3162+
}>;
31583163
team?: string;
31593164
};
31603165
create_channels?: boolean;

0 commit comments

Comments
 (0)