Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(APIThreadChannel): add fields about new message counter capability #532

Merged
merged 2 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion deno/payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export interface APIThreadChannel
*/
thread_metadata?: APIThreadMetadata;
/**
* The approximate message count of the thread, does not count above 50 even if there are more messages
* Count of messages (not including starter message and deleted messages) in a thread, stops counting at 100000 (if the thread is created before July 1, 2022, it stops at 50)
vvito7 marked this conversation as resolved.
Show resolved Hide resolved
*/
message_count?: number;
/**
Expand All @@ -222,6 +222,10 @@ export interface APIThreadChannel
* The id of the last message sent in this thread (may not point to an existing or valid message)
*/
last_message_id?: Snowflake | null;
/**
* Count of total messages ever sent in a thread. Similar to `message_count` on message creation, but decrement on message deletion
vvito7 marked this conversation as resolved.
Show resolved Hide resolved
*/
total_message_sent?: number;
}

export type APIGuildForumChannel = APIGuildTextChannel<ChannelType.GuildForum>;
Expand Down Expand Up @@ -490,6 +494,10 @@ export interface APIMessage {
* @deprecated Use `sticker_items` instead
*/
stickers?: APISticker[];
/**
* Position of the message in a forum post when it was sent, it will not change upon any message deletion in the parent post
*/
position?: number;
}

/**
Expand Down
10 changes: 9 additions & 1 deletion deno/payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export interface APIThreadChannel
*/
thread_metadata?: APIThreadMetadata;
/**
* The approximate message count of the thread, does not count above 50 even if there are more messages
* Count of messages (not including starter message and deleted messages) in a thread, stops counting at 100000 (if the thread is created before July 1, 2022, it stops at 50)
*/
message_count?: number;
/**
Expand All @@ -222,6 +222,10 @@ export interface APIThreadChannel
* The id of the last message sent in this thread (may not point to an existing or valid message)
*/
last_message_id?: Snowflake | null;
/**
* Count of total messages ever sent in a thread. Similar to `message_count` on message creation, but decrement on message deletion
*/
total_message_sent?: number;
}

export type APIGuildForumChannel = APIGuildTextChannel<ChannelType.GuildForum>;
Expand Down Expand Up @@ -490,6 +494,10 @@ export interface APIMessage {
* @deprecated Use `sticker_items` instead
*/
stickers?: APISticker[];
/**
* Position of the message in a forum post when it was sent, it will not change upon any message deletion in the parent post
*/
position?: number;
}

/**
Expand Down
10 changes: 9 additions & 1 deletion payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export interface APIThreadChannel
*/
thread_metadata?: APIThreadMetadata;
/**
* The approximate message count of the thread, does not count above 50 even if there are more messages
* Count of messages (not including starter message and deleted messages) in a thread, stops counting at 100000 (if the thread is created before July 1, 2022, it stops at 50)
*/
message_count?: number;
/**
Expand All @@ -222,6 +222,10 @@ export interface APIThreadChannel
* The id of the last message sent in this thread (may not point to an existing or valid message)
*/
last_message_id?: Snowflake | null;
/**
* Count of total messages ever sent in a thread. Similar to `message_count` on message creation, but decrement on message deletion
*/
total_message_sent?: number;
}

export type APIGuildForumChannel = APIGuildTextChannel<ChannelType.GuildForum>;
Expand Down Expand Up @@ -490,6 +494,10 @@ export interface APIMessage {
* @deprecated Use `sticker_items` instead
*/
stickers?: APISticker[];
/**
* Position of the message in a forum post when it was sent, it will not change upon any message deletion in the parent post
*/
position?: number;
}

/**
Expand Down
10 changes: 9 additions & 1 deletion payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export interface APIThreadChannel
*/
thread_metadata?: APIThreadMetadata;
/**
* The approximate message count of the thread, does not count above 50 even if there are more messages
* Count of messages (not including starter message and deleted messages) in a thread, stops counting at 100000 (if the thread is created before July 1, 2022, it stops at 50)
*/
message_count?: number;
/**
Expand All @@ -222,6 +222,10 @@ export interface APIThreadChannel
* The id of the last message sent in this thread (may not point to an existing or valid message)
*/
last_message_id?: Snowflake | null;
/**
* Count of total messages ever sent in a thread. Similar to `message_count` on message creation, but decrement on message deletion
*/
total_message_sent?: number;
}

export type APIGuildForumChannel = APIGuildTextChannel<ChannelType.GuildForum>;
Expand Down Expand Up @@ -490,6 +494,10 @@ export interface APIMessage {
* @deprecated Use `sticker_items` instead
*/
stickers?: APISticker[];
/**
* Position of the message in a forum post when it was sent, it will not change upon any message deletion in the parent post
*/
position?: number;
}

/**
Expand Down