# GatewayFile

`type` in `gateway` · v0.1.4

<https://docs.seedcord.org/packages/gateway/0.1.4/types/gateway-file>

Every file form discord.js accepts in a message's `files` field: `AttachmentBuilder`, `Attachment`, a `Buffer`, a node `Stream`, a path or URL string, and an `{ attachment, name }` payload.

## Declaration

```ts
type GatewayFile = NonNullable<
    BaseMessageOptions["files"]
>[number];
```
