# AddCommentEvent

typedef

Fired whenever a comment is added.

The event name includes `channelId` so it is possible to listen only on changes happening in the specified channel.

It is also possible to listen to events from the given thread ID by appending `:[threadId]` part to the event name

```typescript
const channelId = 'foo';
const threadId = '1234';

commentsRepository.on( `addComment:${ channelId }:${ threadId }`, ( evt, data ) => {
	console.log( evt, data );
} );
```

<a id="properties">

## Properties

<a id="member-args">

### `args: [ CommentEventData ]`

<a id="member-name">

### `name: string`

#### Value

`object`

## Fired by

* [CommentsRepository#addComment](module_comments_comments_commentsrepository-CommentsRepository.md#event-addComment)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
