# GatewayFile

`type` in `gateway` · v0.2.1

<https://docs.seedcord.org/packages/gateway/0.2.1/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];
```
