Skip to content

Commit 8b9e746

Browse files
committed
Add mentioned_channel field
Add push_level to channel types
1 parent db35cb0 commit 8b9e746

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ export type MessageResponseBase = MessageBase & {
743743
latest_reactions?: ReactionResponse[];
744744
member?: ChannelMemberResponse;
745745
mentioned_users?: UserResponse[];
746+
mentioned_channel?: boolean;
746747
message_text_updated_at?: string;
747748
moderation?: ModerationResponse; // present only with Moderation v2
748749
moderation_details?: ModerationDetailsResponse; // present only with Moderation v1
@@ -1110,6 +1111,7 @@ export type CreateChannelOptions = {
11101111
url_enrichment?: boolean;
11111112
user_message_reminders?: boolean;
11121113
count_messages?: boolean;
1114+
push_level?: 'all' | 'all_mentions' | 'direct_mentions' | 'mentions' | 'none';
11131115
};
11141116

11151117
export type CreateCommandOptions = {
@@ -1217,7 +1219,8 @@ export type UpdateChannelTypeRequest =
12171219
uploads?: boolean;
12181220
url_enrichment?: boolean;
12191221
count_messages?: boolean;
1220-
};
1222+
push_level?: 'all' | 'all_mentions' | 'direct_mentions' | 'mentions' | 'none';
1223+
};
12211224

12221225
export type UpdateChannelTypeResponse = {
12231226
automod: Automod;
@@ -1258,6 +1261,7 @@ export type UpdateChannelTypeResponse = {
12581261
partition_ttl?: string;
12591262
count_messages?: boolean;
12601263
user_message_reminders?: boolean;
1264+
push_level?: string;
12611265
};
12621266

12631267
export type GetChannelTypeResponse = {
@@ -1299,6 +1303,7 @@ export type GetChannelTypeResponse = {
12991303
partition_ttl?: string;
13001304
count_messages?: boolean;
13011305
user_message_reminders?: boolean;
1306+
push_level?: string;
13021307
};
13031308

13041309
export type UpdateChannelOptions = Partial<{
@@ -2848,6 +2853,7 @@ export type Message = Partial<
28482853
MessageBase & {
28492854
mentioned_users: string[];
28502855
shared_location?: StaticLocationPayload | LiveLocationPayload;
2856+
mentioned_channel?: boolean;
28512857
}
28522858
>;
28532859

0 commit comments

Comments
 (0)