diff --git a/packages/client/src/types/messages/message.ts b/packages/client/src/types/messages/message.ts index 071fec8e..13c3d0d8 100644 --- a/packages/client/src/types/messages/message.ts +++ b/packages/client/src/types/messages/message.ts @@ -348,6 +348,14 @@ export class Message { return this.raw.replyTo?.replyToMsgId ?? null } + /** + * For replies, ID of the thread (i.e. ID of the top message + * in the thread) + */ + get replyToThreadId(): number | null { + return this.raw.replyTo?.replyToTopId ?? null + } + /** * Whether this message contains mention of the current user */