Skip to content
Typegatewayv0.7.5

GatewayFile

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.

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