Interfacetypesv0.10.1ReplyFileBytes to upload with a reply. A reply attaching only these files sends on either transport. interface ReplyFileExamplesCopyawait this.reply({ components: [chart], files: [{ data: await renderChart(), name: 'chart.png', description: 'Sales by month' }] });Member overviewPropertiesdatadescriptionnametitlePropertiesdataThe file's bytes. A node Buffer assigns here because it extends Uint8Array. readonly data: Uint8ArrayoptionaldescriptionAlt text shown to screen readers and on hover. readonly description: stringnameThe 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. readonly name: stringoptionaltitleA display title Discord shows in place of the filename. readonly title: string
dataThe file's bytes. A node Buffer assigns here because it extends Uint8Array. readonly data: Uint8Array
nameThe 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. readonly name: string