# ReplyFile

`interface` in `types` · v0.12.0

<https://docs.seedcord.org/packages/types/0.12.0/interfaces/reply-file>

Bytes to upload with a reply. A reply attaching only these files sends on either transport.

```ts
interface ReplyFile
```

## Examples

```ts
await this.reply({
    components: [chart],
    files: [{ data: await renderChart(), name: 'chart.png', description: 'Sales by month' }]
});
```

## Properties

### data

```ts
readonly data: Uint8Array
```

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

### description

```ts
readonly description: string
```

Alt text shown to screen readers and on hover.

### 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.
