-
Is your feature request related to a problem? Please describe. Describe the ideal solution Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Answered by
kyranet
Jun 19, 2021
Replies: 1 comment
-
You attach buffers by adding them to the MessageOptions in this manner: const file = new MessageAttachment(buffer, 'image.png');
const embed = new MessageEmbed().setImage('attachment://image.png');
await channel.send({ embeds: [embed], files: [file] });
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vladfrangu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You attach buffers by adding them to the MessageOptions in this manner:
MessageEmbed#attachFiles
was just an alias for the code above.