# Comments

### `lsc:comments:audience:join`

Visitor joins the chat during a live stream.

#### Schema

```typescript
export interface CommentsAudienceJoinEvent extends Omit<
  AnalyticsEvent,
  'eventType'
> {
  eventType: 'lsc:comments:audience:join';

  // Event-specific fields
  
  /**
   * The visitor's avatar image URL, if provided by the 
   * host application or environment.
   */
  visitorAvatarUrl?: string;
  /**
   * The visitor's display name, either as chosen by the visitor
   * or provided by the host application or environment.
   */
  visitorName: string;
}
```

#### Alias Mapping Table

<table data-full-width="false"><thead><tr><th width="270.4453125" valign="top">Alias (contextData key) </th><th valign="top">Meaning / Use Case</th><th valign="top">Suggested Adobe Target (placeholder)</th><th valign="top">Friendly Label Example</th></tr></thead><tbody><tr><td valign="top"><code>lsc.visitorAvatarUrl</code></td><td valign="top">Visitor avatar</td><td valign="top">prop{VISITOR_AVATAR}</td><td valign="top">Visitor Avatar</td></tr><tr><td valign="top"><code>lsc.visitorName</code></td><td valign="top">Visitor name</td><td valign="top">prop{VISITOR_NAME}</td><td valign="top">Visitor Name</td></tr></tbody></table>

### `lsc:comments:audience:comment`

Visitor adds a comment during a live stream.

#### Schema

```typescript
interface CommentsAudienceCommentEvent extends Omit<
  AnalyticsEvent,
  'eventType'
> {
  eventType: 'lsc:comments:audience:comment';

  // Event-specific fields
  
  /**
   * Universally unique comment identifier, in UUID v4 format.
   */
  commentId: string;
  /**
   * The comment message.
   */
  commentMessage: string;
  /**
   * The visitor's avatar image URL, if provided by the 
   * host application or environment.
   */
  visitorAvatarUrl?: string;
  /**
   * The visitor's display name, either as chosen by the visitor
   * or provided by the host application or environment.
   */
  visitorName: string;
}
```

#### Alias Mapping Table

<table data-full-width="false"><thead><tr><th width="270.4453125" valign="top">Alias (contextData key) </th><th valign="top">Meaning / Use Case</th><th valign="top">Suggested Adobe Target (placeholder)</th><th valign="top">Friendly Label Example</th></tr></thead><tbody><tr><td valign="top"><code>lsc.commentId</code></td><td valign="top">Comment-scoped identifier</td><td valign="top">prop{COMMENT_ID}</td><td valign="top">Comment ID</td></tr><tr><td valign="top"><code>lsc.commentMessage</code></td><td valign="top">Comment message</td><td valign="top">prop{COMMENT_MESSAGE}</td><td valign="top">Comment Message</td></tr><tr><td valign="top"><code>lsc.visitorAvatarUrl</code></td><td valign="top">Visitor avatar</td><td valign="top">prop{VISITOR_AVATAR}</td><td valign="top">Visitor Avatar</td></tr><tr><td valign="top"><code>lsc.visitorName</code></td><td valign="top">Visitor name</td><td valign="top">prop{VISITOR_NAME}</td><td valign="top">Visitor Name</td></tr></tbody></table>
