# WebhookFile

`interface` in `core` · v0.3.1

<https://docs.seedcord.org/packages/core/0.3.1/interfaces/webhook-file>

A file attached to a webhook report.

```ts
interface WebhookFile extends ReplyFile
```

## Properties

### data

```ts
readonly data: Uint8Array
```

The file's bytes. A node `Buffer` assigns here because it extends `Uint8Array`.

### description

```ts
readonly description: string
```

### name

```ts
readonly name: string
```

The filename Discord shows, and the name an `attachment://` component reference resolves against. Prefix it with `SPOILER_` to blur the attachment until the viewer clicks through.

### title

```ts
readonly title: string
```

A display title Discord shows in place of the filename.
