Interfacetypesv0.14.4ReplyFileBytes 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: Uint8ArraydescriptionAlt 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: stringtitleA 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