#images
12 messages · Page 1 of 1 (latest)
MessageEmbed#attachFiles has been removed. Files should be attached via the message option object instead:
const attachment = new MessageAttachment('./image.png', 'image1.png');
const embed = new MessageEmbed()
- .attachFiles([attachment])
.setTitle('Attachments')
.setImage(`attachment://${attachment.name}`);
- channel.send(embed)
+ channel.send({
+ embeds: [embed],
+ files: [attachment]
+ });
and put buffer instead of file path
I don't think you can do that
yes you can lol
how
MessageAttachment
Represents an attachment in a message.
but how do you add the image to the embed
not like this shows it
oh