You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AttachmentBuilder's second parameter in the constructor is an APIAttachment which seems to document 10 properties currently. However, as seen here:
Which package is this bug report for?
discord.js
Issue description
The
AttachmentBuilder
's second parameter in the constructor is anAPIAttachment
which seems to document 10 properties currently. However, as seen here:discord.js/packages/discord.js/src/structures/AttachmentBuilder.js
Lines 9 to 29 in 4d8361c
Only 1 seems to be used which is
description
(andfilename
seems to bename
here). This doesn't look correct.In the typings, however:
discord.js/packages/discord.js/typings/index.d.ts
Line 1745 in 4d8361c
discord.js/packages/discord.js/typings/index.d.ts
Lines 3730 to 3733 in 4d8361c
This seems to be typed correctly. The documentation is very likely outdated.
Code sample
No response
Package version
14.1.3-dev
Node.js version
Node.js 16.14.0; TypeScript 4.7.4
Operating system
macOS Monterey 12.4
Priority this issue should have
Low (slightly annoying)
Which partials do you have configured?
Not applicable (subpackage bug)
Which gateway intents are you subscribing to?
Not applicable (subpackage bug)
I have tested this issue on a development release
4d8361c
The text was updated successfully, but these errors were encountered: