> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt.

# Interface: ApiDiscussionToolsComment

Defined in: [extensions/discussiontools.ts:37](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L37)

One node of a reply/indent tree (`prop=threaditemshtml`).

## Properties

### author?

> `optional` **author?**: `string`

Defined in: [extensions/discussiontools.ts:61](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L61)

Who wrote the comment.

***

### authorCount?

> `optional` **authorCount?**: `number`

Defined in: [extensions/discussiontools.ts:94](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L94)

Distinct authors below this heading. Headings only.

#### Since

MediaWiki 1.45

***

### commentCount?

> `optional` **commentCount?**: `number`

Defined in: [extensions/discussiontools.ts:87](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L87)

Number of comments below this heading. Headings only
(`prop=threaditemshtml`).

#### Since

MediaWiki 1.45

***

### displayName?

> `optional` **displayName?**: `string`

Defined in: [extensions/discussiontools.ts:64](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L64)

Display name shown in the signature, when it differs from [author](#author).

***

### headingLevel?

> `optional` **headingLevel?**: `number` | `null`

Defined in: [extensions/discussiontools.ts:52](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L52)

Heading level as written in wikitext (`==` → 2), headings only; `null` for placeholder headings.

***

### html?

> `optional` **html?**: `string`

Defined in: [extensions/discussiontools.ts:73](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L73)

Rendered HTML of this comment.

***

### id

> **id**: `string`

Defined in: [extensions/discussiontools.ts:39](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L39)

Comment id, e.g. `h-Example_topic-20240115083000`.

***

### latestReply?

> `optional` **latestReply?**: `ApiDiscussionToolsComment` | `null`

Defined in: [extensions/discussiontools.ts:111](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L111)

The most recent reply, serialized as a comment item without its `replies`;
`null` when there is none. Headings only, and only with
`threaditemsflags=activity` (alongside `prop=threaditemshtml`).

#### Since

MediaWiki 1.46

***

### latestReplyTimestamp?

> `optional` **latestReplyTimestamp?**: `string` | `null`

Defined in: [extensions/discussiontools.ts:102](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L102)

Timestamp of the latest reply under this heading, or `null` when there is
none. Headings only.

#### Since

MediaWiki 1.45

***

### level?

> `optional` **level?**: `number`

Defined in: [extensions/discussiontools.ts:49](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L49)

Rendering level of the heading (`0` for the topic itself).

***

### name?

> `optional` **name?**: `string`

Defined in: [extensions/discussiontools.ts:46](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L46)

Comment name — headings only (`h-<user>-<timestamp>`, where `<user>` is
the thread starter, or bare `h-` for an empty section); comment items do
not serialize a name.

***

### oldestReply?

> `optional` **oldestReply?**: `ApiDiscussionToolsComment` | `null`

Defined in: [extensions/discussiontools.ts:120](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L120)

The earliest reply, same serialization as [latestReply](#latestreply); `null` when
there is none. Headings only, and only with `threaditemsflags=activity`
(alongside `prop=threaditemshtml`).

#### Since

MediaWiki 1.46

***

### othercontent?

> `optional` **othercontent?**: `string`

Defined in: [extensions/discussiontools.ts:76](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L76)

HTML of the content between an empty section's heading and the next one; headings only.

***

### replies?

> `optional` **replies?**: `ApiDiscussionToolsComment`\[]

Defined in: [extensions/discussiontools.ts:79](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L79)

Nested replies (same shape, recursively).

***

### timestamp?

> `optional` **timestamp?**: `string`

Defined in: [extensions/discussiontools.ts:67](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L67)

When it was signed.

***

### type

> **type**: `string`

Defined in: [extensions/discussiontools.ts:70](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L70)

Comment type, e.g. `comment`, `heading`. Open union.

***

### uneditableSection?

> `optional` **uneditableSection?**: `true`

Defined in: [extensions/discussiontools.ts:58](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/extensions/discussiontools.ts#L58)

The heading opens a section that cannot be edited here (no edit-section
link was rendered); headings only.
