feat(MessageAttachment): description (alt text) support (#6871)

Co-authored-by: D Trombett <maxtromb.dt@gmail.com>
This commit is contained in:
Jake Ward
2021-11-11 19:29:17 +00:00
committed by GitHub
parent 7630158f59
commit 5e0a7d51fc
5 changed files with 38 additions and 2 deletions

View File

@@ -96,6 +96,7 @@ class TextBasedChannel {
* @typedef {Object} FileOptions
* @property {BufferResolvable} attachment File to attach
* @property {string} [name='file.jpg'] Filename of the attachment
* @property {string} description The description of the file
*/
/**
@@ -128,6 +129,7 @@ class TextBasedChannel {
* files: [{
* attachment: 'entire/path/to/file.jpg',
* name: 'file.jpg'
* description: 'A description of the file'
* }]
* })
* .then(console.log)
@@ -146,6 +148,7 @@ class TextBasedChannel {
* files: [{
* attachment: 'entire/path/to/file.jpg',
* name: 'file.jpg'
* description: 'A description of the file'
* }]
* })
* .then(console.log)