# ConversationBeforeSendEvent (@salmonui/chat/conversation)

> The ConversationBeforeSendEvent interface of @salmonui/chat/conversation.

Canonical: https://salmonui.dev/docs/reference/chat/conversation/ConversationBeforeSendEvent

```ts
import type { ConversationBeforeSendEvent } from '@salmonui/chat/conversation';
```

Entry index: https://salmonui.dev/docs/reference/chat/conversation (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/conversation.md).

## Reference

Kind: interface

```ts
interface ConversationBeforeSendEvent extends ConversationSendEvent {
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `preventDefault` | `preventDefault(): void;` |  | Keeps the draft in the composer and sends nothing. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `message` | `message: ConversationMessage;` | inherited | The message that is sent (cancellable in `onBeforeSend`). |
